org.mockserver.verify.Verification Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mockserver-core Show documentation
Show all versions of mockserver-core Show documentation
Functionality used by all MockServer modules for matching and expectations
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