public static class JUnitUtils.JUnitTestMethod extends Object implements ITestNGMethod
ITestNMethod implementation for test methods in JUnit.| Constructor and Description |
|---|
JUnitUtils.JUnitTestMethod(junit.framework.Test test,
JUnitUtils.JUnitTestClass testClass) |
public JUnitUtils.JUnitTestMethod(junit.framework.Test test,
JUnitUtils.JUnitTestClass testClass)
public long getDate()
getDate in interface ITestNGMethodITestNGMethod.getDate()public String getDescription()
getDescription in interface ITestNGMethodITestNGMethod.getDescription()public String getId()
getId in interface ITestNGMethodITestNGMethod.getId()public long[] getInstanceHashCodes()
ITestNGMethodgetInstanceHashCodes in interface ITestNGMethodITestNGMethod.getInstanceHashCodes()public Object[] getInstances()
getInstances in interface ITestNGMethodITestNGMethod.getInstances()public Method getMethod()
getMethod in interface ITestNGMethodITestNGMethod.getMethod()public String getMethodName()
ITestNGMethodgetMethodName in interface ITestNGMethodITestNGMethod.getMethodName()public Class getRealClass()
getRealClass in interface ITestNGMethodITestNGMethod.getRealClass()public void setDate(long date)
setDate in interface ITestNGMethodITestNGMethod.setDate(long)public void setId(String id)
setId in interface ITestNGMethodorg.testng.ITestNGMethod#setId(long)public int compareTo(Object o)
compareTo in interface Comparablepublic boolean isTest()
isTest in interface ITestNGMethodITestNGMethod.isTest()public boolean canRunFromClass(IClass testClass)
ITestNGMethodcanRunFromClass in interface ITestNGMethodITestNGMethod.canRunFromClass(org.testng.IClass)public void setTestClass(ITestClass cls)
ITestNGMethodsetTestClass 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(String methodName)
addMethodDependedUpon in interface ITestNGMethodITestNGMethod.addMethodDependedUpon(java.lang.String)public void setMissingGroup(String group)
setMissingGroup in interface ITestNGMethodITestNGMethod.setMissingGroup(java.lang.String)public String[] getAfterGroups()
getAfterGroups in interface ITestNGMethodITestNGMethod.getAfterGroups()public String[] getBeforeGroups()
ITestNGMethodgetBeforeGroups in interface ITestNGMethodITestNGMethod.getBeforeGroups()public String[] getGroups()
getGroups in interface ITestNGMethodITestNGMethod.getGroups()public String[] getGroupsDependedUpon()
getGroupsDependedUpon in interface ITestNGMethodITestNGMethod.getGroupsDependedUpon()public int getInvocationCount()
getInvocationCount in interface ITestNGMethodITestNGMethod.getInvocationCount()public String[] getMethodsDependedUpon()
getMethodsDependedUpon in interface ITestNGMethodITestNGMethod.getMethodsDependedUpon()public String getMissingGroup()
ITestNGMethodgetMissingGroup 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 void setTimeOut(long timeOut)
setTimeOut in interface ITestNGMethodpublic 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 ITestNGMethod clone()
clone in interface ITestNGMethodclone in class 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 void setIgnoreMissingDependencies(boolean ignore)
setIgnoreMissingDependencies in interface ITestNGMethodpublic boolean ignoreMissingDependencies()
ignoreMissingDependencies in interface ITestNGMethodpublic boolean isFirstTimeOnly()
public boolean isLastTimeOnly()
public long getInvocationTimeOut()
ITestNGMethodgetInvocationTimeOut in interface ITestNGMethodpublic List<Integer> getInvocationNumbers()
ITestNGMethodgetInvocationNumbers in interface ITestNGMethodpublic void setInvocationNumbers(List<Integer> count)
setInvocationNumbers in interface ITestNGMethodpublic List<Integer> getFailedInvocationNumbers()
getFailedInvocationNumbers in interface ITestNGMethodpublic void addFailedInvocationNumber(int number)
ITestNGMethodaddFailedInvocationNumber in interface ITestNGMethodpublic int getPriority()
ITestNGMethodgetPriority in interface ITestNGMethodpublic void setPriority(int priority)
setPriority in interface ITestNGMethodpublic XmlTest getXmlTest()
getXmlTest in interface ITestNGMethodpublic org.testng.internal.ConstructorOrMethod getConstructorOrMethod()
getConstructorOrMethod in interface ITestNGMethodCopyright © 2012. All Rights Reserved.