X Tutup
The Wayback Machine - https://web.archive.org/web/20201014180311/https://github.com/spring-projects/spring-ws/pull/154
Skip to content
New issue

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

Clearing context so later tests can pass #154

Conversation

@OrDTesters
Copy link

@OrDTesters OrDTesters commented Mar 19, 2020

Currently, tests in SpringDigestPasswordValidationCallbackHandlerTest fail when they run right after SpringSecurityPasswordValidationCallbackHandlerTest.testHandleUsernameTokenPrincipal. The proposed pull request inserts a call to SecurityContextHolder.clearContext() at the end of testHandleUsernameTokenPrincipal (similar to how the call is in the tearDown() method in SpringDigestPasswordValidationCallbackHandlerTest), so the later tests can pass.

@pivotal-issuemaster This is an Obvious Fix

Please let me know if you want to discuss the changes more.

@pivotal-issuemaster
Copy link

@pivotal-issuemaster pivotal-issuemaster commented Mar 19, 2020

@OrDTesters Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

@pivotal-issuemaster
Copy link

@pivotal-issuemaster pivotal-issuemaster commented Mar 19, 2020

@OrDTesters This Pull Request contains an obvious fix. Signing the Contributor License Agreement is not necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.
X Tutup