Find Mockito argument-matcher any() / eq() / isA() calls
ProprietaryMockito's argument matchers (any(), eq(value), isA(X::class.java)) only work inside a whenever/verify call — they throw if used elsewhere. mockk's matchers (any(), eq(value), match { … }) work the same way but live in every { } / verify { } blocks, so the matcher and the recording context are co-located.
org. openrewrite. kotlin. testing. FindMockitoArgumentMatchersAny$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. testing. FindMockitoArgumentMatchersAny$KtRecipe'Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.