What problem are you trying to solve?
I have in my code some (Junit5) AssertTrue(false, "this shouldn't happen"), because someone didn't use fail when they should have.
Describe the solution you'd like
The Junit5 cleanup recipe should convert such cases to fail("this shouldn't happen").
The AssertJ best pratices recipe might add a similar recipe.
Have you considered any alternatives or workarounds?
Additional context
no
What problem are you trying to solve?
I have in my code some (Junit5)
AssertTrue(false, "this shouldn't happen"), because someone didn't usefailwhen they should have.Describe the solution you'd like
The Junit5 cleanup recipe should convert such cases to
fail("this shouldn't happen").The AssertJ best pratices recipe might add a similar recipe.
Have you considered any alternatives or workarounds?
Additional context
Are you interested in contributing this feature to OpenRewrite?
no