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, setTestClassclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAfterClassMethods, getAfterGroupsMethods, getAfterSuiteMethods, getAfterTestConfigurationMethods, getAfterTestMethods, getBeforeClassMethods, getBeforeGroupsMethods, getBeforeSuiteMethods, getBeforeTestConfigurationMethods, getBeforeTestMethods, getTestMethodsgetName, getRealClassprivate 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()
IClassgetTestName in interface IClassgetTestName in class NoOpTestClasspublic XmlTest getXmlTest()
getXmlTest in interface IClassgetXmlTest in class NoOpTestClasspublic XmlClass getXmlClass()
getXmlClass in interface IClassgetXmlClass in class NoOpTestClasspublic 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)
IClassgetInstances in interface IClassgetInstances in class NoOpTestClasscreate - flag if a new set of instances must be returned
(if set to false)IClass.getInstances(boolean)public long[] getInstanceHashCodes()
getInstanceHashCodes in interface IClassgetInstanceHashCodes in class NoOpTestClassIClass.getInstanceHashCodes()@Deprecated public int getInstanceCount()
getInstanceCount in interface IClassgetInstanceCount in class NoOpTestClasspublic void addInstance(java.lang.Object instance)
addInstance in interface IClassaddInstance in class NoOpTestClassIClass.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.Objectpublic IClass getIClass()