接口 RequestExpectation
- 所有超级接口:
RequestMatcher,ResponseActions,ResponseCreator
- 所有已知实现类:
DefaultRequestExpectation
public interface RequestExpectation extends ResponseActions, RequestMatcher, ResponseCreator
An extension ofResponseActionsthat also implementsRequestMatcherandResponseCreatorWhile
ResponseActionsis the API for defining expectations this sub-interface is the internal SPI for matching these expectations to actual requests and for creating responses.- 从以下版本开始:
- 4.3
- 作者:
- Rossen Stoyanchev
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 booleanhasRemainingCount()Whether there is a remaining count of invocations for this expectation.booleanisSatisfied()Whether the requirements for this request expectation have been met.从接口继承的方法 org.springframework.test.web.client.RequestMatcher
match
从接口继承的方法 org.springframework.test.web.client.ResponseActions
andExpect, andRespond
从接口继承的方法 org.springframework.test.web.client.ResponseCreator
createResponse
方法详细资料
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.