Migrate an ExpectedException that takes Hamcrest matchers to AssertJ
MSALJUnit 4's ExpectedException takes Hamcrest matchers for the exception, its message and its cause. Migrate the tests that pass it one to AssertJ's assertThatExceptionOfType(..), so that no Hamcrest is left behind.
org. openrewrite. java. testing. hamcrest. MigrateExpectedExceptionMatchersToAssertJmod run . --recipe= org. openrewrite. java. testing. hamcrest. MigrateExpectedExceptionMatchersToAssertJInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.