Package org.testng.junit
Class JUnitTestMethod
- java.lang.Object
-
- org.testng.internal.BaseTestMethod
-
- org.testng.junit.JUnitTestMethod
-
- All Implemented Interfaces:
java.lang.Cloneable
,IInvocationStatus
,ITestNGMethod
- Direct Known Subclasses:
JUnit3TestMethod
,JUnit4TestMethod
@Deprecated public abstract class JUnitTestMethod extends BaseTestMethod
Deprecated.- Support for running JUnit tests stands deprecated as of TestNG7.7.0
-
-
Field Summary
-
Fields inherited from class org.testng.internal.BaseTestMethod
m_afterGroups, m_annotationFinder, m_beforeGroups, m_currentInvocationCount, m_date, m_groups, m_groupsDependedUpon, m_id, m_method, m_methodClass, m_methodsDependedUpon, m_objectFactory, m_testClass
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
JUnitTestMethod(ITestObjectFactory objectFactory, JUnitTestClass owner, java.lang.String methodName, ConstructorOrMethod method, java.lang.Object instance)
Deprecated.protected
JUnitTestMethod(ITestObjectFactory objectFactory, JUnitTestClass owner, ConstructorOrMethod method, java.lang.Object instance)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ITestNGMethod
clone()
Deprecated.boolean
isTest()
Deprecated.-
Methods inherited from class org.testng.internal.BaseTestMethod
addFailedInvocationNumber, addMethodDependedUpon, canRunFromClass, downstreamDependencies, equals, findMethodParameters, getAfterGroups, getAnnotationFinder, getBeforeGroups, getConstructorOrMethod, getCurrentInvocationCount, getDate, getDescription, getEnabled, getFactoryMethodParamsInfo, getFailedInvocationNumbers, getGroups, getGroupsDependedUpon, getId, getInstance, getInstanceHashCodes, getInterceptedPriority, getInvocationCount, getInvocationNumbers, getInvocationTime, getInvocationTimeOut, getMethodName, getMethodsDependedUpon, getMissingGroup, getParameterInvocationCount, getParameterTypes, getPriority, getQualifiedName, getRealClass, getRetryAnalyzer, getRetryAnalyzerClass, getSignature, getSimpleName, getStringArray, getSuccessPercentage, getTestClass, getThreadPoolSize, getTimeOut, getXmlTest, hashCode, hasMoreInvocation, ignoreMissingDependencies, incrementCurrentInvocationCount, initBeforeAfterGroups, initGroups, isAfterClassConfiguration, isAfterGroupsConfiguration, isAfterMethodConfiguration, isAfterSuiteConfiguration, isAfterTestConfiguration, isAlwaysRun, isBeforeClassConfiguration, isBeforeGroupsConfiguration, isBeforeMethodConfiguration, isBeforeSuiteConfiguration, isBeforeTestConfiguration, setAlwaysRun, setDate, setDescription, setDownstreamDependencies, setEnabled, setGroups, setGroupsDependedUpon, setId, setIgnoreMissingDependencies, setInterceptedPriority, setInvocationCount, setInvocationNumbers, setInvocationTimeOut, setInvokedAt, setMethodsDependedUpon, setMissingGroup, setMoreInvocationChecker, setParameterInvocationCount, setPriority, setRetryAnalyzerClass, setSkipFailedInvocations, setTestClass, setThreadPoolSize, setTimeOut, setUpstreamDependencies, setXmlTest, skipFailedInvocations, toString, upstreamDependencies
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.testng.ITestNGMethod
getAttributes, getDataProviderMethod, hasAfterGroupsConfiguration, hasBeforeGroupsConfiguration, isDataDriven, isIgnoreFailure
-
-
-
-
Constructor Detail
-
JUnitTestMethod
protected JUnitTestMethod(ITestObjectFactory objectFactory, JUnitTestClass owner, ConstructorOrMethod method, java.lang.Object instance)
Deprecated.
-
JUnitTestMethod
protected JUnitTestMethod(ITestObjectFactory objectFactory, JUnitTestClass owner, java.lang.String methodName, ConstructorOrMethod method, java.lang.Object instance)
Deprecated.
-
-
Method Detail
-
isTest
public boolean isTest()
Deprecated.Description copied from class:BaseTestMethod
- Specified by:
isTest
in interfaceITestNGMethod
- Overrides:
isTest
in classBaseTestMethod
- Returns:
- true if this method was annotated with @Test
-
clone
public ITestNGMethod clone()
Deprecated.- Specified by:
clone
in interfaceITestNGMethod
- Specified by:
clone
in classBaseTestMethod
-
-