Replace MockitoTestExecutionListener (TestNG projects)
MSALReplace MockitoTestExecutionListener in projects that have TestNG as a dependency. Uses MockitoAnnotations.openMocks(this) with @BeforeMethod/@AfterMethod as the replacement.
org. openrewrite. java. testing. mockito. ReplaceMockitoTestExecutionListenerForTestNGmod run . --recipe= org. openrewrite. java. testing. mockito. ReplaceMockitoTestExecutionListenerForTestNGInstall 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.