GeezerVison is showing github.com — CloseUnclosedStaticMocks: Handle Nested class, qualifiedclass name. by amishra-u · Pull Request #742 · openrewrite/rewrite-testing-frameworks
Conversation
amishra-u
commented
May 30, 2025
•
edited by timtebeek
Loading
Uh oh!
There was an error while loading. Please reload this page.
What's changed?
Handle Nested class, qualified mocked class names.
What's your motivation?
Checklist
- I've added unit tests to cover both positive and negative cases
- I've read and applied the recipe conventions and best practices
- I've used the IntelliJ IDEA auto-formatter on affected files
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
timtebeek reacted with heart emoji
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some suggestions could not be made:
- src/main/java/org/openrewrite/java/testing/mockito/CloseUnclosedStaticMocks.java
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
amishra-u
changed the title
CloseUnclosedStaticMocks: Handle Nested class, qualifiedclass name etc.
CloseUnclosedStaticMocks: Handle Nested class, qualifiedclass name.
May 30, 2025
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some suggestions could not be made:
- src/main/java/org/openrewrite/java/testing/mockito/CloseUnclosedStaticMocks.java
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the quick fixes here!
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
timtebeek
pushed a commit
that referenced
this pull request
Jun 15, 2026
Disabled in d1e6bbb after teardown was injected in the wrong scope for
@nested classes; #742 fixed nested-class and qualified-class-name
handling. Re-enabling now that the underlying issue is resolved.
Uh oh!
There was an error while loading. Please reload this page.
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.