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

Extract MockedStatic and MockedConstruction out of JUnit lifecycles #603

Merged
merged 10 commits into from
Dec 2, 2023

Conversation

ascopes
Copy link
Owner

@ascopes ascopes commented Dec 2, 2023

See #588 for full details.

The issue at mockito/mockito#3156 advises against using MockedStatic and MockedConstruction with the MocktioExtension as it can cause unwanted side effects between tests.

This PR removes any such usages of that mechanism in ill-advisable ways.

Closes GH-588.

@ascopes ascopes added testing Improvements to test packs 👕 medium labels Dec 2, 2023
@ascopes ascopes self-assigned this Dec 2, 2023
@ascopes ascopes merged commit 071e13c into main Dec 2, 2023
18 checks passed
@ascopes ascopes deleted the task/GH-588 branch December 2, 2023 12:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testing Improvements to test packs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix usages of MockedStatic
1 participant