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

Update spring-test to Mock TestContext in Tests #15579

Closed
jzheaux opened this issue Aug 12, 2024 · 0 comments
Closed

Update spring-test to Mock TestContext in Tests #15579

jzheaux opened this issue Aug 12, 2024 · 0 comments
Assignees
Labels
in: test An issue in spring-security-test type: task A general task
Milestone

Comments

@jzheaux
Copy link
Contributor

jzheaux commented Aug 12, 2024

A recent update in Spring Framework causes classes that use @Mock to mock TestContext to fail. Updating tests to mock TestContext with Mockito.mock allow the TestContext used by MockitoTestExecutionListener to operate correctly before each test executes.

@jzheaux jzheaux added in: test An issue in spring-security-test type: task A general task labels Aug 12, 2024
@jzheaux jzheaux self-assigned this Aug 12, 2024
@jzheaux jzheaux added this to the 6.4.0-M2 milestone Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: test An issue in spring-security-test type: task A general task
Projects
Archived in project
Development

No branches or pull requests

1 participant