Replace fail() in try-catch blocks with Assertions.assertDoesNotThrow(() -> { ... })

MSAL

Replace try-catch blocks where catch merely contains a fail() for fail(String) statement with Assertions.assertDoesNotThrow(() -> { ... }).

org.openrewrite.java.testing.junit5.RemoveTryCatchFailBlocks
mod run . --recipe=org.openrewrite.java.testing.junit5.RemoveTryCatchFailBlocks

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.