接口的使用
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-inResponseCreatorimplementations.org.springframework.test.web.client中ResponseCreator的使用
org.springframework.test.web.client中ResponseCreator的子接口 修饰符和类型 接口 说明 interfaceRequestExpectationAn extension ofResponseActionsthat also implementsRequestMatcherandResponseCreator实现ResponseCreator的org.springframework.test.web.client中的类 修饰符和类型 类 说明 classDefaultRequestExpectationDefault implementation ofRequestExpectationthat simply delegates to the request matchers and the response creator it contains.返回ResponseCreator的org.springframework.test.web.client中的方法 修饰符和类型 方法 说明 protected ResponseCreatorDefaultRequestExpectation. getResponseCreator()参数类型为ResponseCreator的org.springframework.test.web.client中的方法 修饰符和类型 方法 说明 voidDefaultRequestExpectation. andRespond(ResponseCreator responseCreator)voidResponseActions. andRespond(ResponseCreator responseCreator)Define the response.org.springframework.test.web.client.response中ResponseCreator的使用
实现ResponseCreator的org.springframework.test.web.client.response中的类 修饰符和类型 类 说明 classDefaultResponseCreatorAResponseCreatorwith builder-style methods for adding response details.返回ResponseCreator的org.springframework.test.web.client.response中的方法 修饰符和类型 方法 说明 static ResponseCreatorMockRestResponseCreators. withException(IOException ex)ResponseCreatorwith an internal applicationIOException.