|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.testng.junit.JUnitTestClass
public abstract class JUnitTestClass
Constructor Summary | |
---|---|
JUnitTestClass(Class test)
|
Method Summary | |
---|---|
void |
addInstance(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()
|
long[] |
getInstanceHashCodes()
TODO cquezel JavaDoc. |
Object[] |
getInstances(boolean reuse)
Returns all the instances the methods will be invoked upon. |
String |
getName()
|
Class |
getRealClass()
|
ITestNGMethod[] |
getTestMethods()
Returns all the applicable test methods. |
String |
getTestName()
If this class implements ITest, returns its test name, otherwise returns null. |
XmlClass |
getXmlClass()
|
XmlTest |
getXmlTest()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JUnitTestClass(Class test)
Method Detail |
---|
public void addInstance(Object instance)
addInstance
in interface IClass
IClass.addInstance(java.lang.Object)
public String getName()
getName
in interface IClass
IClass.getName()
public Class getRealClass()
getRealClass
in interface IClass
IClass.getRealClass()
public String getTestName()
IClass
getTestName
in interface IClass
public XmlTest getXmlTest()
getXmlTest
in interface IClass
public XmlClass getXmlClass()
getXmlClass
in interface IClass
public int getInstanceCount()
getInstanceCount
in interface IClass
getInstanceCount
in interface ITestClass
ITestClass.getInstanceCount()
public long[] getInstanceHashCodes()
ITestClass
getInstanceHashCodes
in interface IClass
getInstanceHashCodes
in interface ITestClass
ITestClass.getInstanceHashCodes()
public Object[] getInstances(boolean reuse)
ITestClass
getInstances
in interface IClass
getInstances
in interface ITestClass
reuse
- flag if a new set of instances must be returned
(if set to false)
ITestClass.getInstances(boolean)
public ITestNGMethod[] getTestMethods()
ITestClass
getTestMethods
in interface ITestClass
ITestClass.getTestMethods()
public ITestNGMethod[] getBeforeTestMethods()
ITestClass
getBeforeTestMethods
in interface ITestClass
ITestClass.getBeforeTestMethods()
public ITestNGMethod[] getAfterTestMethods()
ITestClass
getAfterTestMethods
in interface ITestClass
ITestClass.getAfterTestMethods()
public ITestNGMethod[] getBeforeClassMethods()
ITestClass
getBeforeClassMethods
in interface ITestClass
ITestClass.getBeforeClassMethods()
public ITestNGMethod[] getAfterClassMethods()
ITestClass
getAfterClassMethods
in interface ITestClass
ITestClass.getAfterClassMethods()
public ITestNGMethod[] getBeforeSuiteMethods()
ITestClass
getBeforeSuiteMethods
in interface ITestClass
ITestClass.getBeforeSuiteMethods()
public ITestNGMethod[] getAfterSuiteMethods()
ITestClass
getAfterSuiteMethods
in interface ITestClass
ITestClass.getAfterSuiteMethods()
public ITestNGMethod[] getBeforeGroupsMethods()
ITestClass
getBeforeGroupsMethods
in interface ITestClass
ITestClass.getBeforeGroupsMethods()
public ITestNGMethod[] getAfterGroupsMethods()
ITestClass
getAfterGroupsMethods
in interface ITestClass
ITestClass.getAfterGroupsMethods()
public ITestNGMethod[] getBeforeTestConfigurationMethods()
ITestClass
getBeforeTestConfigurationMethods
in interface ITestClass
ITestClass.getBeforeTestConfigurationMethods()
public ITestNGMethod[] getAfterTestConfigurationMethods()
ITestClass
getAfterTestConfigurationMethods
in interface ITestClass
ITestClass.getAfterTestConfigurationMethods()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |