org.testng
Class TestClass
java.lang.Object
org.testng.internal.NoOpTestClass
org.testng.TestClass
- All Implemented Interfaces:
- java.io.Serializable, IClass, ITestClass
public class TestClass
- extends NoOpTestClass
- implements ITestClass
This class represents a test class:
- The test methods
- The configuration methods (test and method)
- The class file
- Author:
- Cedric Beust, Alexandru Popescu
- See Also:
- Serialized Form
Field Summary |
protected java.util.Map<java.lang.Class,java.lang.Object[]> |
m_instanceMap
|
protected java.util.Map<java.lang.Class,java.lang.Class> |
m_testClasses
|
Fields inherited from class org.testng.internal.NoOpTestClass |
m_afterClassMethods, m_afterGroupsMethods, m_afterSuiteMethods, m_afterTestConfMethods, m_afterTestMethods, m_beforeClassMethods, m_beforeGroupsMethods, m_beforeSuiteMethods, m_beforeTestConfMethods, m_beforeTestMethods, m_testClass, m_testMethods, m_testName |
Methods inherited from class org.testng.internal.NoOpTestClass |
getAfterClassMethods, getAfterGroupsMethods, getAfterSuiteMethods, getAfterTestConfigurationMethods, getAfterTestMethods, getBeforeClassMethods, getBeforeGroupsMethods, getBeforeSuiteMethods, getBeforeTestConfigurationMethods, getBeforeTestMethods, getName, getRealClass, getTestMethods, setAfterTestMethod, setBeforeTestMethods, setTestClass |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.testng.ITestClass |
getAfterClassMethods, getAfterGroupsMethods, getAfterSuiteMethods, getAfterTestConfigurationMethods, getAfterTestMethods, getBeforeClassMethods, getBeforeGroupsMethods, getBeforeSuiteMethods, getBeforeTestConfigurationMethods, getBeforeTestMethods, getTestMethods |
m_testClasses
protected transient java.util.Map<java.lang.Class,java.lang.Class> m_testClasses
m_instanceMap
protected transient java.util.Map<java.lang.Class,java.lang.Object[]> m_instanceMap
TestClass
public TestClass(IClass cls,
java.lang.String testName,
ITestMethodFinder testMethodFinder,
IAnnotationFinder annotationFinder,
RunInfo runInfo)
TestClass
public TestClass(IClass cls,
TestClass tc)
getTestName
public java.lang.String getTestName()
getAnnotationFinder
public IAnnotationFinder getAnnotationFinder()
getInstances
public java.lang.Object[] getInstances(boolean create)
- Description copied from interface:
ITestClass
- Returns all the instances the methods will be invoked upon.
This will typically be an array of one object in the absence
of a @Factory annotation.
- Specified by:
getInstances
in interface IClass
- Specified by:
getInstances
in interface ITestClass
- Overrides:
getInstances
in class NoOpTestClass
- Parameters:
create
- flag if a new set of instances must be returned
(if set to false)
- Returns:
- All the instances the methods will be invoked upon.
- See Also:
ITestClass.getInstances(boolean)
getInstanceHashCodes
public long[] getInstanceHashCodes()
- Description copied from interface:
ITestClass
- TODO cquezel JavaDoc.
- Specified by:
getInstanceHashCodes
in interface IClass
- Specified by:
getInstanceHashCodes
in interface ITestClass
- Overrides:
getInstanceHashCodes
in class NoOpTestClass
- See Also:
ITestClass.getInstanceHashCodes()
getInstanceCount
public int getInstanceCount()
- Specified by:
getInstanceCount
in interface IClass
- Specified by:
getInstanceCount
in interface ITestClass
- Overrides:
getInstanceCount
in class NoOpTestClass
- Returns:
- The number of instances used in this class. This method
is needed for serialization since we don't know ahead of time if the
instances of the test classes will be serializable.
- See Also:
ITestClass.getInstanceCount()
addInstance
public void addInstance(java.lang.Object instance)
- Specified by:
addInstance
in interface IClass
- Overrides:
addInstance
in class NoOpTestClass
- See Also:
IClass.addInstance(java.lang.Object)
getTestMethodFinder
public ITestMethodFinder getTestMethodFinder()
dump
public void dump()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2010. All Rights Reserved.