Use Hamcrest CoreMatchers.containsString over JUnitMatchers.containsString
MSALJUnit 4.13 ships both, and a file that imports the members of both has ambiguous calls. Only modules on JUnit 4.11 or later are changed, as CoreMatchers.containsString comes with the Hamcrest 1.3 that those depend on; earlier versions bundle a Hamcrest without it.
org. openrewrite. java. testing. junit4. UseCoreMatchersContainsStringmod run . --recipe= org. openrewrite. java. testing. junit4. UseCoreMatchersContainsStringInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.