Use consistent Hamcrest matcher imports

MSAL

Use consistent imports for Hamcrest matchers, and remove wrapping is(Matcher) calls ahead of further changes.

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

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

Recipe list

It runs these recipes, in this order.

  1. Change method target to static
  2. Change method target to static
  3. Remove Hamcrest is(Matcher)