Replace PowerMock runner with JUnit @RunWith
MSALReplaces @RunWith(PowerMockRunner.class). If @PowerMockRunnerDelegate(X.class) is present, promotes the delegate runner to @RunWith(X.class). Otherwise, replaces it with @RunWith(MockitoJUnitRunner.Silent.class) when the class uses Mockito annotations like @Mock, or removes the @RunWith(PowerMockRunner.class) annotation entirely.
org. openrewrite. java. testing. mockito. PowerMockRunnerDelegateToRunWithmod run . --recipe= org. openrewrite. java. testing. mockito. PowerMockRunnerDelegateToRunWithInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.