Remove the TestNG PowerMockObjectFactory
MSALRemoves 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. RemovePowerMockObjectFactorymod run . --recipe= org. openrewrite. java. testing. mockito. RemovePowerMockObjectFactoryInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.