Skip to content
Discussion options

You must be logged in to vote

I see spring-boot-starter-webflux-test among your testImplementation dependencies, but not spring-boot-starter-webflux among implementation ones. Is it intended?

Regarding your issue, to auto-wire a WebTestClientSupport, you need AddonsWebfluxTestConf to be scanned. In a regular @WebFluxTest, use @AutoConfigureAddonsWebfluxClientSecurity. In an integration test, you may just add it to your import statement:@Import({TestSecurityConf.class, AddonsWebfluxTestConf.class}).

Look at AddonsWebfluxTestConf sources to see other test beans it creates. You may also copy just the WebTestClientSupport bean definition from this source and add it to your TestSecurityConf)

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by totterman
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants