Remove the TestNG PowerMockObjectFactory

MSAL

Removes TestNG @ObjectFactory methods that only return a PowerMockObjectFactory. That object factory loads the test class through PowerMock's class loader, which Mockito has no use for, and without it TestNG instantiates the test class itself.

org.openrewrite.java.testing.mockito.RemovePowerMockObjectFactory
mod run . --recipe=org.openrewrite.java.testing.mockito.RemovePowerMockObjectFactory

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