Migrate Hamcrest matchers to AssertJ
MSALMigrate Hamcrest assertThat(..) and assumeThat(..) to AssertJ, one level of nested matchers at a time. A matcher that nests other matchers becomes an AssertJ assertion whose requirements are Hamcrest assertions of the nested matchers, which the next pass migrates.
org. openrewrite. java. testing. hamcrest. MigrateHamcrestMatchersToAssertJmod run . --recipe= org. openrewrite. java. testing. hamcrest. MigrateHamcrestMatchersToAssertJInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.