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.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