Annotation that can be used in combination with
for a typical Spring WebFlux test. Can be used when a test focuses
on Spring WebFlux components.
Using this annotation will disable full auto-configuration and instead apply only
configuration relevant to WebFlux tests (i.e.
WebFluxConfigurer beans but not
By default, tests annotated with
@WebFluxTest will also auto-configure a
WebTestClient. For more fine-grained control of WebTestClient the
@AutoConfigureWebTestClient annotation can be used.
@WebFluxTest is used in combination with
@Import to create any collaborators required by your
If you are looking to load your full application configuration and use WebTestClient,
you should consider
@SpringBootTest combined with
@AutoConfigureWebTestClient rather than this