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.client.serialization.ObjectMapperFactory;
import org.mockserver.model.ObjectWithJsonToString;
import org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString;
import org.mockserver.model.HttpRequest;
import static org.mockserver.model.HttpRequest.request;
/**
* @author jamesdbloom
*/
public class Verification extends ObjectWithJsonToString {
private HttpRequest httpRequest = request();
private VerificationTimes times = VerificationTimes.atLeast(1);
public Verification withRequest(HttpRequest httpRequest) {
this.httpRequest = httpRequest;
return this;
}
public HttpRequest 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