Top Fields Constructors Methods
org.testng.internal

public Class NoOpTestClass

extends Object
implements ITestClass, IObject
Class Inheritance
All Implemented Interfaces
org.testng.internal.IObject, org.testng.ITestClass, org.testng.IClass
Known Direct Subclasses
org.testng.TestClass
Imports
java.util.ArrayList, .List, org.testng.ITestClass, .ITestNGMethod, org.testng.xml.XmlClass, .XmlTest

Field Summary

Modifier and TypeField and Description
protected List<ITestNGMethod>
protected List<ITestNGMethod>
protected List<ITestNGMethod>
protected List<ITestNGMethod>
protected List<ITestNGMethod>
protected List<ITestNGMethod>
protected ITestNGMethod[]
protected List<ITestNGMethod>
protected List<ITestNGMethod>
protected List<ITestNGMethod>
private final long[]
private final IObject.IdentifiableObject[]
protected Class<?>
protected ITestNGMethod[]
private final XmlClass
private final XmlTest

Constructor Summary

AccessConstructor and Description
protected
public

Method Summary

Modifier and TypeMethod and Description
public void
addInstance(Object
- The instance to be added.
instance
)

Implements org.testng.IClass.addInstance.

public void
addObject(IObject.IdentifiableObject
- The instance that should be added to the list of instances.
instance
)

Implements org.testng.internal.IObject.addObject.

public ITestNGMethod[]

Returns:

Returns the afterClassMethods.
getAfterClassMethods
()

Implements org.testng.ITestClass.getAfterClassMethods.

Returns all the methods that should be invoked after all the tests have been run on this class.
public ITestNGMethod[]

Returns:

all @Configuration methods that should be invoked after certain groups
getAfterGroupsMethods
()

Implements org.testng.ITestClass.getAfterGroupsMethods.

Returns all @Configuration methods that should be invoked after certain groups.
public ITestNGMethod[]
getAfterSuiteMethods()

Implements org.testng.ITestClass.getAfterSuiteMethods.

Returns all the methods that should be invoked after the suite has run.
public ITestNGMethod[]
getAfterTestConfigurationMethods()

Implements org.testng.ITestClass.getAfterTestConfigurationMethods.

Returns all @Configuration methods that should be invoked last before any others in the current test.
public ITestNGMethod[]

Returns:

Returns the afterTestMethods.
getAfterTestMethods
()

Implements org.testng.ITestClass.getAfterTestMethods.

Returns all the methods that should be invoked after a test method completes.
public ITestNGMethod[]

Returns:

Returns the beforeClassMethods.
getBeforeClassMethods
()

Implements org.testng.ITestClass.getBeforeClassMethods.

Return all the methods that should be invoked after the test class has been created and before any of its test methods is invoked.
public ITestNGMethod[]

Returns:

all @Configuration methods that should be invoked before certain groups
getBeforeGroupsMethods
()

Implements org.testng.ITestClass.getBeforeGroupsMethods.

Returns all @Configuration methods that should be invoked before certain groups.
public ITestNGMethod[]
getBeforeSuiteMethods()

Implements org.testng.ITestClass.getBeforeSuiteMethods.

Returns All the methods that should be invoked before the suite is run.
public ITestNGMethod[]
getBeforeTestConfigurationMethods()

Implements org.testng.ITestClass.getBeforeTestConfigurationMethods.

Returns all @Configuration methods that should be invoked before any others in the current test.
public ITestNGMethod[]

Returns:

Returns the beforeTestMethods.
getBeforeTestMethods
()

Implements org.testng.ITestClass.getBeforeTestMethods.

Returns all the methods that should be invoked before a test method is invoked.
public long[]
public Object[]
getInstances(boolean
flag if a new set of instances must be returned (if set to false)
reuse
)

Implements org.testng.IClass.getInstances.

Returns all the instances the methods will be invoked upon.
public String
public IObject.IdentifiableObject[]
getObjects(boolean
- true if objects should be created before returning.
create
,
String
- Text that should be prefixed to the error message when there are issues. Can be empty.
errorMsgPrefix
)

Implements org.testng.internal.IObject.getObjects.

Returns all the instances the methods will be invoked upon.
public Class<?>
public ITestNGMethod[]

Returns:

Returns the testMethods.
getTestMethods
()

Implements org.testng.ITestClass.getTestMethods.

Returns all the applicable test methods.
public String
public XmlClass
public XmlTest
public void
setAfterTestMethod(ITestNGMethod[] afterTestMethods)

public void
setBeforeTestMethods(ITestNGMethod[] beforeTestMethods)

public void
setTestClass(Class<?> declaringClass)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

m_afterClassMethodsback to summary
protected List<ITestNGMethod> m_afterClassMethods
m_afterGroupsMethodsback to summary
protected List<ITestNGMethod> m_afterGroupsMethods
m_afterSuiteMethodsback to summary
protected List<ITestNGMethod> m_afterSuiteMethods
m_afterTestConfMethodsback to summary
protected List<ITestNGMethod> m_afterTestConfMethods
m_afterTestMethodsback to summary
protected List<ITestNGMethod> m_afterTestMethods
m_beforeClassMethodsback to summary
protected List<ITestNGMethod> m_beforeClassMethods
m_beforeGroupsMethodsback to summary
protected ITestNGMethod[] m_beforeGroupsMethods
m_beforeSuiteMethodsback to summary
protected List<ITestNGMethod> m_beforeSuiteMethods
m_beforeTestConfMethodsback to summary
protected List<ITestNGMethod> m_beforeTestConfMethods
m_beforeTestMethodsback to summary
protected List<ITestNGMethod> m_beforeTestMethods
m_instanceHashesback to summary
private final long[] m_instanceHashes
m_instancesback to summary
private final IObject.IdentifiableObject[] m_instances
m_testClassback to summary
protected Class<?> m_testClass
m_testMethodsback to summary
protected ITestNGMethod[] m_testMethods
m_xmlClassback to summary
private final XmlClass m_xmlClass
m_xmlTestback to summary
private final XmlTest m_xmlTest

Constructor Detail

NoOpTestClassback to summary
protected NoOpTestClass()
NoOpTestClassback to summary
public NoOpTestClass(ITestClass testClass)

Method Detail

addInstanceback to summary
public void addInstance(Object instance)

Implements org.testng.IClass.addInstance.

Parameters
instance:Object

Doc from org.testng.IClass.addInstance.

- The instance to be added.

Annotations
@Override
addObjectback to summary
public void addObject(IObject.IdentifiableObject instance)

Implements org.testng.internal.IObject.addObject.

Parameters
instance:IObject.IdentifiableObject

Doc from org.testng.internal.IObject.addObject.

- The instance that should be added to the list of instances.

Annotations
@Override
getAfterClassMethodsback to summary
public ITestNGMethod[] getAfterClassMethods()

Implements org.testng.ITestClass.getAfterClassMethods.

Doc from org.testng.ITestClass.getAfterClassMethods.

Returns all the methods that should be invoked after all the tests have been run on this class.

Returns:ITestNGMethod[]

Returns the afterClassMethods.

Annotations
@Override
getAfterGroupsMethodsback to summary
public ITestNGMethod[] getAfterGroupsMethods()

Implements org.testng.ITestClass.getAfterGroupsMethods.

Doc from org.testng.ITestClass.getAfterGroupsMethods.

Returns all @Configuration methods that should be invoked after certain groups.

Returns:ITestNGMethod[]

all @Configuration methods that should be invoked after certain groups

Annotations
@Override
getAfterSuiteMethodsback to summary
public ITestNGMethod[] getAfterSuiteMethods()

Implements org.testng.ITestClass.getAfterSuiteMethods.

Doc from org.testng.ITestClass.getAfterSuiteMethods.

Returns all the methods that should be invoked after the suite has run.

Returns:ITestNGMethod[]

All the methods that should be invoked after the suite has run.

Annotations
@Override
getAfterTestConfigurationMethodsback to summary
public ITestNGMethod[] getAfterTestConfigurationMethods()

Implements org.testng.ITestClass.getAfterTestConfigurationMethods.

Doc from org.testng.ITestClass.getAfterTestConfigurationMethods.

Returns all @Configuration methods that should be invoked last before any others in the current test.

Returns:ITestNGMethod[]

all @Configuration methods that should be invoked last before any others in the current test.

Annotations
@Override
getAfterTestMethodsback to summary
public ITestNGMethod[] getAfterTestMethods()

Implements org.testng.ITestClass.getAfterTestMethods.

Doc from org.testng.ITestClass.getAfterTestMethods.

Returns all the methods that should be invoked after a test method completes.

Returns:ITestNGMethod[]

Returns the afterTestMethods.

Annotations
@Override
getBeforeClassMethodsback to summary
public ITestNGMethod[] getBeforeClassMethods()

Implements org.testng.ITestClass.getBeforeClassMethods.

Doc from org.testng.ITestClass.getBeforeClassMethods.

Return all the methods that should be invoked after the test class has been created and before any of its test methods is invoked.

Returns:ITestNGMethod[]

Returns the beforeClassMethods.

Annotations
@Override
getBeforeGroupsMethodsback to summary
public ITestNGMethod[] getBeforeGroupsMethods()

Implements org.testng.ITestClass.getBeforeGroupsMethods.

Doc from org.testng.ITestClass.getBeforeGroupsMethods.

Returns all @Configuration methods that should be invoked before certain groups.

Returns:ITestNGMethod[]

all @Configuration methods that should be invoked before certain groups

Annotations
@Override
getBeforeSuiteMethodsback to summary
public ITestNGMethod[] getBeforeSuiteMethods()

Implements org.testng.ITestClass.getBeforeSuiteMethods.

Doc from org.testng.ITestClass.getBeforeSuiteMethods.

Returns All the methods that should be invoked before the suite is run.

Returns:ITestNGMethod[]

All the methods that should be invoked before the suite is run.

Annotations
@Override
getBeforeTestConfigurationMethodsback to summary
public ITestNGMethod[] getBeforeTestConfigurationMethods()

Implements org.testng.ITestClass.getBeforeTestConfigurationMethods.

Doc from org.testng.ITestClass.getBeforeTestConfigurationMethods.

Returns all @Configuration methods that should be invoked before any others in the current test.

Returns:ITestNGMethod[]

all @Configuration methods that should be invoked before any others in the current test.

Annotations
@Override
getBeforeTestMethodsback to summary
public ITestNGMethod[] getBeforeTestMethods()

Implements org.testng.ITestClass.getBeforeTestMethods.

Doc from org.testng.ITestClass.getBeforeTestMethods.

Returns all the methods that should be invoked before a test method is invoked.

Returns:ITestNGMethod[]

Returns the beforeTestMethods.

Annotations
@Override
getInstanceHashCodesback to summary
public long[] getInstanceHashCodes()

Implements org.testng.IClass.getInstanceHashCodes, org.testng.internal.IObject.getInstanceHashCodes.

Returns:long[]

Doc from org.testng.internal.IObject.getInstanceHashCodes.

- An array representing the hash codes of the corresponding instances.

Annotations
@Override
See Also
org.testng.internal.IObject#getInstanceHashCodes()
getInstancesback to summary
public Object[] getInstances(boolean reuse)

Implements org.testng.IClass.getInstances.

Doc from org.testng.IClass.getInstances.

Returns all the instances the methods will be invoked upon. This will typically be an array of one object in the absence of a @Factory annotation.

Parameters
reuse:boolean

flag if a new set of instances must be returned (if set to false)

Returns:Object[]

All the instances the methods will be invoked upon.

Annotations
@Override
getNameback to summary
public String getName()

Implements org.testng.IClass.getName.

Returns:String

Doc from org.testng.IClass.getName.

this test class name. This is the name of the corresponding Java class.

Annotations
@Override
getObjectsback to summary
public IObject.IdentifiableObject[] getObjects(boolean create, String errorMsgPrefix)

Implements org.testng.internal.IObject.getObjects.

Doc from org.testng.internal.IObject.getObjects.

Returns all the instances the methods will be invoked upon. This will typically be an array of one object in the absence of a @Factory annotation.

Parameters
create:boolean

- true if objects should be created before returning.

errorMsgPrefix:String

- Text that should be prefixed to the error message when there are issues. Can be empty.

Returns:IObject.IdentifiableObject[]

- An array of IdentifiableObject objects

Annotations
@Override
getRealClassback to summary
public Class<?> getRealClass()

Implements org.testng.IClass.getRealClass.

Returns:Class<?>

Doc from org.testng.IClass.getRealClass.

the Java class corresponding to this IClass.

Annotations
@Override
getTestMethodsback to summary
public ITestNGMethod[] getTestMethods()

Implements org.testng.ITestClass.getTestMethods.

Doc from org.testng.ITestClass.getTestMethods.

Returns all the applicable test methods.

Returns:ITestNGMethod[]

Returns the testMethods.

Annotations
@Override
getTestNameback to summary
public String getTestName()

Implements org.testng.IClass.getTestName.

Returns:String

Doc from org.testng.IClass.getTestName.

its test name if this class implements org.testng.ITest, null otherwise.

Annotations
@Override
getXmlClassback to summary
public XmlClass getXmlClass()

Implements org.testng.IClass.getXmlClass.

Returns:XmlClass

Doc from org.testng.IClass.getXmlClass.

the *lt;class> tag this class was found in.

Annotations
@Override
getXmlTestback to summary
public XmlTest getXmlTest()

Implements org.testng.IClass.getXmlTest.

Returns:XmlTest

Doc from org.testng.IClass.getXmlTest.

the <test> tag this class was found in.

Annotations
@Override
setAfterTestMethodback to summary
public void setAfterTestMethod(ITestNGMethod[] afterTestMethods)
setBeforeTestMethodsback to summary
public void setBeforeTestMethods(ITestNGMethod[] beforeTestMethods)
setTestClassback to summary
public void setTestClass(Class<?> declaringClass)