class TestClass extends NoOpTestClass implements ITestClass
Modifier and Type | Field and Description |
---|---|
private IAnnotationFinder |
m_annotationFinder |
private IClass |
m_iClass |
private RunInfo |
m_runInfo |
private ITestMethodFinder |
m_testMethodFinder |
private java.lang.String |
m_testName |
private XmlClass |
m_xmlClass |
private XmlTest |
m_xmlTest |
private static long |
serialVersionUID |
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.
|
private RunInfo |
getRunInfo() |
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,
RunInfo runInfo,
XmlTest xmlTest,
XmlClass xmlClass) |
private void |
initMethods() |
private void |
initTestClassesAndInstances() |
private void |
log(int level,
java.lang.String s) |
private static void |
ppp(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 static final long serialVersionUID
private transient IAnnotationFinder m_annotationFinder
private transient ITestMethodFinder m_testMethodFinder
private IClass m_iClass
private RunInfo m_runInfo
private java.lang.String m_testName
private XmlTest m_xmlTest
private XmlClass m_xmlClass
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, RunInfo runInfo, 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)
private RunInfo getRunInfo()
public ITestMethodFinder getTestMethodFinder()
private void log(int level, java.lang.String s)
private static void ppp(java.lang.String s)
protected void dump()
public java.lang.String toString()
toString
in class java.lang.Object
public IClass getIClass()