public class NoOpTestClass extends java.lang.Object implements ITestClass
| Modifier and Type | Field and Description |
|---|---|
protected ITestNGMethod[] |
m_afterClassMethods |
protected ITestNGMethod[] |
m_afterGroupsMethods |
protected ITestNGMethod[] |
m_afterSuiteMethods |
protected ITestNGMethod[] |
m_afterTestConfMethods |
protected ITestNGMethod[] |
m_afterTestMethods |
protected ITestNGMethod[] |
m_beforeClassMethods |
protected ITestNGMethod[] |
m_beforeGroupsMethods |
protected ITestNGMethod[] |
m_beforeSuiteMethods |
protected ITestNGMethod[] |
m_beforeTestConfMethods |
protected ITestNGMethod[] |
m_beforeTestMethods |
protected java.lang.Class<?> |
m_testClass |
protected ITestNGMethod[] |
m_testMethods |
| Modifier | Constructor and Description |
|---|---|
protected |
NoOpTestClass() |
|
NoOpTestClass(ITestClass testClass) |
| Modifier and Type | Method and Description |
|---|---|
void |
addInstance(java.lang.Object instance) |
ITestNGMethod[] |
getAfterClassMethods()
Returns all the methods that should be invoked
after all the tests have been run on this class.
|
ITestNGMethod[] |
getAfterGroupsMethods()
Returns all @Configuration methods that should be invoked after certain groups.
|
ITestNGMethod[] |
getAfterSuiteMethods()
Returns all the methods that should be invoked
after the suite has run.
|
ITestNGMethod[] |
getAfterTestConfigurationMethods()
Returns all @Configuration methods that should be invoked last before any others
in the current test.
|
ITestNGMethod[] |
getAfterTestMethods()
Returns all the methods that should be invoked
after a test method completes.
|
ITestNGMethod[] |
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.
|
ITestNGMethod[] |
getBeforeGroupsMethods()
Returns all @Configuration methods that should be invoked before certain groups.
|
ITestNGMethod[] |
getBeforeSuiteMethods()
Returns All the methods that should be invoked
before the suite is run.
|
ITestNGMethod[] |
getBeforeTestConfigurationMethods()
Returns all @Configuration methods that should be invoked before any others in the
current test.
|
ITestNGMethod[] |
getBeforeTestMethods()
Returns all the methods that should be invoked
before a test method is invoked.
|
int |
getInstanceCount()
Deprecated.
|
long[] |
getInstanceHashCodes() |
java.lang.Object[] |
getInstances(boolean reuse)
Returns all the instances the methods will be invoked upon.
|
java.lang.String |
getName() |
java.lang.Class |
getRealClass() |
ITestNGMethod[] |
getTestMethods()
Returns all the applicable test methods.
|
java.lang.String |
getTestName()
If this class implements org.testng.ITest, returns its test name, otherwise returns null.
|
XmlClass |
getXmlClass() |
XmlTest |
getXmlTest() |
void |
setAfterTestMethod(ITestNGMethod[] afterTestMethods) |
void |
setBeforeTestMethods(ITestNGMethod[] beforeTestMethods) |
void |
setTestClass(java.lang.Class<?> declaringClass) |
protected java.lang.Class<?> m_testClass
protected ITestNGMethod[] m_beforeClassMethods
protected ITestNGMethod[] m_beforeTestMethods
protected ITestNGMethod[] m_testMethods
protected ITestNGMethod[] m_afterClassMethods
protected ITestNGMethod[] m_afterTestMethods
protected ITestNGMethod[] m_beforeSuiteMethods
protected ITestNGMethod[] m_afterSuiteMethods
protected ITestNGMethod[] m_beforeTestConfMethods
protected ITestNGMethod[] m_afterTestConfMethods
protected ITestNGMethod[] m_beforeGroupsMethods
protected ITestNGMethod[] m_afterGroupsMethods
protected NoOpTestClass()
public NoOpTestClass(ITestClass testClass)
public void setBeforeTestMethods(ITestNGMethod[] beforeTestMethods)
public void setAfterTestMethod(ITestNGMethod[] afterTestMethods)
public ITestNGMethod[] getAfterClassMethods()
ITestClassgetAfterClassMethods in interface ITestClasspublic ITestNGMethod[] getAfterTestMethods()
ITestClassgetAfterTestMethods in interface ITestClasspublic ITestNGMethod[] getBeforeClassMethods()
ITestClassgetBeforeClassMethods in interface ITestClasspublic ITestNGMethod[] getBeforeTestMethods()
ITestClassgetBeforeTestMethods in interface ITestClasspublic ITestNGMethod[] getTestMethods()
ITestClassgetTestMethods in interface ITestClasspublic ITestNGMethod[] getBeforeSuiteMethods()
ITestClassgetBeforeSuiteMethods in interface ITestClasspublic ITestNGMethod[] getAfterSuiteMethods()
ITestClassgetAfterSuiteMethods in interface ITestClasspublic ITestNGMethod[] getBeforeTestConfigurationMethods()
ITestClassgetBeforeTestConfigurationMethods in interface ITestClasspublic ITestNGMethod[] getAfterTestConfigurationMethods()
ITestClassgetAfterTestConfigurationMethods in interface ITestClasspublic ITestNGMethod[] getBeforeGroupsMethods()
ITestClassgetBeforeGroupsMethods in interface ITestClasspublic ITestNGMethod[] getAfterGroupsMethods()
ITestClassgetAfterGroupsMethods in interface ITestClass@Deprecated public int getInstanceCount()
getInstanceCount in interface IClasspublic long[] getInstanceHashCodes()
getInstanceHashCodes in interface IClassIClass.getInstanceHashCodes()public java.lang.Object[] getInstances(boolean reuse)
IClassgetInstances in interface IClassreuse - flag if a new set of instances must be returned
(if set to false)IClass.getInstances(boolean)public java.lang.String getName()
public java.lang.Class getRealClass()
getRealClass in interface IClasspublic void addInstance(java.lang.Object instance)
addInstance in interface IClassIClass.addInstance(java.lang.Object)public void setTestClass(java.lang.Class<?> declaringClass)
public java.lang.String getTestName()
IClassgetTestName in interface IClasspublic XmlTest getXmlTest()
getXmlTest in interface IClasspublic XmlClass getXmlClass()
getXmlClass in interface IClass