接口 RequestExpectation
- 所有超级接口:
RequestMatcher,ResponseActions,ResponseCreator
- 所有已知实现类:
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.
- 从以下版本开始:
- 4.0
- 作者:
- Rossen Stoyanchev
-
方法概要
修饰符和类型方法说明booleanWhether 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.从接口继承的方法 cn.taketoday.test.web.client.RequestMatcher
match从接口继承的方法 cn.taketoday.test.web.client.ResponseActions
andExpect, andRespond从接口继承的方法 cn.taketoday.test.web.client.ResponseCreator
createResponse
-
方法详细资料
-
hasRemainingCount
boolean hasRemainingCount()Whether there is a remaining count of invocations for this expectation. -
incrementAndValidate
void incrementAndValidate()Increase the matched request count and check we haven't passed the max count.- 从以下版本开始:
- 4.0
-
isSatisfied
boolean isSatisfied()Whether the requirements for this request expectation have been met.
-