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

lv.ctco.cukes.http.AwaitCondition Maven / Gradle / Ivy

package lv.ctco.cukes.http;

import io.restassured.response.Response;
import lv.ctco.cukes.core.internal.helpers.Time;
import org.hamcrest.Matcher;

public class AwaitCondition {

    private final Time waitTime;
    private final Time interval;
    private final Matcher successMatcher;
    private final Matcher failureMatcher;

    public AwaitCondition(Time waitTime, Time interval, Matcher successMatcher) {
        this.waitTime = waitTime;
        this.interval = interval;
        this.successMatcher = successMatcher;
        failureMatcher = null;
    }

    public AwaitCondition(Time waitTime, Time interval, Matcher successMatcher, Matcher failureMatcher) {
        this.waitTime = waitTime;
        this.interval = interval;
        this.successMatcher = successMatcher;
        this.failureMatcher = failureMatcher;
    }

    public Time getWaitTime() {
        return waitTime;
    }

    public Time getInterval() {
        return interval;
    }

    public Matcher getSuccessMatcher() {
        return successMatcher;
    }

    public Matcher getFailureMatcher() {
        return failureMatcher;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy