Replace fail() in try-catch blocks with Assertions.assertDoesNotThrow(() -> { ... })
MSALReplace try-catch blocks where catch merely contains a fail() for fail(String) statement with Assertions.assertDoesNotThrow(() -> { ... }).
org. openrewrite. java. testing. junit5. RemoveTryCatchFailBlocksmod run . --recipe= org. openrewrite. java. testing. junit5. RemoveTryCatchFailBlocksInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.