Annotation Type AutoConfigureWebTestClient
@Target({TYPE,METHOD}) @Retention(RUNTIME) @Documented @Inherited @ImportAutoConfiguration @PropertyMapping("spring.test.webtestclient") public @interface AutoConfigureWebTestClient
Annotation that can be applied to a test class to enable aWebTestClient
. At the moment, only WebFlux applications are supported.- Since:
- 2.0.0
- See Also:
WebTestClientAutoConfiguration
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description String
timeout
The timeout duration for the client (in any format handled byDuration.parse(CharSequence)
).
Element Detail
timeout
String timeout
The timeout duration for the client (in any format handled byDuration.parse(CharSequence)
).- Returns:
- the web client timeout
- Default:
- ""