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

org.mockserver.verify.Verification 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 static org.mockserver.model.HttpRequest.request;

/**
 * @author jamesdbloom
 */
public class Verification extends ObjectWithJsonToString {
    private RequestDefinition httpRequest = request();
    private VerificationTimes times = VerificationTimes.atLeast(1);

    public static Verification verification() {
        return new Verification();
    }

    public Verification withRequest(RequestDefinition requestDefinition) {
        this.httpRequest = requestDefinition;
        return this;
    }

    public RequestDefinition getHttpRequest() {
        return httpRequest;
    }

    public Verification withTimes(VerificationTimes times) {
        this.times = times;
        return this;
    }

    public VerificationTimes getTimes() {
        return times;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy