Skip to content

What kind of @Component can this lib help unit-test? #77

Answered by ch4mpy
ch4mpy asked this question in Q&A
Discussion options

You must be logged in to vote

In addition to MockMvc post-processors and WebTestClient mutators, this lib exposes test annotations to populate test security-context with spring default OAuth2 Authentication implementations plus a few others.

Those test annotation work outside of a request context and allow to test security rules on any kind of @component. This is demoed for a @Service and a @Repository in every sample, so please refer to projects in sample module to see how to define such tests

Replies: 1 comment

Comment options

ch4mpy
Oct 23, 2022
Maintainer Author

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