Replace MockitoTestExecutionListener (JUnit Jupiter projects)

MSAL

Replace MockitoTestExecutionListener in projects that have JUnit Jupiter as a dependency. Uses @ExtendWith(MockitoExtension.class) as the replacement.

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

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