Remove doNothing() for void methods on @Mock fields
MSALRemove unnecessary doNothing() stubbings for void methods on @Mock fields. Mockito mocks already do nothing for void methods by default, making these stubbings redundant and triggering strict stubbing violations in Mockito 3+.
org. openrewrite. java. testing. mockito. RemoveDoNothingForDefaultMocksmod run . --recipe= org. openrewrite. java. testing. mockito. RemoveDoNothingForDefaultMocksInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.