Package org.powermock.modules.testng
Class PowerMockObjectFactory
- java.lang.Object
-
- org.powermock.modules.testng.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 withPrepareForTestorSuppressStaticInitializationForthe PowerMock classloader will enable the class for PowerMock testing, otherwise a standard ObjectFactory is used.
-
-
Constructor Summary
Constructors Constructor Description PowerMockObjectFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectnewInstance(Constructor constructor, Object... params)
-
-
-
Method Detail
-
newInstance
public Object newInstance(Constructor constructor, Object... params)
- Specified by:
newInstancein interfaceorg.testng.IObjectFactory
-
-