org.testng.junit
Class JUnit4TestMethod

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

public class JUnit4TestMethod
extends JUnitTestMethod

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
JUnit4TestMethod(JUnitTestClass owner, org.junit.runner.Description desc)
           
 
Method Summary
 Object[] getInstances()
           
 
Methods inherited from class org.testng.junit.JUnitTestMethod
clone, 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, 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

JUnit4TestMethod

public JUnit4TestMethod(JUnitTestClass owner,
                        org.junit.runner.Description desc)
Method Detail

getInstances

public Object[] getInstances()
Specified by:
getInstances in interface ITestNGMethod
Overrides:
getInstances in class org.testng.internal.BaseTestMethod
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.


Copyright © 2012. All Rights Reserved.