Replace MockitoTestExecutionListener (JUnit 4 projects)

MSAL

Replace MockitoTestExecutionListener in projects that have JUnit 4 as a dependency. Uses @RunWith(MockitoJUnitRunner.class) as the replacement.

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

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. Replace MockitoTestExecutionListener with the equivalent Mockito test initialization