接口的使用
org.springframework.test.web.client.ResponseCreator
使用ResponseCreator的程序包 程序包 说明 org.springframework.test.web.client Contains client-side REST testing support.org.springframework.test.web.client.response Contains built-inResponseCreator
implementations.org.springframework.test.web.client中ResponseCreator的使用
org.springframework.test.web.client中ResponseCreator的子接口 修饰符和类型 接口 说明 interface
RequestExpectation
An extension ofResponseActions
that also implementsRequestMatcher
andResponseCreator
实现ResponseCreator的org.springframework.test.web.client中的类 修饰符和类型 类 说明 class
DefaultRequestExpectation
Default implementation ofRequestExpectation
that simply delegates to the request matchers and the response creator it contains.返回ResponseCreator的org.springframework.test.web.client中的方法 修饰符和类型 方法 说明 protected ResponseCreator
DefaultRequestExpectation. getResponseCreator()
参数类型为ResponseCreator的org.springframework.test.web.client中的方法 修饰符和类型 方法 说明 void
DefaultRequestExpectation. andRespond(ResponseCreator responseCreator)
void
ResponseActions. andRespond(ResponseCreator responseCreator)
Define the response.org.springframework.test.web.client.response中ResponseCreator的使用
实现ResponseCreator的org.springframework.test.web.client.response中的类 修饰符和类型 类 说明 class
DefaultResponseCreator
AResponseCreator
with builder-style methods for adding response details.返回ResponseCreator的org.springframework.test.web.client.response中的方法 修饰符和类型 方法 说明 static ResponseCreator
MockRestResponseCreators. withException(IOException ex)
ResponseCreator
with an internal applicationIOException
.