|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.testng.junit.JUnitUtils.JUnitTestClass
public static class JUnitUtils.JUnitTestClass
An ITestClass implementation for test methods in JUnit.
| Constructor Summary | |
|---|---|
JUnitUtils.JUnitTestClass(junit.framework.Test test)
|
|
| Method Summary | |
|---|---|
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()
|
long[] |
getInstanceHashCodes()
TODO cquezel JavaDoc. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JUnitUtils.JUnitTestClass(junit.framework.Test test)
| Method Detail |
|---|
public int getInstanceCount()
getInstanceCount in interface IClassgetInstanceCount in interface ITestClassITestClass.getInstanceCount()public long[] getInstanceHashCodes()
ITestClass
getInstanceHashCodes in interface IClassgetInstanceHashCodes in interface ITestClassITestClass.getInstanceHashCodes()public java.lang.Object[] getInstances(boolean reuse)
ITestClass
getInstances in interface IClassgetInstances in interface ITestClassreuse - flag if a new set of instances must be returned
(if set to false)
public ITestNGMethod[] getTestMethods()
ITestClass
getTestMethods in interface ITestClassITestClass.getTestMethods()public ITestNGMethod[] getAfterClassMethods()
ITestClass
getAfterClassMethods in interface ITestClassITestClass.getAfterClassMethods()public ITestNGMethod[] getAfterGroupsMethods()
ITestClass
getAfterGroupsMethods in interface ITestClassITestClass.getAfterGroupsMethods()public ITestNGMethod[] getAfterSuiteMethods()
ITestClass
getAfterSuiteMethods in interface ITestClassITestClass.getAfterSuiteMethods()public ITestNGMethod[] getAfterTestConfigurationMethods()
ITestClass
getAfterTestConfigurationMethods in interface ITestClassITestClass.getAfterTestConfigurationMethods()public ITestNGMethod[] getAfterTestMethods()
ITestClass
getAfterTestMethods in interface ITestClassITestClass.getAfterTestMethods()public ITestNGMethod[] getBeforeClassMethods()
ITestClass
getBeforeClassMethods in interface ITestClassITestClass.getBeforeClassMethods()public ITestNGMethod[] getBeforeGroupsMethods()
ITestClass
getBeforeGroupsMethods in interface ITestClassITestClass.getBeforeGroupsMethods()public ITestNGMethod[] getBeforeSuiteMethods()
ITestClass
getBeforeSuiteMethods in interface ITestClassITestClass.getBeforeSuiteMethods()public ITestNGMethod[] getBeforeTestConfigurationMethods()
ITestClass
getBeforeTestConfigurationMethods in interface ITestClassITestClass.getBeforeTestConfigurationMethods()public ITestNGMethod[] getBeforeTestMethods()
ITestClass
getBeforeTestMethods in interface ITestClassITestClass.getBeforeTestMethods()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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||