Package org.mockserver.verify
Class VerificationSequence
java.lang.Object
org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
org.mockserver.model.ObjectWithJsonToString
org.mockserver.verify.VerificationSequence
- Author:
- jamesdbloom
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic VerificationSequencewithExpectationIds(List<ExpectationId> expectationIds) withExpectationIds(ExpectationId... expectationIds) withMaximumNumberOfRequestToReturnInVerificationFailure(Integer maximumNumberOfRequestToReturnInVerificationFailure) withRequests(List<RequestDefinition> httpRequests) withRequests(RequestDefinition... httpRequests) withResponses(List<HttpResponse> httpResponses) withResponses(HttpResponse... httpResponses) withTimeout(Long timeout) Enable server-side eventual sequence verification: when set to a positive number of milliseconds the server waits (asynchronously) and re-evaluates this sequence verification until it passes or the timeout elapses, rather than evaluating the event log once.Methods inherited from class org.mockserver.model.ObjectWithJsonToString
toStringMethods inherited from class org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
equals, fieldsExcludedFromEqualsAndHashCode, hashCode
-
Constructor Details
-
VerificationSequence
public VerificationSequence()
-
-
Method Details
-
verificationSequence
-
withRequests
-
withRequests
-
getHttpRequests
-
withResponses
-
withResponses
-
getHttpResponses
-
withExpectationIds
-
withExpectationIds
-
getExpectationIds
-
getMaximumNumberOfRequestToReturnInVerificationFailure
-
withMaximumNumberOfRequestToReturnInVerificationFailure
public VerificationSequence withMaximumNumberOfRequestToReturnInVerificationFailure(Integer maximumNumberOfRequestToReturnInVerificationFailure) -
getTimeout
-
withTimeout
Enable server-side eventual sequence verification: when set to a positive number of milliseconds the server waits (asynchronously) and re-evaluates this sequence verification until it passes or the timeout elapses, rather than evaluating the event log once. The server returns success as soon as the sequence is satisfied, or the last failure message when the timeout elapses.null, absent, or0preserves the original single-shot behaviour. The accepted value is capped server-side (seeMockServerEventLog.MAX_VERIFY_TIMEOUT_MILLIS). The wait is fully asynchronous and never holds a Netty I/O thread.- Parameters:
timeout- the maximum time, in milliseconds, to wait for the sequence verification to pass, ornull/0for the original single-shot behaviour- Returns:
- this verification sequence for chaining
-