org.powermock.modules.testng
Class PowerMockObjectFactory

java.lang.Object
  extended by 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

Constructor Summary
PowerMockObjectFactory()
           
 
Method Summary
 Object newInstance(Constructor constructor, Object... params)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PowerMockObjectFactory

public PowerMockObjectFactory()
Method Detail

newInstance

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


Copyright © 2007-2013. All Rights Reserved.