Class DefaultRequestExpectation

java.lang.Object
org.springframework.test.web.client.DefaultRequestExpectation
All Implemented Interfaces:
RequestExpectation, RequestMatcher, ResponseActions, ResponseCreator

public class DefaultRequestExpectation extends Object implements RequestExpectation
Default implementation of RequestExpectation that simply delegates to the request matchers and the response creator it contains.
Since:
4.3
Author:
Rossen Stoyanchev
  • Constructor Details

    • DefaultRequestExpectation

      public DefaultRequestExpectation(ExpectedCount expectedCount, RequestMatcher requestMatcher)
      Create a new request expectation that should be called a number of times as indicated by RequestCount.
      Parameters:
      expectedCount - the expected request expectedCount
  • Method Details