Migrate the remaining Hamcrest matchers to AssertJ

MSAL

Migrate the Hamcrest matchers and assumptions that have no one-to-one AssertJ assertion, such as matchers that take other matchers, both(..).and(..), samePropertyValuesAs(..) and hasXPath(..), so that no Hamcrest is left behind. Where AssertJ has no counterpart, the assertion calls an adapter in a generated HamcrestAdapters class that keeps the matcher's behavior.

org.openrewrite.java.testing.hamcrest.HamcrestRemainingMatchersToAssertJ
mod run . --recipe=org.openrewrite.java.testing.hamcrest.HamcrestRemainingMatchersToAssertJ

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