接口的使用
org.springframework.test.web.reactive.server.WebTestClient.MockServerSpec
使用WebTestClient.MockServerSpec的程序包 程序包 说明 org.springframework.test.web.reactive.server Support for testing Spring WebFlux server endpoints viaWebTestClient.org.springframework.test.web.reactive.server中WebTestClient.MockServerSpec的使用
类型参数类型为WebTestClient.MockServerSpec的org.springframework.test.web.reactive.server中的类 修饰符和类型 接口 说明 static interfaceWebTestClient.MockServerSpec<B extends WebTestClient.MockServerSpec<B>>Base specification for setting up tests without a server.org.springframework.test.web.reactive.server中WebTestClient.MockServerSpec的子接口 修饰符和类型 接口 说明 static interfaceWebTestClient.ControllerSpecSpecification for customizing controller configuration equivalent to, and internally delegating to, aWebFluxConfigurer.static interfaceWebTestClient.RouterFunctionSpecSpecification for customizing router function configuration.返回WebTestClient.MockServerSpec的org.springframework.test.web.reactive.server中的方法 修饰符和类型 方法 说明 static WebTestClient.MockServerSpec<?>WebTestClient. bindToApplicationContext(ApplicationContext applicationContext)Use this option to setup a server from the Spring configuration of your application, or some subset of it.static WebTestClient.MockServerSpec<?>WebTestClient. bindToWebHandler(WebHandler webHandler)Integration testing with a "mock" server targeting the given WebHandler.参数类型为WebTestClient.MockServerSpec的org.springframework.test.web.reactive.server中的方法 修饰符和类型 方法 说明 default voidMockServerConfigurer. afterConfigureAdded(WebTestClient.MockServerSpec<?> serverSpec)Invoked immediately, i.e. before this method returns.