Replace verifyZeroInteractions() with verifyNoMoreInteractions()

MSAL

Replaces verifyZeroInteractions() with verifyNoMoreInteractions() in modules that depend on a Mockito version before 3.x, which is what verifyZeroInteractions() did there.

org.openrewrite.java.testing.mockito.VerifyZeroToNoMoreInteractions
mod run . --recipe=org.openrewrite.java.testing.mockito.VerifyZeroToNoMoreInteractions

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 name org.mockito.Mockito verifyZeroInteractions(..) to verifyNoMoreInteractions