Class PowerMockObjectFactory

  • All Implemented Interfaces:
    org.testng.IObjectFactory, org.testng.ITestObjectFactory

    public class PowerMockObjectFactory
    extends Object
    implements org.testng.IObjectFactory
    The PowerMock object factory. If the test class or any public method declared in the test class is annotated with PrepareForTest or SuppressStaticInitializationFor the PowerMock classloader will enable the class for PowerMock testing, otherwise a standard ObjectFactory is used.
    • Constructor Detail

      • PowerMockObjectFactory

        public PowerMockObjectFactory()
    • Method Detail

      • newInstance

        public Object newInstance​(Constructor constructor,
                                  Object... params)
        Specified by:
        newInstance in interface org.testng.IObjectFactory