public abstract class JUnitTestClass extends java.lang.Object implements ITestClass
| Constructor and Description |
|---|
JUnitTestClass(java.lang.Class<?> test) |
| 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() |
public void addInstance(java.lang.Object instance)
addInstance in interface IClassIClass.addInstance(java.lang.Object)public java.lang.String getName()
getName in interface IClassIClass.getName()public java.lang.Class getRealClass()
getRealClass in interface IClassIClass.getRealClass()public java.lang.String getTestName()
IClassgetTestName in interface IClasspublic XmlTest getXmlTest()
getXmlTest in interface IClasspublic XmlClass getXmlClass()
getXmlClass in interface IClass@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 ITestNGMethod[] getTestMethods()
ITestClassgetTestMethods in interface ITestClassITestClass.getTestMethods()public ITestNGMethod[] getBeforeTestMethods()
ITestClassgetBeforeTestMethods in interface ITestClassITestClass.getBeforeTestMethods()public ITestNGMethod[] getAfterTestMethods()
ITestClassgetAfterTestMethods in interface ITestClassITestClass.getAfterTestMethods()public ITestNGMethod[] getBeforeClassMethods()
ITestClassgetBeforeClassMethods in interface ITestClassITestClass.getBeforeClassMethods()public ITestNGMethod[] getAfterClassMethods()
ITestClassgetAfterClassMethods in interface ITestClassITestClass.getAfterClassMethods()public ITestNGMethod[] getBeforeSuiteMethods()
ITestClassgetBeforeSuiteMethods in interface ITestClassITestClass.getBeforeSuiteMethods()public ITestNGMethod[] getAfterSuiteMethods()
ITestClassgetAfterSuiteMethods in interface ITestClassITestClass.getAfterSuiteMethods()public ITestNGMethod[] getBeforeGroupsMethods()
ITestClassgetBeforeGroupsMethods in interface ITestClassITestClass.getBeforeGroupsMethods()public ITestNGMethod[] getAfterGroupsMethods()
ITestClassgetAfterGroupsMethods in interface ITestClassITestClass.getAfterGroupsMethods()public ITestNGMethod[] getBeforeTestConfigurationMethods()
ITestClassgetBeforeTestConfigurationMethods in interface ITestClassITestClass.getBeforeTestConfigurationMethods()public ITestNGMethod[] getAfterTestConfigurationMethods()
ITestClassgetAfterTestConfigurationMethods in interface ITestClassITestClass.getAfterTestConfigurationMethods()