Migrate Hamcrest matchers to AssertJ

MSAL

Migrate 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.MigrateHamcrestMatchersToAssertJ
mod run . --recipe=org.openrewrite.java.testing.hamcrest.MigrateHamcrestMatchersToAssertJ

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