We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug
In the following code testNoAnnotation should not use @WithMockUser because the mode is EnclosingConfiguration.OVERRIDE.
testNoAnnotation
@WithMockUser
EnclosingConfiguration.OVERRIDE
@WithMockUser @NestedTestConfiguration(NestedTestConfiguration.EnclosingConfiguration.OVERRIDE) class OverrideOuterClass { class InnerClass { void testNoAnnotation() { } } }
To solve this WithSecurityContextTestExecutionListener should leverage TestContextAnnotationUtils.
WithSecurityContextTestExecutionListener
TestContextAnnotationUtils
The text was updated successfully, but these errors were encountered:
4515c86
rwinch
No branches or pull requests
Describe the bug
In the following code
testNoAnnotation
should not use@WithMockUser
because the mode isEnclosingConfiguration.OVERRIDE
.To solve this
WithSecurityContextTestExecutionListener
should leverageTestContextAnnotationUtils
.The text was updated successfully, but these errors were encountered: