class TestClass extends NoOpTestClass implements ITestClass
Modifier and Type | Field and Description |
---|---|
private IAnnotationFinder |
annotationFinder |
private IClass |
iClass |
private static Logger |
LOG |
private ITestMethodFinder |
testMethodFinder |
private java.lang.String |
testName |
private XmlClass |
xmlClass |
private XmlTest |
xmlTest |
m_afterClassMethods, m_afterGroupsMethods, m_afterSuiteMethods, m_afterTestConfMethods, m_afterTestMethods, m_beforeClassMethods, m_beforeGroupsMethods, m_beforeSuiteMethods, m_beforeTestConfMethods, m_beforeTestMethods, m_testClass, m_testMethods
Modifier | Constructor and Description |
---|---|
protected |
TestClass(IClass cls,
ITestMethodFinder testMethodFinder,
IAnnotationFinder annotationFinder,
RunInfo runInfo,
XmlTest xmlTest,
XmlClass xmlClass) |
Modifier and Type | Method and Description |
---|---|
void |
addInstance(java.lang.Object instance) |
private ITestNGMethod[] |
createTestMethods(ITestNGMethod[] methods)
Create the test methods that belong to this class (rejects
all those that belong to a different class).
|
protected void |
dump() |
IAnnotationFinder |
getAnnotationFinder() |
IClass |
getIClass() |
int |
getInstanceCount()
Deprecated.
|
long[] |
getInstanceHashCodes() |
java.lang.Object[] |
getInstances(boolean create)
Returns all the instances the methods will be invoked upon.
|
ITestMethodFinder |
getTestMethodFinder() |
java.lang.String |
getTestName()
If this class implements org.testng.ITest, returns its test name, otherwise returns null.
|
XmlClass |
getXmlClass() |
XmlTest |
getXmlTest() |
private void |
init(IClass cls,
ITestMethodFinder testMethodFinder,
IAnnotationFinder annotationFinder,
XmlTest xmlTest,
XmlClass xmlClass) |
private void |
initMethods() |
private void |
initTestClassesAndInstances() |
private void |
log(int level,
java.lang.String s) |
java.lang.String |
toString() |
getAfterClassMethods, getAfterGroupsMethods, getAfterSuiteMethods, getAfterTestConfigurationMethods, getAfterTestMethods, getBeforeClassMethods, getBeforeGroupsMethods, getBeforeSuiteMethods, getBeforeTestConfigurationMethods, getBeforeTestMethods, getName, getRealClass, getTestMethods, setAfterTestMethod, setBeforeTestMethods, setTestClass
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAfterClassMethods, getAfterGroupsMethods, getAfterSuiteMethods, getAfterTestConfigurationMethods, getAfterTestMethods, getBeforeClassMethods, getBeforeGroupsMethods, getBeforeSuiteMethods, getBeforeTestConfigurationMethods, getBeforeTestMethods, getTestMethods
getName, getRealClass
private IAnnotationFinder annotationFinder
private ITestMethodFinder testMethodFinder
private IClass iClass
private java.lang.String testName
private XmlTest xmlTest
private XmlClass xmlClass
private static final Logger LOG
protected TestClass(IClass cls, ITestMethodFinder testMethodFinder, IAnnotationFinder annotationFinder, RunInfo runInfo, XmlTest xmlTest, XmlClass xmlClass)
public java.lang.String getTestName()
IClass
getTestName
in interface IClass
getTestName
in class NoOpTestClass
public XmlTest getXmlTest()
getXmlTest
in interface IClass
getXmlTest
in class NoOpTestClass
public XmlClass getXmlClass()
getXmlClass
in interface IClass
getXmlClass
in class NoOpTestClass
public IAnnotationFinder getAnnotationFinder()
private void init(IClass cls, ITestMethodFinder testMethodFinder, IAnnotationFinder annotationFinder, XmlTest xmlTest, XmlClass xmlClass)
private void initTestClassesAndInstances()
public java.lang.Object[] getInstances(boolean create)
IClass
getInstances
in interface IClass
getInstances
in class NoOpTestClass
create
- flag if a new set of instances must be returned
(if set to false)IClass.getInstances(boolean)
public long[] getInstanceHashCodes()
getInstanceHashCodes
in interface IClass
getInstanceHashCodes
in class NoOpTestClass
IClass.getInstanceHashCodes()
@Deprecated public int getInstanceCount()
getInstanceCount
in interface IClass
getInstanceCount
in class NoOpTestClass
public void addInstance(java.lang.Object instance)
addInstance
in interface IClass
addInstance
in class NoOpTestClass
IClass.addInstance(java.lang.Object)
private void initMethods()
private ITestNGMethod[] createTestMethods(ITestNGMethod[] methods)
public ITestMethodFinder getTestMethodFinder()
private void log(int level, java.lang.String s)
protected void dump()
public java.lang.String toString()
toString
in class java.lang.Object
public IClass getIClass()