Replace PowerMock EasyMock calls with EasyMock
MSALReplaces PowerMock.createMock(Type.class), createNiceMock, createStrictMock, replay(mocks), verify(mocks) and reset(mocks) with the same calls on EasyMock, which is what they delegate to for a mock of a type that EasyMock can mock itself. Calls with a class as an argument, which mock static methods, and the creation of a partial mock are left as they are. verify of several mocks becomes one verify for each, as that is what EasyMockCodeToMockito migrates.
org. openrewrite. java. testing. mockito. PowerMockEasyMockToEasyMockmod run . --recipe= org. openrewrite. java. testing. mockito. PowerMockEasyMockToEasyMockInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.