Skip to content

TestNG matching for RemoveUnneededAssertion#549

Merged
timtebeek merged 2 commits into
mainfrom
166-remove-unnecessary-testng-assertions
May 9, 2025
Merged

TestNG matching for RemoveUnneededAssertion#549
timtebeek merged 2 commits into
mainfrom
166-remove-unnecessary-testng-assertions

Conversation

@steve-aom-elliott

Copy link
Copy Markdown
Contributor

What's changed?

  • Matching added for TestNG's assertTrue(..) and assertFalse(..) assertions so they too can be cleaned up when unneded

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

@steve-aom-elliott steve-aom-elliott self-assigned this May 9, 2025
@steve-aom-elliott steve-aom-elliott added enhancement New feature or request good first issue Good for newcomers labels May 9, 2025
@github-project-automation github-project-automation Bot moved this to In Progress in OpenRewrite May 9, 2025

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

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/resources/META-INF/rewrite/examples.yml
    • lines 2337-2336
    • lines 2352-2364
    • lines 2801-2800
    • lines 2820-2831

Comment thread src/test/java/org/openrewrite/staticanalysis/RemoveUnneededAssertionTest.java Outdated
Comment thread src/test/java/org/openrewrite/staticanalysis/RemoveUnneededAssertionTest.java Outdated
Comment thread src/test/java/org/openrewrite/staticanalysis/RemoveUnneededAssertionTest.java Outdated
Comment thread src/test/java/org/openrewrite/staticanalysis/RemoveUnneededAssertionTest.java Outdated

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

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/resources/META-INF/rewrite/examples.yml
    • lines 2337-2336
    • lines 2352-2364
    • lines 2801-2800
    • lines 2820-2831

@steve-aom-elliott steve-aom-elliott linked an issue May 9, 2025 that may be closed by this pull request
@steve-aom-elliott steve-aom-elliott marked this pull request as ready for review May 9, 2025 15:54
@steve-aom-elliott steve-aom-elliott moved this from In Progress to Ready to Review in OpenRewrite May 9, 2025

@timtebeek timtebeek left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect, thanks! Nice to see the tests logically grouped now.

@timtebeek timtebeek merged commit c5c225c into main May 9, 2025
@timtebeek timtebeek deleted the 166-remove-unnecessary-testng-assertions branch May 9, 2025 16:26
@github-project-automation github-project-automation Bot moved this from Ready to Review to Done in OpenRewrite May 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request good first issue Good for newcomers

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

RemoveUnneededAssertion should also clean up testng assertions

2 participants