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
,org.testng.internal.invokers.IInvocationStatus
,ITestNGMethod
public class JUnit4TestMethod extends JUnitTestMethod
-
-
Constructor Summary
Constructors Constructor Description JUnit4TestMethod(ITestObjectFactory objectFactory, JUnitTestClass owner, org.junit.runner.Description desc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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, getFactoryMethodParamsInfo, getFailedInvocationNumbers, getGroups, getGroupsDependedUpon, getIClass, 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, setEnabled, setGroups, setGroupsDependedUpon, setId, setIgnoreMissingDependencies, setInterceptedPriority, setInvocationCount, setInvocationNumbers, setInvocationTimeOut, setInvokedAt, setMethodsDependedUpon, setMissingGroup, setMoreInvocationChecker, setParameterInvocationCount, setPriority, setRetryAnalyzerClass, setSkipFailedInvocations, setTestClass, setThreadPoolSize, setTimeOut, setXmlTest, skipFailedInvocations
-
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
-
-
-
-
Constructor Detail
-
JUnit4TestMethod
public JUnit4TestMethod(ITestObjectFactory objectFactory, JUnitTestClass owner, org.junit.runner.Description desc)
-
-
Method Detail
-
isTest
public boolean isTest()
- Specified by:
isTest
in interfaceITestNGMethod
- Overrides:
isTest
in classJUnitTestMethod
- Returns:
- true if this method was annotated with @Test
-
toString
public java.lang.String toString()
- Overrides:
toString
in classorg.testng.internal.BaseTestMethod
-
-