Remove PowerMockAgent.initializeIfNeeded()
MSALRemoves calls to PowerMockAgent.initializeIfNeeded(), which only attaches the PowerMock Java agent that Mockito's inline mock maker has no use for, and the static initializer blocks that are left empty by it.
org. openrewrite. java. testing. mockito. RemovePowerMockAgentInitializationmod run . --recipe= org. openrewrite. java. testing. mockito. RemovePowerMockAgentInitializationInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.