All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.mockserver.verify.VerificationSequence Maven / Gradle / Ivy

There is a newer version: 5.15.0
Show newest version
package org.mockserver.verify;

import org.mockserver.model.ObjectWithJsonToString;
import org.mockserver.model.RequestDefinition;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

/**
 * @author jamesdbloom
 */
public class VerificationSequence extends ObjectWithJsonToString {
    private List httpRequests = new ArrayList<>();

    public static VerificationSequence verificationSequence() {
        return new VerificationSequence();
    }

    public VerificationSequence withRequests(RequestDefinition... httpRequests) {
        Collections.addAll(this.httpRequests, httpRequests);
        return this;
    }

    public VerificationSequence withRequests(List httpRequests) {
        this.httpRequests = httpRequests;
        return this;
    }

    public List getHttpRequests() {
        return httpRequests;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy