org.powermock.modules.testng
Class PowerMockObjectFactory
java.lang.Object
org.powermock.modules.testng.PowerMockObjectFactory
- All Implemented Interfaces:
- Serializable, 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.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PowerMockObjectFactory
public PowerMockObjectFactory()
newInstance
public Object newInstance(Constructor constructor,
Object... params)
- Specified by:
newInstance
in interface org.testng.IObjectFactory
Copyright © 2007-2013. All Rights Reserved.