Class VerificationSequence


public class VerificationSequence extends ObjectWithJsonToString
Author:
jamesdbloom
  • Constructor Details

    • VerificationSequence

      public VerificationSequence()
  • Method Details

    • verificationSequence

      public static VerificationSequence verificationSequence()
    • withRequests

      public VerificationSequence withRequests(RequestDefinition... httpRequests)
    • withRequests

      public VerificationSequence withRequests(List<RequestDefinition> httpRequests)
    • getHttpRequests

      public List<RequestDefinition> getHttpRequests()
    • withResponses

      public VerificationSequence withResponses(HttpResponse... httpResponses)
    • withResponses

      public VerificationSequence withResponses(List<HttpResponse> httpResponses)
    • getHttpResponses

      public List<HttpResponse> getHttpResponses()
    • withExpectationIds

      public VerificationSequence withExpectationIds(ExpectationId... expectationIds)
    • withExpectationIds

      public VerificationSequence withExpectationIds(List<ExpectationId> expectationIds)
    • getExpectationIds

      public List<ExpectationId> getExpectationIds()
    • getMaximumNumberOfRequestToReturnInVerificationFailure

      public Integer getMaximumNumberOfRequestToReturnInVerificationFailure()
    • withMaximumNumberOfRequestToReturnInVerificationFailure

      public VerificationSequence withMaximumNumberOfRequestToReturnInVerificationFailure(Integer maximumNumberOfRequestToReturnInVerificationFailure)
    • getTimeout

      public Long getTimeout()
    • withTimeout

      public VerificationSequence 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. The server returns success as soon as the sequence is satisfied, or the last failure message when the timeout elapses. null, absent, or 0 preserves the original single-shot behaviour. The accepted value is capped server-side (see MockServerEventLog.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, or null/0 for the original single-shot behaviour
      Returns:
      this verification sequence for chaining