Convert ArgumentMatcher<T> anonymous class to lambda
MSALConverts anonymous ArgumentMatcher<T> implementations with matches(Object) to lambda expressions with the correct parameter type. In Mockito 1.x, ArgumentMatcher<T> extended Hamcrest's BaseMatcher and matches always took Object. In Mockito 2+, ArgumentMatcher<T> is a functional interface where matches takes T.
org. openrewrite. java. testing. mockito. ArgumentMatcherToLambdamod run . --recipe= org. openrewrite. java. testing. mockito. ArgumentMatcherToLambdaInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.