Replace PowerMock EasyMock calls with EasyMock

MSAL

Replaces 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.PowerMockEasyMockToEasyMock
mod run . --recipe=org.openrewrite.java.testing.mockito.PowerMockEasyMockToEasyMock

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.