Interface RequestExpectation
- All Superinterfaces:
RequestMatcher
,ResponseActions
,ResponseCreator
- All Known Implementing Classes:
DefaultRequestExpectation
public interface RequestExpectation extends ResponseActions, RequestMatcher, ResponseCreator
An extension ofResponseActions
that also implementsRequestMatcher
andResponseCreator
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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
hasRemainingCount()
Whether there is a remaining count of invocations for this expectation.boolean
isSatisfied()
Whether the requirements for this request expectation have been met.Methods inherited from interface org.springframework.test.web.client.RequestMatcher
match
Methods inherited from interface org.springframework.test.web.client.ResponseActions
andExpect, andRespond
Methods inherited from interface org.springframework.test.web.client.ResponseCreator
createResponse
Method Detail
hasRemainingCount
boolean hasRemainingCount()
Whether there is a remaining count of invocations for this expectation.
isSatisfied
boolean isSatisfied()
Whether the requirements for this request expectation have been met.