@Target(value={TYPE,METHOD}) @Retention(value=RUNTIME) @Documented @Inherited @ImportAutoConfiguration @PropertyMapping(value="spring.test.webtestclient") public @interface AutoConfigureWebTestClient
WebTestClient
that
is bound directly to the application. Tests do not rely upon an HTTP server and use
mock requests and responses. At the moment, only WebFlux applications are supported.WebTestClientAutoConfiguration
,
WebTestClient.bindToApplicationContext(ApplicationContext)
Modifier and Type | Optional Element and Description |
---|---|
String |
timeout
The timeout duration for the client (in any format handled by
Duration.parse(CharSequence) ). |
public abstract String timeout
Duration.parse(CharSequence)
).