Class Verification


public class Verification extends ObjectWithJsonToString
Author:
jamesdbloom
  • Constructor Details

    • Verification

      public Verification()
  • Method Details

    • verification

      public static Verification verification()
    • withRequest

      public Verification withRequest(RequestDefinition requestDefinition)
    • getHttpRequest

      public RequestDefinition getHttpRequest()
    • withResponse

      public Verification withResponse(HttpResponse httpResponse)
    • getHttpResponse

      public HttpResponse getHttpResponse()
    • withExpectationId

      public Verification withExpectationId(ExpectationId expectationId)
    • getExpectationId

      public ExpectationId getExpectationId()
    • withTimes

      public Verification withTimes(VerificationTimes times)
    • getTimes

      public VerificationTimes getTimes()
    • getMaximumNumberOfRequestToReturnInVerificationFailure

      public Integer getMaximumNumberOfRequestToReturnInVerificationFailure()
    • withMaximumNumberOfRequestToReturnInVerificationFailure

      public Verification withMaximumNumberOfRequestToReturnInVerificationFailure(Integer maximumNumberOfRequestToReturnInVerificationFailure)
    • getDisposition

      public Disposition getDisposition()
    • withDisposition

      public Verification withDisposition(Disposition disposition)
      Narrow this verification to count only requests that were handled with the given Dispositionforwarded/proxied or mocked. When unset, all received requests are counted regardless of how they were handled (the original behaviour).
      Parameters:
      disposition - the request handling outcome to filter by, or null for no filter
      Returns:
      this verification for chaining