Package | Description |
---|---|
org.testng | |
org.testng.internal | |
org.testng.junit | |
org.testng.reporters |
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 java.util.Map<ITestClass,java.util.Set<java.lang.Object>> |
ClassMethodMap.afterClassMethods |
private java.util.Map<ITestClass,java.util.Set<java.lang.Object>> |
ClassMethodMap.beforeClassMethods |
private java.util.Map<java.lang.Class<?>,ITestClass> |
TestRunner.m_classMap
A map to keep track of Class <-> IClass.
|
Modifier and Type | Method and Description |
---|---|
ITestClass |
ITestNGMethod.getTestClass() |
Modifier and Type | Method and Description |
---|---|
java.util.Map<ITestClass,java.util.Set<java.lang.Object>> |
ClassMethodMap.getInvokedAfterClassMethods() |
java.util.Map<ITestClass,java.util.Set<java.lang.Object>> |
ClassMethodMap.getInvokedBeforeClassMethods() |
java.util.Collection<ITestClass> |
TestRunner.getTestClasses() |
Modifier and Type | Method and Description |
---|---|
void |
IClassListener.onAfterClass(ITestClass testClass) |
void |
IClassListener.onBeforeClass(ITestClass testClass) |
void |
ITestNGMethod.setTestClass(ITestClass cls)
Sets the test class having this method.
|
Modifier and Type | Class and Description |
---|---|
class |
NoOpTestClass |
Modifier and Type | Field and Description |
---|---|
protected ITestClass |
BaseTestMethod.m_testClass
The test class on which the test method was found.
|
private ITestClass |
TestMethodWithDataProviderMethodWorker.m_testClass |
Modifier and Type | Method and Description |
---|---|
ITestClass |
BaseTestMethod.getTestClass() |
ITestClass |
ClonedMethod.getTestClass() |
ITestClass |
WrappedTestNGMethod.getTestClass() |
Modifier and Type | Method and Description |
---|---|
(package private) static ITestNGMethod[] |
TestNgMethodUtils.filterAfterTestMethods(ITestClass testClass,
Invoker.Predicate<ITestNGMethod,IClass> predicate) |
(package private) static ITestNGMethod[] |
TestNgMethodUtils.filterBeforeTestMethods(ITestClass testClass,
Invoker.Predicate<ITestNGMethod,IClass> predicate) |
private static IDataProviderMethod |
Parameters.findDataProvider(java.lang.Object instance,
ITestClass clazz,
ConstructorOrMethod m,
IAnnotationFinder finder,
ITestContext context) |
private static IDataProviderMethod |
Parameters.findDataProvider(java.lang.Object instance,
ITestClass clazz,
IAnnotationFinder finder,
java.lang.String name,
java.lang.Class<?> dataProviderClass,
ITestContext context)
Find a method that has a @DataProvider(name=name)
|
private static IDataProvidable |
Parameters.findDataProviderInfo(ITestClass clazz,
ConstructorOrMethod m,
IAnnotationFinder finder)
Find the data provider info (data provider name and class) on either @Test(dataProvider),
|
static void |
MethodHelper.fixMethodsWithClass(ITestNGMethod[] methods,
ITestClass testCls,
java.util.List<ITestNGMethod> methodList) |
protected void |
TestMethodWorker.invokeAfterClassMethods(ITestClass testClass,
IMethodInstance mi)
Invoke the @AfterClass methods if not done already
|
protected void |
TestMethodWorker.invokeBeforeClassMethods(ITestClass testClass,
IMethodInstance mi)
Invoke the @BeforeClass methods if not done already
|
private ITestResult |
Invoker.invokeMethod(java.lang.Object instance,
ITestNGMethod tm,
java.lang.Object[] parameterValues,
int parametersIndex,
XmlSuite suite,
java.util.Map<java.lang.String,java.lang.String> params,
ITestClass testClass,
ITestNGMethod[] beforeMethods,
ITestNGMethod[] afterMethods,
ConfigurationGroupMethods groupMethods,
Invoker.FailureContext failureContext) |
(package private) ITestResult |
Invoker.invokeTestMethod(java.lang.Object instance,
ITestNGMethod tm,
java.lang.Object[] parameterValues,
int parametersIndex,
XmlSuite suite,
java.util.Map<java.lang.String,java.lang.String> params,
ITestClass testClass,
ITestNGMethod[] beforeMethods,
ITestNGMethod[] afterMethods,
ConfigurationGroupMethods groupMethods,
Invoker.FailureContext failureContext)
invokeTestMethods() eventually converge here to invoke a single @Test method.
|
(package private) int |
Invoker.retryFailed(java.lang.Object instance,
ITestNGMethod tm,
XmlSuite suite,
ITestClass testClass,
ITestNGMethod[] beforeMethods,
ITestNGMethod[] afterMethods,
ConfigurationGroupMethods groupMethods,
java.util.List<ITestResult> result,
int failureCount,
ITestContext testContext,
java.util.Map<java.lang.String,java.lang.String> parameters,
int parametersIndex) |
void |
BaseTestMethod.setTestClass(ITestClass tc)
Sets the test class having this method.
|
void |
ClonedMethod.setTestClass(ITestClass cls) |
void |
WrappedTestNGMethod.setTestClass(ITestClass cls) |
Modifier and Type | Method and Description |
---|---|
static java.util.Map<java.lang.String,java.util.List<ITestNGMethod>> |
MethodGroupsHelper.findGroupsMethods(java.util.Collection<ITestClass> classes,
boolean before)
Extracts the map of groups and their corresponding methods from the
classes . |
Constructor and Description |
---|
NoOpTestClass(ITestClass testClass) |
TestMethodWithDataProviderMethodWorker(Invoker invoker,
ITestNGMethod testMethod,
int parameterIndex,
java.lang.Object[] parameterValues,
java.lang.Object instance,
XmlSuite suite,
java.util.Map<java.lang.String,java.lang.String> parameters,
ITestClass testClass,
ITestNGMethod[] beforeMethods,
ITestNGMethod[] afterMethods,
ConfigurationGroupMethods groupMethods,
ExpectedExceptionsHolder expectedExceptionHolder,
ITestContext testContext,
boolean skipFailedInvocationCounts,
int invocationCount,
int failureCount,
ITestResultNotifier notifier) |
Modifier and Type | Class and Description |
---|---|
class |
JUnit3TestClass |
class |
JUnit4TestClass |
class |
JUnitTestClass |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,ITestClass> |
SuiteHTMLReporter.m_classes |
Modifier and Type | Method and Description |
---|---|
private java.lang.String |
SuiteHTMLReporter.generateClass(ITestClass cls) |
private static void |
FailedReporter.getAllApplicableConfigs(java.util.Set<ITestNGMethod> configs,
ITestClass iTestClass) |