Package org.testng.internal
Class NoOpTestClass
java.lang.Object
org.testng.internal.NoOpTestClass
- All Implemented Interfaces:
IClass
,ITestClass
- Direct Known Subclasses:
TestClass
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ITestNGMethod[]
protected ITestNGMethod[]
protected ITestNGMethod[]
protected ITestNGMethod[]
protected ITestNGMethod[]
protected ITestNGMethod[]
protected ITestNGMethod[]
protected ITestNGMethod[]
protected ITestNGMethod[]
protected ITestNGMethod[]
private final long[]
private final Object[]
protected Class<?>
protected ITestNGMethod[]
private final XmlClass
private final XmlTest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addInstance
(Object instance) Returns all the methods that should be invoked after all the tests have been run on this class.Returns all @Configuration methods that should be invoked after certain groups.Returns all the methods that should be invoked after the suite has run.Returns all @Configuration methods that should be invoked last before any others in the current test.Returns all the methods that should be invoked after a test method completes.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 all @Configuration methods that should be invoked before certain groups.Returns All the methods that should be invoked before the suite is run.Returns all @Configuration methods that should be invoked before any others in the current test.Returns all the methods that should be invoked before a test method is invoked.long[]
Object[]
getInstances
(boolean reuse) Returns all the instances the methods will be invoked upon.getName()
Class<?>
Returns all the applicable test methods.void
setAfterTestMethod
(ITestNGMethod[] afterTestMethods) void
setBeforeTestMethods
(ITestNGMethod[] beforeTestMethods) void
setTestClass
(Class<?> declaringClass) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.testng.IClass
getInstances
-
Field Details
-
m_testClass
-
m_beforeClassMethods
-
m_beforeTestMethods
-
m_testMethods
-
m_afterClassMethods
-
m_afterTestMethods
-
m_beforeSuiteMethods
-
m_afterSuiteMethods
-
m_beforeTestConfMethods
-
m_afterTestConfMethods
-
m_beforeGroupsMethods
-
m_afterGroupsMethods
-
m_instances
-
m_instanceHashes
private final long[] m_instanceHashes -
m_xmlTest
-
m_xmlClass
-
-
Constructor Details
-
NoOpTestClass
protected NoOpTestClass() -
NoOpTestClass
-
-
Method Details
-
setBeforeTestMethods
-
setAfterTestMethod
-
getAfterClassMethods
Description copied from interface:ITestClass
Returns all the methods that should be invoked after all the tests have been run on this class.- Specified by:
getAfterClassMethods
in interfaceITestClass
- Returns:
- Returns the afterClassMethods.
-
getAfterTestMethods
Description copied from interface:ITestClass
Returns all the methods that should be invoked after a test method completes.- Specified by:
getAfterTestMethods
in interfaceITestClass
- Returns:
- Returns the afterTestMethods.
-
getBeforeClassMethods
Description copied from interface:ITestClass
Return all the methods that should be invoked after the test class has been created and before any of its test methods is invoked.- Specified by:
getBeforeClassMethods
in interfaceITestClass
- Returns:
- Returns the beforeClassMethods.
-
getBeforeTestMethods
Description copied from interface:ITestClass
Returns all the methods that should be invoked before a test method is invoked.- Specified by:
getBeforeTestMethods
in interfaceITestClass
- Returns:
- Returns the beforeTestMethods.
-
getTestMethods
Description copied from interface:ITestClass
Returns all the applicable test methods.- Specified by:
getTestMethods
in interfaceITestClass
- Returns:
- Returns the testMethods.
-
getBeforeSuiteMethods
Description copied from interface:ITestClass
Returns All the methods that should be invoked before the suite is run.- Specified by:
getBeforeSuiteMethods
in interfaceITestClass
- Returns:
- All the methods that should be invoked before the suite is run.
-
getAfterSuiteMethods
Description copied from interface:ITestClass
Returns all the methods that should be invoked after the suite has run.- Specified by:
getAfterSuiteMethods
in interfaceITestClass
- Returns:
- All the methods that should be invoked after the suite has run.
-
getBeforeTestConfigurationMethods
Description copied from interface:ITestClass
Returns all @Configuration methods that should be invoked before any others in the current test.- Specified by:
getBeforeTestConfigurationMethods
in interfaceITestClass
- Returns:
- all @Configuration methods that should be invoked before any others in the current test.
-
getAfterTestConfigurationMethods
Description copied from interface:ITestClass
Returns all @Configuration methods that should be invoked last before any others in the current test.- Specified by:
getAfterTestConfigurationMethods
in interfaceITestClass
- Returns:
- all @Configuration methods that should be invoked last before any others in the current test.
-
getBeforeGroupsMethods
Description copied from interface:ITestClass
Returns all @Configuration methods that should be invoked before certain groups.- Specified by:
getBeforeGroupsMethods
in interfaceITestClass
- Returns:
- all @Configuration methods that should be invoked before certain groups
-
getAfterGroupsMethods
Description copied from interface:ITestClass
Returns all @Configuration methods that should be invoked after certain groups.- Specified by:
getAfterGroupsMethods
in interfaceITestClass
- Returns:
- all @Configuration methods that should be invoked after certain groups
-
getInstanceHashCodes
public long[] getInstanceHashCodes()- Specified by:
getInstanceHashCodes
in interfaceIClass
- See Also:
-
getInstances
Description copied from interface:IClass
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.- Specified by:
getInstances
in interfaceIClass
- Parameters:
reuse
- flag if a new set of instances must be returned (if set tofalse
)- Returns:
- All the instances the methods will be invoked upon.
- See Also:
-
getName
-
getRealClass
- Specified by:
getRealClass
in interfaceIClass
- Returns:
- the Java class corresponding to this IClass.
-
addInstance
- Specified by:
addInstance
in interfaceIClass
- See Also:
-
setTestClass
-
getTestName
- Specified by:
getTestName
in interfaceIClass
- Returns:
- its test name if this class implements org.testng.ITest, null otherwise.
-
getXmlTest
- Specified by:
getXmlTest
in interfaceIClass
- Returns:
- the <test> tag this class was found in.
-
getXmlClass
- Specified by:
getXmlClass
in interfaceIClass
- Returns:
- the *lt;class> tag this class was found in.
-