Package | Description |
---|---|
org.testng | |
org.testng.internal | |
org.testng.junit |
Modifier and Type | Interface and 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 | Class and Description |
---|---|
(package private) class |
TestClass
This class represents a test class:
- The test methods
- The configuration methods (test and method)
- The class file
|
Modifier and Type | Field and Description |
---|---|
private IClass |
TestClass.m_iClass |
Modifier and Type | Method and Description |
---|---|
IClass[] |
ITestClassFinder.findTestClasses() |
IClass |
TestClass.getIClass() |
IClass |
ITestClassFinder.getIClass(java.lang.Class cls)
Return the IClass for a given class
|
IClass |
ITestResult.getTestClass() |
Modifier and Type | Method and 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) |
private void |
TestClass.init(IClass cls,
ITestMethodFinder testMethodFinder,
IAnnotationFinder annotationFinder,
RunInfo runInfo,
XmlTest xmlTest,
XmlClass xmlClass) |
Constructor and Description |
---|
TestClass(IClass cls,
ITestMethodFinder testMethodFinder,
IAnnotationFinder annotationFinder,
RunInfo runInfo,
XmlTest xmlTest,
XmlClass xmlClass) |
Modifier and Type | Class and Description |
---|---|
class |
ClassImpl
Implementation of an IClass.
|
class |
NoOpTestClass |
Modifier and Type | Field and Description |
---|---|
private IClass |
TestResult.m_testClass |
Modifier and Type | Field and Description |
---|---|
private static Invoker.Predicate<ITestNGMethod,IClass> |
Invoker.CAN_RUN_FROM_CLASS
Predicate to filter methods
|
private java.util.Map<java.lang.Class,IClass> |
ClassImpl.m_classes |
private java.util.Map<java.lang.Class,IClass> |
BaseClassFinder.m_classes |
private static Invoker.Predicate<ITestNGMethod,IClass> |
Invoker.SAME_CLASS
Predicate to filter methods
|
Modifier and Type | Method and Description |
---|---|
protected IClass |
BaseClassFinder.findOrCreateIClass(ITestContext context,
java.lang.Class cls,
XmlClass xmlClass,
java.lang.Object instance,
XmlTest xmlTest,
IAnnotationFinder annotationFinder,
ITestObjectFactory objectFactory) |
IClass[] |
BaseClassFinder.findTestClasses() |
protected IClass |
BaseTestMethod.getIClass() |
IClass |
BaseClassFinder.getIClass(java.lang.Class cls) |
IClass |
TestResult.getTestClass() |
Modifier and Type | Method and Description |
---|---|
boolean |
BaseTestMethod.canRunFromClass(IClass testClass)
Returns if this ITestNGMethod can be invoked from within IClass.
|
boolean |
ClonedMethod.canRunFromClass(IClass testClass) |
private boolean |
Invoker.confInvocationPassed(ITestNGMethod method,
ITestNGMethod currentTestMethod,
IClass testClass,
java.lang.Object instance) |
private ITestNGMethod[] |
Invoker.filterMethods(IClass testClass,
ITestNGMethod[] methods,
Invoker.Predicate<ITestNGMethod,IClass> predicate) |
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..
|
private void |
Invoker.invokeConfigurations(IClass testClass,
ITestNGMethod currentTestMethod,
ITestNGMethod[] allMethods,
XmlSuite suite,
java.util.Map<java.lang.String,java.lang.String> params,
java.lang.Object[] parameterValues,
java.lang.Object instance,
ITestResult testMethodResult) |
boolean |
Invoker.CanRunFromClassPredicate.isTrue(ITestNGMethod m,
IClass v) |
boolean |
Invoker.SameClassNamePredicate.isTrue(ITestNGMethod m,
IClass c) |
protected void |
BaseClassFinder.putIClass(java.lang.Class cls,
IClass iClass) |
private void |
Invoker.recordConfigurationInvocationFailed(ITestNGMethod tm,
IClass testClass,
IConfigurationAnnotation annotation,
ITestNGMethod currentTestMethod,
java.lang.Object instance,
XmlSuite suite)
Record internally the failure of a Configuration, so that we can determine
later if @Test should be skipped.
|
void |
TestResult.setTestClass(IClass testClass) |
Modifier and Type | Method and 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) |
private ITestNGMethod[] |
Invoker.filterMethods(IClass testClass,
ITestNGMethod[] methods,
Invoker.Predicate<ITestNGMethod,IClass> predicate) |
Constructor and Description |
---|
TestResult(IClass testClass,
java.lang.Object instance,
ITestNGMethod method,
java.lang.Throwable throwable,
long start,
long end,
ITestContext context) |
Constructor and Description |
---|
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) |
Modifier and Type | Class and Description |
---|---|
class |
JUnit3TestClass |
class |
JUnit4TestClass |
class |
JUnitTestClass |