Package | Description |
---|---|
org.springframework.test.web.reactive.server |
Support for testing Spring WebFlux server endpoints via
WebTestClient . |
Modifier and Type | Interface and Description |
---|---|
static interface |
WebTestClient.MockServerSpec<B extends WebTestClient.MockServerSpec<B>>
Base specification for setting up tests without a server.
|
Modifier and Type | Interface and Description |
---|---|
static interface |
WebTestClient.ControllerSpec
Specification for customizing controller configuration equivalent to, and
internally delegating to, a
WebFluxConfigurer . |
static interface |
WebTestClient.RouterFunctionSpec
Specification for customizing router function configuration.
|
Modifier and Type | Method and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
default void |
MockServerConfigurer.afterConfigureAdded(WebTestClient.MockServerSpec<?> serverSpec)
Invoked immediately, i.e.
|