Adds Mockito extensions to Mockito tests
MSALAdds @ExtendWith(MockitoExtension.class) to JUnit 5 tests or @RunWith(MockitoJUnitRunner.class) to JUnit 4 tests using Mockito annotations like @Mock or @Captor.
org. openrewrite. java. testing. mockito. AddMockitoExtensionIfAnnotationsUsedmod run . --recipe= org. openrewrite. java. testing. mockito. AddMockitoExtensionIfAnnotationsUsedInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.