org.testng.junit
Class JUnitTestMethod

java.lang.Object
  extended by org.testng.internal.BaseTestMethod
      extended by org.testng.junit.JUnitTestMethod
All Implemented Interfaces:
Serializable, Cloneable, Comparable, ITestNGMethod
Direct Known Subclasses:
JUnit3TestMethod, JUnit4TestMethod

public abstract class JUnitTestMethod
extends org.testng.internal.BaseTestMethod

Author:
lukas
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.testng.internal.BaseTestMethod
DATE_COMPARATOR, m_afterGroups, m_annotationFinder, m_beforeGroups, m_currentInvocationCount, m_date, m_groups, m_groupsDependedUpon, m_id, m_method, m_methodClass, m_methodsDependedUpon, m_testClass
 
Constructor Summary
protected JUnitTestMethod(JUnitTestClass owner, Method method, Object instance)
           
 
Method Summary
 ITestNGMethod clone()
           
 boolean isTest()
           
 
Methods inherited from class org.testng.internal.BaseTestMethod
addFailedInvocationNumber, addMethodDependedUpon, canRunFromClass, compareTo, equals, findMethodParameters, getAfterGroups, getAnnotationFinder, getBeforeGroups, getConstructorOrMethod, getCurrentInvocationCount, getDate, getDescription, getEnabled, getFailedInvocationNumbers, getGroups, getGroupsDependedUpon, getIClass, getId, getInstance, getInstanceHashCodes, getInstances, getInvocationCount, getInvocationNumbers, getInvocationTimeOut, getMethod, getMethodName, getMethodsDependedUpon, getMissingGroup, getParameterInvocationCount, getPriority, getRealClass, getRetryAnalyzer, getSignature, getStringArray, getSuccessPercentage, getTestClass, getThreadPoolSize, getTimeOut, getXmlTest, hashCode, ignoreMissingDependencies, incrementCurrentInvocationCount, initGroups, isAfterClassConfiguration, isAfterGroupsConfiguration, isAfterMethodConfiguration, isAfterSuiteConfiguration, isAfterTestConfiguration, isAlwaysRun, isBeforeClassConfiguration, isBeforeGroupsConfiguration, isBeforeMethodConfiguration, isBeforeSuiteConfiguration, isBeforeTestConfiguration, setAlwaysRun, setDate, setDescription, setEnabled, setGroups, setGroupsDependedUpon, setId, setIgnoreMissingDependencies, setInvocationCount, setInvocationNumbers, setInvocationTimeOut, setMethodsDependedUpon, setMissingGroup, setParameterInvocationCount, setPriority, setRetryAnalyzer, setSkipFailedInvocations, setTestClass, setThreadPoolSize, setTimeOut, setXmlTest, skipFailedInvocations, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JUnitTestMethod

protected JUnitTestMethod(JUnitTestClass owner,
                          Method method,
                          Object instance)
Method Detail

isTest

public boolean isTest()
Specified by:
isTest in interface ITestNGMethod
Overrides:
isTest in class org.testng.internal.BaseTestMethod
Returns:
true if this method was annotated with @Test

clone

public ITestNGMethod clone()
Specified by:
clone in interface ITestNGMethod
Overrides:
clone in class org.testng.internal.BaseTestMethod


Copyright © 2015. All Rights Reserved.