|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.testng.junit.JUnitUtils.JUnitTestMethod
public static class JUnitUtils.JUnitTestMethod
An ITestNMethod implementation for test methods in JUnit.
| Constructor Summary | |
|---|---|
JUnitUtils.JUnitTestMethod(junit.framework.Test test,
JUnitUtils.JUnitTestClass testClass)
|
|
| Method Summary | |
|---|---|
void |
addMethodDependedUpon(java.lang.String methodName)
|
boolean |
canRunFromClass(IClass testClass)
Returns if this ITestNGMethod can be invoked from within IClass. |
ITestNGMethod |
clone()
|
int |
compareTo(java.lang.Object o)
|
java.lang.String[] |
getAfterGroups()
|
java.lang.String[] |
getBeforeGroups()
Before and After groups |
int |
getCurrentInvocationCount()
|
long |
getDate()
|
java.lang.String |
getDescription()
|
java.lang.String[] |
getGroups()
|
java.lang.String[] |
getGroupsDependedUpon()
|
java.lang.String |
getId()
|
long[] |
getInstanceHashCodes()
Needed for serialization. |
java.lang.Object[] |
getInstances()
|
int |
getInvocationCount()
|
java.lang.reflect.Method |
getMethod()
Returns the corresponding Java test method. |
java.lang.String |
getMethodName()
Returns the method name. |
java.lang.String[] |
getMethodsDependedUpon()
|
java.lang.String |
getMissingGroup()
If a group was not found. |
int |
getParameterInvocationCount()
|
java.lang.Class |
getRealClass()
|
IRetryAnalyzer |
getRetryAnalyzer()
|
int |
getSuccessPercentage()
|
ITestClass |
getTestClass()
|
int |
getThreadPoolSize()
|
long |
getTimeOut()
|
void |
incrementCurrentInvocationCount()
|
boolean |
isAfterClassConfiguration()
|
boolean |
isAfterGroupsConfiguration()
|
boolean |
isAfterMethodConfiguration()
|
boolean |
isAfterSuiteConfiguration()
|
boolean |
isAfterTestConfiguration()
|
boolean |
isAlwaysRun()
|
boolean |
isBeforeClassConfiguration()
|
boolean |
isBeforeGroupsConfiguration()
|
boolean |
isBeforeMethodConfiguration()
|
boolean |
isBeforeSuiteConfiguration()
|
boolean |
isBeforeTestConfiguration()
|
boolean |
isFirstTimeOnly()
|
boolean |
isLastTimeOnly()
|
boolean |
isTest()
|
void |
setDate(long date)
|
void |
setId(java.lang.String id)
|
void |
setInvocationCount(int count)
|
void |
setMissingGroup(java.lang.String group)
|
void |
setParameterInvocationCount(int n)
|
void |
setRetryAnalyzer(IRetryAnalyzer retryAnalyzer)
|
void |
setSkipFailedInvocations(boolean skip)
|
void |
setTestClass(ITestClass cls)
Sets the test class having this method. |
void |
setThreadPoolSize(int threadPoolSize)
|
boolean |
skipFailedInvocations()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JUnitUtils.JUnitTestMethod(junit.framework.Test test,
JUnitUtils.JUnitTestClass testClass)
| Method Detail |
|---|
public long getDate()
getDate in interface ITestNGMethodITestNGMethod.getDate()public java.lang.String getDescription()
getDescription in interface ITestNGMethodITestNGMethod.getDescription()public java.lang.String getId()
getId in interface ITestNGMethodITestNGMethod.getId()public long[] getInstanceHashCodes()
ITestNGMethod
getInstanceHashCodes in interface ITestNGMethodITestNGMethod.getInstanceHashCodes()public java.lang.Object[] getInstances()
getInstances in interface ITestNGMethodITestNGMethod.getInstances()public java.lang.reflect.Method getMethod()
ITestNGMethod
getMethod in interface ITestNGMethodITestNGMethod.getMethod()public java.lang.String getMethodName()
ITestNGMethod
getMethodName in interface ITestNGMethodITestNGMethod.getMethodName()public java.lang.Class getRealClass()
getRealClass in interface ITestNGMethodITestNGMethod.getRealClass()public void setDate(long date)
setDate in interface ITestNGMethodITestNGMethod.setDate(long)public void setId(java.lang.String id)
setId in interface ITestNGMethodorg.testng.ITestNGMethod#setId(long)public int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparablepublic boolean isTest()
isTest in interface ITestNGMethodITestNGMethod.isTest()public boolean canRunFromClass(IClass testClass)
ITestNGMethod
canRunFromClass in interface ITestNGMethodITestNGMethod.canRunFromClass(org.testng.IClass)public void setTestClass(ITestClass cls)
ITestNGMethod
setTestClass in interface ITestNGMethodcls - The test class having this method.ITestNGMethod.setTestClass(org.testng.ITestClass)public ITestClass getTestClass()
getTestClass in interface ITestNGMethodITestNGMethod.getTestClass()public void addMethodDependedUpon(java.lang.String methodName)
addMethodDependedUpon in interface ITestNGMethodITestNGMethod.addMethodDependedUpon(java.lang.String)public void setMissingGroup(java.lang.String group)
setMissingGroup in interface ITestNGMethodITestNGMethod.setMissingGroup(java.lang.String)public java.lang.String[] getAfterGroups()
getAfterGroups in interface ITestNGMethodITestNGMethod.getAfterGroups()public java.lang.String[] getBeforeGroups()
ITestNGMethod
getBeforeGroups in interface ITestNGMethodITestNGMethod.getBeforeGroups()public java.lang.String[] getGroups()
getGroups in interface ITestNGMethodITestNGMethod.getGroups()public java.lang.String[] getGroupsDependedUpon()
getGroupsDependedUpon in interface ITestNGMethodITestNGMethod.getGroupsDependedUpon()public int getInvocationCount()
getInvocationCount in interface ITestNGMethodITestNGMethod.getInvocationCount()public java.lang.String[] getMethodsDependedUpon()
getMethodsDependedUpon in interface ITestNGMethodITestNGMethod.getMethodsDependedUpon()public java.lang.String getMissingGroup()
ITestNGMethod
getMissingGroup in interface ITestNGMethodITestNGMethod.getMissingGroup()public int getSuccessPercentage()
getSuccessPercentage in interface ITestNGMethodITestNGMethod.getSuccessPercentage()public int getThreadPoolSize()
getThreadPoolSize in interface ITestNGMethodITestNGMethod.getThreadPoolSize()public long getTimeOut()
getTimeOut in interface ITestNGMethodITestNGMethod.getTimeOut()public boolean isAfterClassConfiguration()
isAfterClassConfiguration in interface ITestNGMethodITestNGMethod.isAfterClassConfiguration()public boolean isAfterGroupsConfiguration()
isAfterGroupsConfiguration in interface ITestNGMethodITestNGMethod.isAfterGroupsConfiguration()public boolean isAfterMethodConfiguration()
isAfterMethodConfiguration in interface ITestNGMethodITestNGMethod.isAfterMethodConfiguration()public boolean isAfterSuiteConfiguration()
isAfterSuiteConfiguration in interface ITestNGMethodITestNGMethod.isAfterSuiteConfiguration()public boolean isAfterTestConfiguration()
isAfterTestConfiguration in interface ITestNGMethodITestNGMethod.isAfterTestConfiguration()public boolean isAlwaysRun()
isAlwaysRun in interface ITestNGMethodITestNGMethod.isAlwaysRun()public boolean isBeforeClassConfiguration()
isBeforeClassConfiguration in interface ITestNGMethodITestNGMethod.isBeforeClassConfiguration()public boolean isBeforeGroupsConfiguration()
isBeforeGroupsConfiguration in interface ITestNGMethodITestNGMethod.isBeforeGroupsConfiguration()public boolean isBeforeMethodConfiguration()
isBeforeMethodConfiguration in interface ITestNGMethodITestNGMethod.isBeforeMethodConfiguration()public boolean isBeforeSuiteConfiguration()
isBeforeSuiteConfiguration in interface ITestNGMethodITestNGMethod.isBeforeSuiteConfiguration()public boolean isBeforeTestConfiguration()
isBeforeTestConfiguration in interface ITestNGMethodITestNGMethod.isBeforeTestConfiguration()public int getCurrentInvocationCount()
getCurrentInvocationCount in interface ITestNGMethodpublic void incrementCurrentInvocationCount()
incrementCurrentInvocationCount in interface ITestNGMethodpublic void setParameterInvocationCount(int n)
setParameterInvocationCount in interface ITestNGMethodpublic int getParameterInvocationCount()
getParameterInvocationCount in interface ITestNGMethodpublic java.lang.String toString()
toString in class java.lang.Objectpublic ITestNGMethod clone()
clone in interface ITestNGMethodclone in class java.lang.Objectpublic void setInvocationCount(int count)
setInvocationCount in interface ITestNGMethodITestNGMethod.setInvocationCount(int)public void setThreadPoolSize(int threadPoolSize)
setThreadPoolSize in interface ITestNGMethodITestNGMethod.setThreadPoolSize(int)public IRetryAnalyzer getRetryAnalyzer()
getRetryAnalyzer in interface ITestNGMethodpublic void setRetryAnalyzer(IRetryAnalyzer retryAnalyzer)
setRetryAnalyzer in interface ITestNGMethodpublic void setSkipFailedInvocations(boolean skip)
setSkipFailedInvocations in interface ITestNGMethodpublic boolean skipFailedInvocations()
skipFailedInvocations in interface ITestNGMethodpublic boolean isFirstTimeOnly()
public boolean isLastTimeOnly()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||