Migrate anyOf and allOf Hamcrest matchers to AssertJ

MSAL

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

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