Use JUnit5's assertSame or assertNotSame instead of assertTrue(... == ...)
MSALPrefers the usage of assertSame or assertNotSame methods instead of using of vanilla assertTrue or assertFalse with a boolean comparison. Only applies when both operands are reference types — primitive operands are handled by AssertTrueComparisonToAssertEquals.
org. openrewrite. java. testing. junit5. UseAssertSamemod run . --recipe= org. openrewrite. java. testing. junit5. UseAssertSameInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.