Skip to content

Update spring-test to Mock TestContext in Tests #15579

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
in: test An issue in spring-security-test type: task A general task
Projects
None yet
Development

No branches or pull requests

1 participant