| Modifier and Type | Field and Description |
|---|---|
| private final IdentityHashMap | |
| private IAnnotationFinder | |
| private final IdentityHashMap | |
| private IClass | |
| private static final Logger | |
| private final String | |
| private final ITestObjectFactory | |
| private ITestMethodFinder | |
| private String | |
| private XmlClass | |
| private XmlTest |
| Access | Constructor and Description |
|---|---|
| protected | TestClass(ITestObjectFactory objectFactory, IClass cls, ITestMethodFinder testMethodFinder, IAnnotationFinder annotationFinder, XmlTest xmlTest, XmlClass xmlClass, String errorMsgPrefix)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | addInstance(Object
- The instance to be added. instance)Overrides org. Implements org. |
| public void | addObject(IObject.
- The instance that should be added to the list of instances. instanceOverrides org. Implements org. |
| 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 | |
| public List | |
| public List | getAllBeforeClassMethods()
Implements org. |
| private static List | |
| public IAnnotationFinder | |
| public IClass | |
| public List | |
| public List | getInstanceBeforeClassMethods(Object
object hashcode instance)Implements org. |
| public long[] | |
| public Object[] | getInstances(boolean
flag if a new set of instances must be returned (if set to create)false)Overrides org. Implements org. |
| public Object[] | getInstances(boolean
flag if a new set of instances must be returned (if set to create, String false)- Text that should be prefixed to the error message when there are
issues. Can be empty. errorMsgPrefix)Overrides default org. |
| public IObject. | getObjects(boolean
- create, String true if objects should be created before returning.- Text that should be prefixed to the error message when there are
issues. Can be empty. errorMsgPrefix)Overrides org. Implements org. |
| public ITestMethodFinder | |
| public String | getTestName()
Overrides org. Implements org. |
| public XmlClass | getXmlClass()
Overrides org. Implements org. |
| public XmlTest | getXmlTest()
Overrides org. Implements org. |
| private void | init(IClass cls, ITestMethodFinder testMethodFinder, IAnnotationFinder annotationFinder, XmlTest xmlTest, XmlClass xmlClass)
|
| private void | |
| private void | |
| private void | |
| public String |
| afterClassConfig | back to summary |
|---|---|
| private final IdentityHashMap<Object, List<ITestNGMethod>> afterClassConfig | |
| annotationFinder | back to summary |
|---|---|
| private IAnnotationFinder annotationFinder | |
| beforeClassConfig | back to summary |
|---|---|
| private final IdentityHashMap<Object, List<ITestNGMethod>> beforeClassConfig | |
| iClass | back to summary |
|---|---|
| private IClass iClass | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| m_errorMsgPrefix | back to summary |
|---|---|
| private final String m_errorMsgPrefix | |
| objectFactory | back to summary |
|---|---|
| private final ITestObjectFactory objectFactory | |
| testMethodFinder | back to summary |
|---|---|
| private ITestMethodFinder testMethodFinder | |
| testName | back to summary |
|---|---|
| private String testName | |
| xmlClass | back to summary |
|---|---|
| private XmlClass xmlClass | |
| xmlTest | back to summary |
|---|---|
| private XmlTest xmlTest | |
| TestClass | back to summary |
|---|---|
| protected TestClass(ITestObjectFactory objectFactory, IClass cls, ITestMethodFinder testMethodFinder, IAnnotationFinder annotationFinder, XmlTest xmlTest, XmlClass xmlClass, String errorMsgPrefix) | |
| addInstance | back to summary |
|---|---|
| public void addInstance(Object instance) Overrides org. Implements org.
| |
| addObject | back to summary |
|---|---|
| public void addObject(IObject. Overrides org. Implements org.
| |
| createTestMethods | back to summary |
|---|---|
| private ITestNGMethod[] createTestMethods(ITestNGMethod[] methods) Create the test methods that belong to this class (rejects all those that belong to a different class). | |
| dump | back to summary |
|---|---|
| protected void dump() | |
| getAllAfterClassMethods | back to summary |
|---|---|
| public List Implements org.
| |
| getAllBeforeClassMethods | back to summary |
|---|---|
| public List Implements org. Doc from org. get all before class config methods
| |
| getAllClassLevelConfigs | back to summary |
|---|---|
| private static List | |
| getAnnotationFinder | back to summary |
|---|---|
| public IAnnotationFinder getAnnotationFinder() | |
| getIClass | back to summary |
|---|---|
| public IClass getIClass() | |
| getInstanceAfterClassMethods | back to summary |
|---|---|
| public List Implements org.
| |
| getInstanceBeforeClassMethods | back to summary |
|---|---|
| public List Implements org. Doc from org. Query the instance before class methods from config methods map.
| |
| getInstanceHashCodes | back to summary |
|---|---|
| public long[] getInstanceHashCodes() Overrides org. Implements org.
| |
| getInstances | back to summary |
|---|---|
| public Object[] getInstances(boolean create) Overrides org. Implements org. Doc from org. 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. | |
| getInstances | back to summary |
|---|---|
| public Object[] getInstances(boolean create, String errorMsgPrefix) Overrides default org. Doc from org. 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. | |
| getObjects | back to summary |
|---|---|
| public IObject. Overrides org. Implements org. Doc from org. 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.
| |
| getTestMethodFinder | back to summary |
|---|---|
| public ITestMethodFinder getTestMethodFinder() | |
| getTestName | back to summary |
|---|---|
| public String getTestName() Overrides org. Implements org.
| |
| getXmlClass | back to summary |
|---|---|
| public XmlClass getXmlClass() Overrides org. Implements org.
| |
| getXmlTest | back to summary |
|---|---|
| public XmlTest getXmlTest() Overrides org. Implements org.
| |
| init | back to summary |
|---|---|
| private void init(IClass cls, ITestMethodFinder testMethodFinder, IAnnotationFinder annotationFinder, XmlTest xmlTest, XmlClass xmlClass) | |
| initMethods | back to summary |
|---|---|
| private void initMethods() | |
| initTestClassesAndInstances | back to summary |
|---|---|
| private void initTestClassesAndInstances() | |
| log | back to summary |
|---|---|
| private void log(int level, String s) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |