class TestClass extends NoOpTestClass implements ITestClass
| Modifier and Type | Field and Description |
|---|---|
private IAnnotationFinder |
annotationFinder |
private IClass |
iClass |
private static Logger |
LOG |
private java.lang.String |
m_errorMsgPrefix |
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,
XmlTest xmlTest,
XmlClass xmlClass,
java.lang.String errorMsgPrefix) |
| 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() |
long[] |
getInstanceHashCodes() |
java.lang.Object[] |
getInstances(boolean create)
Returns all the instances the methods will be invoked upon.
|
java.lang.Object[] |
getInstances(boolean create,
java.lang.String errorMsgPrefix) |
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, setTestClassclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAfterClassMethods, getAfterGroupsMethods, getAfterSuiteMethods, getAfterTestConfigurationMethods, getAfterTestMethods, getBeforeClassMethods, getBeforeGroupsMethods, getBeforeSuiteMethods, getBeforeTestConfigurationMethods, getBeforeTestMethods, getTestMethodsgetName, getRealClassprivate IAnnotationFinder annotationFinder
private ITestMethodFinder testMethodFinder
private IClass iClass
private java.lang.String testName
private XmlTest xmlTest
private XmlClass xmlClass
private java.lang.String m_errorMsgPrefix
private static final Logger LOG
protected TestClass(IClass cls, ITestMethodFinder testMethodFinder, IAnnotationFinder annotationFinder, XmlTest xmlTest, XmlClass xmlClass, java.lang.String errorMsgPrefix)
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, 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 java.lang.Object[] getInstances(boolean create,
java.lang.String errorMsgPrefix)
getInstances in interface IClasspublic long[] getInstanceHashCodes()
getInstanceHashCodes in interface IClassgetInstanceHashCodes in class NoOpTestClassIClass.getInstanceHashCodes()public 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)
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.Objectpublic IClass getIClass()