Interface RequestExpectation
- All Superinterfaces:
- RequestMatcher,- ResponseActions,- ResponseCreator
- All Known Implementing Classes:
- DefaultRequestExpectation
An extension of 
ResponseActions that also implements
 RequestMatcher and ResponseCreator
 While ResponseActions is the API for defining expectations this
 sub-interface is the internal SPI for matching these expectations to actual
 requests and for creating responses.
- Since:
- 4.3
- Author:
- Rossen Stoyanchev
- 
Method SummaryModifier and TypeMethodDescriptionbooleanWhether there is a remaining count of invocations for this expectation.voidIncrease the matched request count and check we haven't passed the max count.booleanWhether the requirements for this request expectation have been met.Methods inherited from interface org.springframework.test.web.client.RequestMatchermatchMethods inherited from interface org.springframework.test.web.client.ResponseActionsandExpect, andRespondMethods inherited from interface org.springframework.test.web.client.ResponseCreatorcreateResponse
- 
Method Details- 
hasRemainingCountboolean hasRemainingCount()Whether there is a remaining count of invocations for this expectation.
- 
incrementAndValidatevoid incrementAndValidate()Increase the matched request count and check we haven't passed the max count.- Since:
- 5.0.3
 
- 
isSatisfiedboolean isSatisfied()Whether the requirements for this request expectation have been met.
 
-