Migrate the remaining Hamcrest matchers to AssertJ
MSALMigrate 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. HamcrestRemainingMatchersToAssertJmod run . --recipe= org. openrewrite. java. testing. hamcrest. HamcrestRemainingMatchersToAssertJInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.