Migrate anyOf and allOf Hamcrest matchers to AssertJ
MSALMigrate Hamcrest assertThat(actual, anyOf(..)) to AssertJ's satisfiesAnyOf(..) and assertThat(actual, allOf(..)) to satisfies(..), keeping each nested matcher as a Hamcrest assertThat inside a lambda. Matchers that take an Iterable are left unchanged.
org. openrewrite. java. testing. hamcrest. HamcrestOfMatchersToAssertJmod run . --recipe= org. openrewrite. java. testing. hamcrest. HamcrestOfMatchersToAssertJInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.