| Package | Description |
|---|---|
| org.testng | |
| org.testng.internal | |
| org.testng.junit |
| Modifier and Type | Interface | Description |
|---|---|---|
interface |
ITestClass |
This class represents a test class:
The test methods
The configuration methods (test and method)
The class file
Note that the methods returned by instances of this class
are expected to be correct at runtime.
|
| Modifier and Type | Method | Description |
|---|---|---|
IClass[] |
ITestClassFinder.findTestClasses() |
|
IClass |
ITestClassFinder.getIClass(java.lang.Class<?> cls) |
Return the IClass for a given class
|
IClass |
ITestResult.getTestClass() |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
ITestNGMethod.canRunFromClass(IClass testClass) |
Returns if this ITestNGMethod can be invoked from within IClass.
|
com.google.inject.Injector |
ITestContext.getInjector(IClass iClass) |
|
com.google.inject.Injector |
TestRunner.getInjector(IClass iClass) |
| Modifier and Type | Class | Description |
|---|---|---|
class |
ClassImpl |
Implementation of an IClass.
|
class |
NoOpTestClass |
| Modifier and Type | Method | Description |
|---|---|---|
protected IClass |
BaseClassFinder.findOrCreateIClass(ITestContext context,
java.lang.Class<?> cls,
XmlClass xmlClass,
java.lang.Object instance,
IAnnotationFinder annotationFinder,
ITestObjectFactory objectFactory) |
|
protected IClass |
BaseClassFinder.findOrCreateIClass(ITestContext context,
java.lang.Class<?> cls,
XmlClass xmlClass,
java.lang.Object instance,
XmlTest xmlTest,
IAnnotationFinder annotationFinder,
ITestObjectFactory objectFactory) |
Deprecated.
- This method stands deprecated as of TestNG v6.13
|
IClass[] |
BaseClassFinder.findTestClasses() |
|
IClass |
BaseClassFinder.getIClass(java.lang.Class<?> cls) |
|
protected IClass |
BaseTestMethod.getIClass() |
|
IClass |
TestResult.getTestClass() |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
BaseTestMethod.canRunFromClass(IClass testClass) |
Returns if this ITestNGMethod can be invoked from within IClass.
|
boolean |
ClonedMethod.canRunFromClass(IClass testClass) |
|
boolean |
WrappedTestNGMethod.canRunFromClass(IClass testClass) |
|
void |
TestResult.init(IClass testClass,
java.lang.Object instance,
ITestNGMethod method,
java.lang.Throwable throwable,
long start,
long end,
ITestContext context) |
|
void |
IInvoker.invokeConfigurations(IClass testClass,
ITestNGMethod[] allMethods,
XmlSuite suite,
java.util.Map<java.lang.String,java.lang.String> parameters,
java.lang.Object[] parameterValues,
java.lang.Object instance) |
Invoke configuration methods if they belong to the same TestClass
passed in parameter..
|
void |
Invoker.invokeConfigurations(IClass testClass,
ITestNGMethod[] allMethods,
XmlSuite suite,
java.util.Map<java.lang.String,java.lang.String> params,
java.lang.Object[] parameterValues,
java.lang.Object instance) |
Invoke configuration methods if they belong to the same TestClass passed
in parameter..
|
protected void |
BaseClassFinder.putIClass(java.lang.Class<?> cls,
IClass iClass) |
|
void |
TestResult.setTestClass(IClass testClass) |
| Modifier and Type | Method | Description |
|---|---|---|
static java.lang.Object |
ClassHelper.createInstance(java.lang.Class<?> declaringClass,
java.util.Map<java.lang.Class<?>,IClass> classes,
XmlTest xmlTest,
IAnnotationFinder finder,
ITestObjectFactory objectFactory) |
Create an instance for the given class.
|
static java.lang.Object |
ClassHelper.createInstance1(java.lang.Class<?> declaringClass,
java.util.Map<java.lang.Class<?>,IClass> classes,
XmlTest xmlTest,
IAnnotationFinder finder,
IObjectFactory objectFactory) |
| Constructor | Description |
|---|---|
TestResult(IClass testClass,
java.lang.Object instance,
ITestNGMethod method,
java.lang.Throwable throwable,
long start,
long end,
ITestContext context) |
| Constructor | Description |
|---|---|
ClassImpl(ITestContext context,
java.lang.Class<?> cls,
XmlClass xmlClass,
java.lang.Object instance,
java.util.Map<java.lang.Class<?>,IClass> classes,
IAnnotationFinder annotationFinder,
ITestObjectFactory objectFactory) |
|
ClassImpl(ITestContext context,
java.lang.Class<?> cls,
XmlClass xmlClass,
java.lang.Object instance,
java.util.Map<java.lang.Class<?>,IClass> classes,
XmlTest xmlTest,
IAnnotationFinder annotationFinder,
ITestObjectFactory objectFactory) |
Deprecated.
- This constructor is un-used within TestNG and hence stands deprecated as of TestNG v6.13
|
| Modifier and Type | Class | Description |
|---|---|---|
class |
JUnit3TestClass |
|
class |
JUnit4TestClass |
|
class |
JUnitTestClass |