Package org.testng.junit
Class JUnit4TestMethod
- java.lang.Object
-
- org.testng.internal.BaseTestMethod
-
- org.testng.junit.JUnitTestMethod
-
- org.testng.junit.JUnit4TestMethod
-
- All Implemented Interfaces:
java.lang.Cloneable
,ITestNGMethod
public class JUnit4TestMethod extends JUnitTestMethod
-
-
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
Constructors Constructor Description JUnit4TestMethod(JUnitTestClass owner, org.junit.runner.Description desc)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object[]
getInstances()
private static ConstructorOrMethod
getMethod(org.junit.runner.Description desc)
boolean
isTest()
java.lang.String
toString()
-
Methods inherited from class org.testng.junit.JUnitTestMethod
clone
-
Methods inherited from class org.testng.internal.BaseTestMethod
addFailedInvocationNumber, addMethodDependedUpon, canRunFromClass, equals, findMethodParameters, getAfterGroups, getAnnotationFinder, getBeforeGroups, getConstructorOrMethod, getCurrentInvocationCount, getDate, getDescription, getEnabled, getFailedInvocationNumbers, getGroups, getGroupsDependedUpon, getIClass, getId, getInstance, getInstanceHashCodes, getInvocationCount, getInvocationNumbers, getInvocationTimeOut, getMethod, getMethodName, getMethodsDependedUpon, getMissingGroup, getParameterInvocationCount, getPriority, getQualifiedName, getRealClass, getRetryAnalyzer, getSignature, getSimpleName, getStringArray, getSuccessPercentage, getTestClass, getThreadPoolSize, getTimeOut, getTotalInvocationCount, getXmlTest, hashCode, hasMoreInvocation, ignoreMissingDependencies, incrementCurrentInvocationCount, initBeforeAfterGroups, 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, setMoreInvocationChecker, setParameterInvocationCount, setPriority, setRetryAnalyzer, setSkipFailedInvocations, setTestClass, setThreadPoolSize, setTimeOut, setXmlTest, skipFailedInvocations
-
-
-
-
Constructor Detail
-
JUnit4TestMethod
public JUnit4TestMethod(JUnitTestClass owner, org.junit.runner.Description desc)
-
-
Method Detail
-
getInstances
public java.lang.Object[] getInstances()
Description copied from class:BaseTestMethod
- Specified by:
getInstances
in interfaceITestNGMethod
- Overrides:
getInstances
in classBaseTestMethod
- Returns:
- All the instances the methods will be invoked upon. This will typically be an array of one object in the absence of an @Factory annotation.
-
getMethod
private static ConstructorOrMethod getMethod(org.junit.runner.Description desc)
-
isTest
public boolean isTest()
Description copied from class:BaseTestMethod
- Specified by:
isTest
in interfaceITestNGMethod
- Overrides:
isTest
in classJUnitTestMethod
- Returns:
- true if this method was annotated with @Test
-
toString
public java.lang.String toString()
Description copied from class:BaseTestMethod
- Overrides:
toString
in classBaseTestMethod
-
-