Package | Description |
---|---|
org.testng | |
org.testng.internal | |
org.testng.internal.annotations | |
org.testng.junit | |
org.testng.reporters | |
org.testng.reporters.util |
Modifier and Type | Field and Description |
---|---|
private ITestNGMethod[] |
TestRunner.m_afterSuiteMethods |
private ITestNGMethod[] |
TestRunner.m_afterXmlTestMethods |
private ITestNGMethod[] |
TestRunner.m_allTestMethods
All the test methods we found, associated with their respective classes.
|
private ITestNGMethod[] |
TestRunner.m_beforeSuiteMethods |
private ITestNGMethod[] |
TestRunner.m_beforeXmlTestMethods |
Modifier and Type | Field and Description |
---|---|
private java.util.List<ITestNGMethod> |
TestListenerAdapter.m_allTestMethods |
private java.util.List<ITestNGMethod> |
SuiteRunner.m_allTestMethods |
private java.util.Map<java.lang.Object,java.util.List<ITestNGMethod>> |
ClassMethodMap.m_classMap |
private ListMultiMap<java.lang.String,ITestNGMethod> |
DependencyMap.m_dependencies |
private java.util.List<ITestNGMethod> |
TestRunner.m_excludedMethods |
private ListMultiMap<java.lang.String,ITestNGMethod> |
DependencyMap.m_groups |
Modifier and Type | Method and Description |
---|---|
ITestNGMethod |
ITestNGMethod.clone() |
static ITestNGMethod |
TestNGUtils.createITestNGMethod(ITestNGMethod existingMethod,
java.lang.reflect.Method method)
Create an ITestNGMethod for @code{method} based on @code{existingMethod}, which needs
to belong to the same class.
|
private ITestNGMethod[] |
TestClass.createTestMethods(ITestNGMethod[] methods)
Create the test methods that belong to this class (rejects
all those that belong to a different class).
|
ITestNGMethod[] |
ITestClass.getAfterClassMethods()
Returns all the methods that should be invoked
after all the tests have been run on this class.
|
ITestNGMethod[] |
ITestMethodFinder.getAfterClassMethods(java.lang.Class<?> cls) |
ITestNGMethod[] |
ITestMethodFinder.getAfterGroupsConfigurationMethods(java.lang.Class<?> testClass) |
ITestNGMethod[] |
ITestClass.getAfterGroupsMethods()
Returns all @Configuration methods that should be invoked after certain groups.
|
ITestNGMethod[] |
TestRunner.getAfterSuiteMethods() |
ITestNGMethod[] |
ITestClass.getAfterSuiteMethods()
Returns all the methods that should be invoked
after the suite has run.
|
ITestNGMethod[] |
ITestMethodFinder.getAfterSuiteMethods(java.lang.Class<?> cls) |
ITestNGMethod[] |
TestRunner.getAfterTestConfigurationMethods() |
ITestNGMethod[] |
ITestClass.getAfterTestConfigurationMethods()
Returns all @Configuration methods that should be invoked last before any others
in the current test.
|
ITestNGMethod[] |
ITestMethodFinder.getAfterTestConfigurationMethods(java.lang.Class<?> testClass) |
ITestNGMethod[] |
ITestClass.getAfterTestMethods()
Returns all the methods that should be invoked
after a test method completes.
|
ITestNGMethod[] |
ITestMethodFinder.getAfterTestMethods(java.lang.Class<?> cls) |
ITestNGMethod[] |
TestRunner.getAllTestMethods() |
protected ITestNGMethod[] |
TestListenerAdapter.getAllTestMethods() |
ITestNGMethod[] |
ITestContext.getAllTestMethods() |
ITestNGMethod[] |
ITestClass.getBeforeClassMethods()
Return all the methods that should be invoked
after the test class has been created and before
any of its test methods is invoked.
|
ITestNGMethod[] |
ITestMethodFinder.getBeforeClassMethods(java.lang.Class<?> cls) |
ITestNGMethod[] |
ITestMethodFinder.getBeforeGroupsConfigurationMethods(java.lang.Class<?> testClass) |
ITestNGMethod[] |
ITestClass.getBeforeGroupsMethods()
Returns all @Configuration methods that should be invoked before certain groups.
|
ITestNGMethod[] |
TestRunner.getBeforeSuiteMethods() |
ITestNGMethod[] |
ITestClass.getBeforeSuiteMethods()
Returns All the methods that should be invoked
before the suite is run.
|
ITestNGMethod[] |
ITestMethodFinder.getBeforeSuiteMethods(java.lang.Class<?> cls) |
ITestNGMethod[] |
TestRunner.getBeforeTestConfigurationMethods() |
ITestNGMethod[] |
ITestClass.getBeforeTestConfigurationMethods()
Returns all @Configuration methods that should be invoked before any others in the
current test.
|
ITestNGMethod[] |
ITestMethodFinder.getBeforeTestConfigurationMethods(java.lang.Class<?> testClass) |
ITestNGMethod[] |
ITestClass.getBeforeTestMethods()
Returns all the methods that should be invoked
before a test method is invoked.
|
ITestNGMethod[] |
ITestMethodFinder.getBeforeTestMethods(java.lang.Class<?> cls) |
ITestNGMethod |
ITestResult.getMethod() |
ITestNGMethod |
IMethodInstance.getMethod() |
ITestNGMethod |
DependencyMap.getMethodDependingOn(java.lang.String methodName,
ITestNGMethod fromMethod) |
ITestNGMethod |
IInvokedMethod.getTestMethod() |
ITestNGMethod[] |
ITestClass.getTestMethods()
Returns all the applicable test methods.
|
ITestNGMethod[] |
ITestMethodFinder.getTestMethods(java.lang.Class<?> cls,
XmlTest xmlTest) |
private ITestNGMethod[] |
TestRunner.intercept(ITestNGMethod[] methods)
Apply the method interceptor (if applicable) to the list of methods.
|
Modifier and Type | Method and Description |
---|---|
private java.util.List<IWorker<ITestNGMethod>> |
TestRunner.createClassBasedParallelWorkers(java.util.List<ITestNGMethod> methods)
Create workers for parallel="classes" and similar cases.
|
private ListMultiMap<ITestNGMethod,ITestNGMethod> |
TestRunner.createClassDependencies(ITestNGMethod[] methods,
XmlTest test) |
private ListMultiMap<ITestNGMethod,ITestNGMethod> |
TestRunner.createClassDependencies(ITestNGMethod[] methods,
XmlTest test) |
private DynamicGraph<ITestNGMethod> |
TestRunner.createDynamicGraph(ITestNGMethod[] methods) |
private java.util.List<IWorker<ITestNGMethod>> |
TestRunner.createInstanceBasedParallelWorkers(java.util.List<ITestNGMethod> methods)
Create workers for parallel="instances".
|
private ListMultiMap<ITestNGMethod,ITestNGMethod> |
TestRunner.createInstanceDependencies(ITestNGMethod[] methods,
XmlTest currentXmlTest) |
private ListMultiMap<ITestNGMethod,ITestNGMethod> |
TestRunner.createInstanceDependencies(ITestNGMethod[] methods,
XmlTest currentXmlTest) |
java.util.List<IWorker<ITestNGMethod>> |
TestRunner.createWorkers(java.util.List<ITestNGMethod> methods)
Create a list of workers to run the methods passed in parameter.
|
java.util.List<ITestNGMethod> |
SuiteRunner.getAllMethods() |
java.util.List<ITestNGMethod> |
ISuite.getAllMethods() |
java.util.Collection<ITestNGMethod> |
IResultMap.getAllMethods() |
java.util.Collection<ITestNGMethod> |
TestRunner.getExcludedMethods() |
java.util.Collection<ITestNGMethod> |
SuiteRunner.getExcludedMethods() |
java.util.Collection<ITestNGMethod> |
ITestContext.getExcludedMethods() |
java.util.Collection<ITestNGMethod> |
ISuite.getExcludedMethods() |
private java.util.Collection<ITestNGMethod> |
SuiteRunner.getIncludedOrExcludedMethods(boolean included) |
java.util.List<ITestNGMethod> |
TestRunner.getInvokedMethods() |
java.util.Collection<ITestNGMethod> |
SuiteRunner.getInvokedMethods() |
java.util.Collection<ITestNGMethod> |
ISuite.getInvokedMethods()
Deprecated.
Use getAllInvokedMethods().
|
java.util.Map<java.lang.String,java.util.Collection<ITestNGMethod>> |
SuiteRunner.getMethodsByGroups() |
java.util.Map<java.lang.String,java.util.Collection<ITestNGMethod>> |
ISuite.getMethodsByGroups()
Retrieves the map of groups and their associated test methods.
|
java.util.List<ITestNGMethod> |
DependencyMap.getMethodsThatBelongTo(java.lang.String group,
ITestNGMethod fromMethod) |
Modifier and Type | Method and Description |
---|---|
void |
TestRunner.addFailedButWithinSuccessPercentageTest(ITestNGMethod testMethod,
ITestResult result) |
void |
TestRunner.addFailedTest(ITestNGMethod testMethod,
ITestResult result) |
void |
TestRunner.addPassedTest(ITestNGMethod tm,
ITestResult tr) |
void |
IResultMap.addResult(ITestResult result,
ITestNGMethod method) |
void |
TestRunner.addSkippedTest(ITestNGMethod tm,
ITestResult tr) |
private ListMultiMap<ITestNGMethod,ITestNGMethod> |
TestRunner.createClassDependencies(ITestNGMethod[] methods,
XmlTest test) |
private DynamicGraph<ITestNGMethod> |
TestRunner.createDynamicGraph(ITestNGMethod[] methods) |
private ListMultiMap<ITestNGMethod,ITestNGMethod> |
TestRunner.createInstanceDependencies(ITestNGMethod[] methods,
XmlTest currentXmlTest) |
static ITestNGMethod |
TestNGUtils.createITestNGMethod(ITestNGMethod existingMethod,
java.lang.reflect.Method method)
Create an ITestNGMethod for @code{method} based on @code{existingMethod}, which needs
to belong to the same class.
|
private ITestNGMethod[] |
TestClass.createTestMethods(ITestNGMethod[] methods)
Create the test methods that belong to this class (rejects
all those that belong to a different class).
|
private void |
TestRunner.fixMethodsWithClass(ITestNGMethod[] methods,
ITestClass testCls,
java.util.List<ITestNGMethod> methodList) |
java.util.Set<ITestResult> |
TestRunner.getFailedTests(ITestNGMethod tm) |
private java.lang.Class<?> |
ClassMethodMap.getMethodClass(ITestNGMethod m) |
ITestNGMethod |
DependencyMap.getMethodDependingOn(java.lang.String methodName,
ITestNGMethod fromMethod) |
java.util.List<ITestNGMethod> |
DependencyMap.getMethodsThatBelongTo(java.lang.String group,
ITestNGMethod fromMethod) |
java.util.Set<ITestResult> |
TestRunner.getPassedTests(ITestNGMethod tm) |
java.util.Set<ITestResult> |
IResultMap.getResults(ITestNGMethod method) |
java.util.Set<ITestResult> |
TestRunner.getSkippedTests(ITestNGMethod tm) |
boolean |
IMethodSelector.includeMethod(IMethodSelectorContext context,
ITestNGMethod method,
boolean isTestMethod) |
private ITestNGMethod[] |
TestRunner.intercept(ITestNGMethod[] methods)
Apply the method interceptor (if applicable) to the list of methods.
|
private void |
TestRunner.logFailedTest(ITestNGMethod method,
ITestResult tr,
boolean withinSuccessPercentage) |
private java.util.List<MethodInstance> |
TestRunner.methodsToMultipleMethodInstances(ITestNGMethod... sl) |
boolean |
ClassMethodMap.removeAndCheckIfLast(ITestNGMethod m,
java.lang.Object instance)
Remove the method from this map and returns true if it is the last
of its class.
|
void |
IResultMap.removeResult(ITestNGMethod m) |
Modifier and Type | Method and Description |
---|---|
private java.util.List<IWorker<ITestNGMethod>> |
TestRunner.createClassBasedParallelWorkers(java.util.List<ITestNGMethod> methods)
Create workers for parallel="classes" and similar cases.
|
private java.util.List<IWorker<ITestNGMethod>> |
TestRunner.createInstanceBasedParallelWorkers(java.util.List<ITestNGMethod> methods)
Create workers for parallel="instances".
|
java.util.List<IWorker<ITestNGMethod>> |
TestRunner.createWorkers(java.util.List<ITestNGMethod> methods)
Create a list of workers to run the methods passed in parameter.
|
private void |
TestRunner.fixMethodsWithClass(ITestNGMethod[] methods,
ITestClass testCls,
java.util.List<ITestNGMethod> methodList) |
private java.util.List<IMethodInstance> |
TestRunner.methodsToMethodInstances(java.util.List<ITestNGMethod> sl) |
private void |
TestRunner.runJUnitWorkers(java.util.List<? extends IWorker<ITestNGMethod>> workers) |
void |
TestListenerAdapter.setAllTestMethods(java.util.List<ITestNGMethod> allTestMethods) |
void |
IMethodSelector.setTestMethods(java.util.List<ITestNGMethod> testMethods)
Invoked when all the test methods are known so that the method selector
can perform additional work, such as adding the transitive closure of
all the groups being included and depended upon.
|
Constructor and Description |
---|
DependencyMap(ITestNGMethod[] methods) |
Constructor and Description |
---|
ClassMethodMap(java.util.List<ITestNGMethod> methods,
XmlMethodSelector xmlMethodSelector) |
Modifier and Type | Class and Description |
---|---|
class |
BaseTestMethod
Superclass to represent both @Test and @Configuration methods.
|
class |
ClonedMethod |
class |
ConfigurationMethod |
class |
FactoryMethod
This class represents a method annotated with @Factory
|
class |
TestNGMethod
This class represents a test method.
|
Modifier and Type | Field and Description |
---|---|
protected ITestNGMethod[] |
NoOpTestClass.m_afterClassMethods |
protected ITestNGMethod[] |
NoOpTestClass.m_afterGroupsMethods |
private ITestNGMethod[] |
TestMethodWithDataProviderMethodWorker.m_afterMethods |
protected ITestNGMethod[] |
NoOpTestClass.m_afterSuiteMethods |
protected ITestNGMethod[] |
NoOpTestClass.m_afterTestConfMethods |
protected ITestNGMethod[] |
NoOpTestClass.m_afterTestMethods |
private ITestNGMethod[] |
ConfigurationGroupMethods.m_allMethods
The list of all test methods
|
protected ITestNGMethod[] |
NoOpTestClass.m_beforeClassMethods |
protected ITestNGMethod[] |
NoOpTestClass.m_beforeGroupsMethods |
private ITestNGMethod[] |
TestMethodWithDataProviderMethodWorker.m_beforeMethods |
protected ITestNGMethod[] |
NoOpTestClass.m_beforeSuiteMethods |
protected ITestNGMethod[] |
NoOpTestClass.m_beforeTestConfMethods |
protected ITestNGMethod[] |
NoOpTestClass.m_beforeTestMethods |
private ITestNGMethod |
TestResult.m_method |
private ITestNGMethod |
MethodInstance.m_method |
private ITestNGMethod |
InvokeMethodRunnable.m_method |
private ITestNGMethod |
ClonedMethod.m_method |
private ITestNGMethod |
TestMethodWithDataProviderMethodWorker.m_testMethod |
private ITestNGMethod |
InvokedMethod.m_testMethod |
protected ITestNGMethod[] |
NoOpTestClass.m_testMethods |
private ITestNGMethod |
RegexpExpectedExceptionsHolder.method |
protected ITestNGMethod |
ExpectedExceptionsHolder.method |
Modifier and Type | Field and Description |
---|---|
private static Invoker.Predicate<ITestNGMethod,IClass> |
Invoker.CAN_RUN_FROM_CLASS
Predicate to filter methods
|
private static java.util.Map<ITestNGMethod[],Graph<ITestNGMethod>> |
MethodHelper.GRAPH_CACHE |
private java.util.Map<java.lang.String,java.util.List<ITestNGMethod>> |
ConfigurationGroupMethods.m_afterGroupsMap
A map that returns the last method belonging to the given group
|
private java.util.Map<java.lang.String,java.util.List<ITestNGMethod>> |
ConfigurationGroupMethods.m_afterGroupsMethods
The list of afterGroups methods keyed by the name of the group
|
private java.util.Map<java.lang.String,java.util.List<ITestNGMethod>> |
ConfigurationGroupMethods.m_beforeGroupsMethods
The list of beforeGroups methods keyed by the name of the group
|
private java.util.Map<ITestResult,ITestNGMethod> |
ResultMap.m_map |
private java.util.Map<ITestNGMethod,java.util.Set<java.lang.Object>> |
Invoker.m_methodInvocationResults
Test methods whose configuration methods have failed.
|
private java.util.List<ITestNGMethod> |
XmlMethodSelector.m_testMethods |
private static Invoker.Predicate<ITestNGMethod,IClass> |
Invoker.SAME_CLASS
Predicate to filter methods
|
static java.util.Comparator<ITestNGMethod> |
TestNGMethod.SORT_BY_CLASS
Sorts ITestNGMethod by Class name.
|
Modifier and Type | Method and Description |
---|---|
ITestNGMethod |
FactoryMethod.clone() |
abstract ITestNGMethod |
BaseTestMethod.clone() |
private ITestNGMethod[] |
TestNGMethod.clone(ITestNGMethod[] sources) |
static ITestNGMethod[] |
MethodHelper.collectAndOrderMethods(java.util.List<ITestNGMethod> methods,
boolean forTests,
RunInfo runInfo,
IAnnotationFinder finder,
boolean unique,
java.util.List<ITestNGMethod> outExcludedMethods)
Collects and orders test or configuration methods
|
static ITestNGMethod[] |
ConfigurationMethod.createAfterConfigurationMethods(ITestNGMethod[] methods,
IAnnotationFinder annotationFinder,
boolean isBefore,
java.lang.Object instance) |
static ITestNGMethod[] |
ConfigurationMethod.createBeforeConfigurationMethods(ITestNGMethod[] methods,
IAnnotationFinder annotationFinder,
boolean isBefore,
java.lang.Object instance) |
static ITestNGMethod[] |
ConfigurationMethod.createClassConfigurationMethods(ITestNGMethod[] methods,
IAnnotationFinder annotationFinder,
boolean isBefore,
java.lang.Object instance) |
private static ITestNGMethod[] |
ConfigurationMethod.createMethods(ITestNGMethod[] methods,
IAnnotationFinder finder,
boolean isBeforeSuite,
boolean isAfterSuite,
boolean isBeforeTest,
boolean isAfterTest,
boolean isBeforeClass,
boolean isAfterClass,
boolean isBeforeMethod,
boolean isAfterMethod,
java.lang.String[] beforeGroups,
java.lang.String[] afterGroups,
java.lang.Object instance) |
static ITestNGMethod[] |
ConfigurationMethod.createSuiteConfigurationMethods(ITestNGMethod[] methods,
IAnnotationFinder annotationFinder,
boolean isBefore,
java.lang.Object instance) |
static ITestNGMethod[] |
ConfigurationMethod.createTestConfigurationMethods(ITestNGMethod[] methods,
IAnnotationFinder annotationFinder,
boolean isBefore,
java.lang.Object instance) |
static ITestNGMethod[] |
ConfigurationMethod.createTestMethodConfigurationMethods(ITestNGMethod[] methods,
IAnnotationFinder annotationFinder,
boolean isBefore,
java.lang.Object instance) |
private ITestNGMethod[] |
Invoker.filterConfigurationMethods(ITestNGMethod tm,
ITestNGMethod[] methods,
boolean isBefore)
The array of methods contains @BeforeMethods if isBefore if true, @AfterMethods
otherwise.
|
private ITestNGMethod[] |
Invoker.filterMethods(IClass testClass,
ITestNGMethod[] methods,
Invoker.Predicate<ITestNGMethod,IClass> predicate) |
private ITestNGMethod[] |
TestNGMethodFinder.findConfiguration(java.lang.Class clazz,
int configurationType) |
protected static ITestNGMethod[] |
MethodHelper.findDependedUponMethods(ITestNGMethod m,
ITestNGMethod[] methods)
Finds TestNG methods that the specified TestNG method depends upon
|
private static ITestNGMethod |
MethodGroupsHelper.findMethodNamed(java.lang.String tm,
java.util.List<ITestNGMethod> allMethods) |
protected static ITestNGMethod[] |
MethodGroupsHelper.findMethodsThatBelongToGroup(ITestNGMethod[] methods,
java.lang.String groupRegexp) |
protected static ITestNGMethod[] |
MethodGroupsHelper.findMethodsThatBelongToGroup(ITestNGMethod method,
ITestNGMethod[] methods,
java.lang.String groupRegexp)
Only used if a group is missing to flag an error on that method
|
ITestNGMethod[] |
NoOpTestClass.getAfterClassMethods() |
ITestNGMethod[] |
TestNGMethodFinder.getAfterClassMethods(java.lang.Class cls) |
ITestNGMethod[] |
TestNGMethodFinder.getAfterGroupsConfigurationMethods(java.lang.Class clazz) |
ITestNGMethod[] |
NoOpTestClass.getAfterGroupsMethods() |
ITestNGMethod[] |
NoOpTestClass.getAfterSuiteMethods() |
ITestNGMethod[] |
TestNGMethodFinder.getAfterSuiteMethods(java.lang.Class cls) |
ITestNGMethod[] |
NoOpTestClass.getAfterTestConfigurationMethods() |
ITestNGMethod[] |
TestNGMethodFinder.getAfterTestConfigurationMethods(java.lang.Class clazz) |
ITestNGMethod[] |
NoOpTestClass.getAfterTestMethods() |
ITestNGMethod[] |
TestNGMethodFinder.getAfterTestMethods(java.lang.Class cls) |
ITestNGMethod[] |
NoOpTestClass.getBeforeClassMethods() |
ITestNGMethod[] |
TestNGMethodFinder.getBeforeClassMethods(java.lang.Class cls) |
ITestNGMethod[] |
TestNGMethodFinder.getBeforeGroupsConfigurationMethods(java.lang.Class clazz) |
ITestNGMethod[] |
NoOpTestClass.getBeforeGroupsMethods() |
ITestNGMethod[] |
NoOpTestClass.getBeforeSuiteMethods() |
ITestNGMethod[] |
TestNGMethodFinder.getBeforeSuiteMethods(java.lang.Class cls) |
ITestNGMethod[] |
NoOpTestClass.getBeforeTestConfigurationMethods() |
ITestNGMethod[] |
TestNGMethodFinder.getBeforeTestConfigurationMethods(java.lang.Class clazz) |
ITestNGMethod[] |
NoOpTestClass.getBeforeTestMethods() |
ITestNGMethod[] |
TestNGMethodFinder.getBeforeTestMethods(java.lang.Class cls) |
ITestNGMethod |
TestResult.getMethod() |
ITestNGMethod |
MethodInstance.getMethod() |
ITestNGMethod |
InvokedMethod.getTestMethod() |
ITestNGMethod[] |
NoOpTestClass.getTestMethods() |
ITestNGMethod[] |
TestNGMethodFinder.getTestMethods(java.lang.Class<?> clazz,
XmlTest xmlTest) |
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 . |
private static java.util.List<ITestNGMethod> |
MethodInheritance.findMethodListSuperClass(java.util.Map<java.lang.Class,java.util.List<ITestNGMethod>> map,
java.lang.Class<? extends ITestNGMethod> methodClass)
Look in map for a class that is a superclass of methodClass
|
java.util.Map<java.lang.String,java.util.List<ITestNGMethod>> |
ConfigurationGroupMethods.getAfterGroupsMap() |
java.util.Map<java.lang.String,java.util.List<ITestNGMethod>> |
ConfigurationGroupMethods.getAfterGroupsMethods() |
java.util.Collection<ITestNGMethod> |
ResultMap.getAllMethods() |
java.util.Map<java.lang.String,java.util.List<ITestNGMethod>> |
ConfigurationGroupMethods.getBeforeGroupsMap() |
java.util.Map<java.lang.String,java.util.List<ITestNGMethod>> |
ConfigurationGroupMethods.getBeforeGroupsMethods() |
static java.util.List<ITestNGMethod> |
MethodHelper.getMethodsDependedUpon(ITestNGMethod method,
ITestNGMethod[] methods) |
java.util.List<ITestNGMethod> |
TestMethodWorker.getTasks() |
private java.util.Map<java.lang.String,java.util.List<ITestNGMethod>> |
ConfigurationGroupMethods.initializeAfterGroupsMap() |
private static java.util.List<ITestNGMethod> |
MethodHelper.sortMethods(boolean forTests,
java.util.List<ITestNGMethod> allMethods,
IAnnotationFinder finder) |
private static Graph<ITestNGMethod> |
MethodHelper.topologicalSort(ITestNGMethod[] methods,
java.util.List<ITestNGMethod> sequentialList,
java.util.List<ITestNGMethod> parallelList) |
static java.util.List<ITestNGMethod> |
MethodHelper.uniqueMethodList(java.util.Collection<java.util.List<ITestNGMethod>> methods)
Extracts the unique list of
ITestNGMethod s. |
Modifier and Type | Method and Description |
---|---|
void |
ITestResultNotifier.addFailedButWithinSuccessPercentageTest(ITestNGMethod tm,
ITestResult tr) |
void |
ITestResultNotifier.addFailedTest(ITestNGMethod tm,
ITestResult tr) |
void |
ITestResultNotifier.addPassedTest(ITestNGMethod tm,
ITestResult tr) |
void |
ResultMap.addResult(ITestResult result,
ITestNGMethod method) |
void |
ITestResultNotifier.addSkippedTest(ITestNGMethod tm,
ITestResult tr) |
static int |
Utils.calculateInvokedMethodCount(ITestNGMethod[] methods) |
protected static java.lang.String |
MethodHelper.calculateMethodCanonicalName(ITestNGMethod m) |
protected static long |
MethodHelper.calculateTimeOut(ITestNGMethod tm) |
private java.lang.String |
Invoker.checkDependencies(ITestNGMethod testMethod,
ITestNGMethod[] allTestMethods)
Checks to see of the test method has certain dependencies that prevents
TestNG from executing it
|
private java.lang.String |
Invoker.checkDependencies(ITestNGMethod testMethod,
ITestNGMethod[] allTestMethods)
Checks to see of the test method has certain dependencies that prevents
TestNG from executing it
|
private ITestNGMethod[] |
TestNGMethod.clone(ITestNGMethod[] sources) |
(package private) static void |
MethodGroupsHelper.collectMethodsByGroup(ITestNGMethod[] methods,
boolean forTests,
java.util.List<ITestNGMethod> outIncludedMethods,
java.util.List<ITestNGMethod> outExcludedMethods,
RunInfo runInfo,
IAnnotationFinder finder,
boolean unique)
Collect all the methods that belong to the included groups and exclude all
the methods that belong to an excluded group.
|
(package private) void |
Invoker.collectResults(ITestNGMethod testMethod,
ITestResult result) |
private boolean |
Invoker.confInvocationPassed(ITestNGMethod method,
ITestNGMethod currentTestMethod,
IClass testClass,
java.lang.Object instance) |
static ITestNGMethod[] |
ConfigurationMethod.createAfterConfigurationMethods(ITestNGMethod[] methods,
IAnnotationFinder annotationFinder,
boolean isBefore,
java.lang.Object instance) |
static ITestNGMethod[] |
ConfigurationMethod.createBeforeConfigurationMethods(ITestNGMethod[] methods,
IAnnotationFinder annotationFinder,
boolean isBefore,
java.lang.Object instance) |
static ITestNGMethod[] |
ConfigurationMethod.createClassConfigurationMethods(ITestNGMethod[] methods,
IAnnotationFinder annotationFinder,
boolean isBefore,
java.lang.Object instance) |
static java.lang.Object[] |
Parameters.createConfigurationParameters(java.lang.reflect.Method m,
java.util.Map<java.lang.String,java.lang.String> params,
java.lang.Object[] parameterValues,
ITestNGMethod currentTestMethod,
IAnnotationFinder finder,
XmlSuite xmlSuite,
ITestContext ctx,
ITestResult testResult)
Creates the parameters needed for the specified @Configuration
Method . |
private static ITestNGMethod[] |
ConfigurationMethod.createMethods(ITestNGMethod[] methods,
IAnnotationFinder finder,
boolean isBeforeSuite,
boolean isAfterSuite,
boolean isBeforeTest,
boolean isAfterTest,
boolean isBeforeClass,
boolean isAfterClass,
boolean isBeforeMethod,
boolean isAfterMethod,
java.lang.String[] beforeGroups,
java.lang.String[] afterGroups,
java.lang.Object instance) |
private Invoker.ParameterBag |
Invoker.createParameters(ITestNGMethod testMethod,
java.util.Map<java.lang.String,java.lang.String> parameters,
java.util.Map<java.lang.String,java.lang.String> allParameterNames,
XmlSuite suite,
ITestContext testContext,
java.lang.Object fedInstance) |
static ITestNGMethod[] |
ConfigurationMethod.createSuiteConfigurationMethods(ITestNGMethod[] methods,
IAnnotationFinder annotationFinder,
boolean isBefore,
java.lang.Object instance) |
static ITestNGMethod[] |
ConfigurationMethod.createTestConfigurationMethods(ITestNGMethod[] methods,
IAnnotationFinder annotationFinder,
boolean isBefore,
java.lang.Object instance) |
static ITestNGMethod[] |
ConfigurationMethod.createTestMethodConfigurationMethods(ITestNGMethod[] methods,
IAnnotationFinder annotationFinder,
boolean isBefore,
java.lang.Object instance) |
private static boolean |
MethodInheritance.dependencyExists(ITestNGMethod m1,
ITestNGMethod m2,
ITestNGMethod[] methods) |
private static boolean |
MethodInheritance.dependencyExists(ITestNGMethod m1,
ITestNGMethod m2,
ITestNGMethod[] methods) |
private boolean |
Invoker.dependsOnMethods(ITestNGMethod tm) |
static java.lang.String |
Utils.detailedMethodName(ITestNGMethod method,
boolean fqn) |
private static boolean |
MethodInheritance.equalsEffectiveClass(ITestNGMethod m1,
ITestNGMethod m2) |
private ITestNGMethod[] |
Invoker.filterConfigurationMethods(ITestNGMethod tm,
ITestNGMethod[] methods,
boolean isBefore)
The array of methods contains @BeforeMethods if isBefore if true, @AfterMethods
otherwise.
|
private ITestNGMethod[] |
Invoker.filterConfigurationMethods(ITestNGMethod tm,
ITestNGMethod[] methods,
boolean isBefore)
The array of methods contains @BeforeMethods if isBefore if true, @AfterMethods
otherwise.
|
private ITestNGMethod[] |
Invoker.filterMethods(IClass testClass,
ITestNGMethod[] methods,
Invoker.Predicate<ITestNGMethod,IClass> predicate) |
protected static ITestNGMethod[] |
MethodHelper.findDependedUponMethods(ITestNGMethod m,
ITestNGMethod[] methods)
Finds TestNG methods that the specified TestNG method depends upon
|
protected static ITestNGMethod[] |
MethodHelper.findDependedUponMethods(ITestNGMethod m,
ITestNGMethod[] methods)
Finds TestNG methods that the specified TestNG method depends upon
|
private static java.lang.Class<?>[] |
ExpectedExceptionsHolder.findExpectedClasses(IAnnotationFinder finder,
ITestNGMethod method) |
private static java.lang.reflect.Method |
MethodHelper.findMethodByName(ITestNGMethod testngMethod,
java.lang.String regExp)
Finds method based on regex and TestNGMethod.
|
protected static ITestNGMethod[] |
MethodGroupsHelper.findMethodsThatBelongToGroup(ITestNGMethod[] methods,
java.lang.String groupRegexp) |
protected static ITestNGMethod[] |
MethodGroupsHelper.findMethodsThatBelongToGroup(ITestNGMethod method,
ITestNGMethod[] methods,
java.lang.String groupRegexp)
Only used if a group is missing to flag an error on that method
|
protected static ITestNGMethod[] |
MethodGroupsHelper.findMethodsThatBelongToGroup(ITestNGMethod method,
ITestNGMethod[] methods,
java.lang.String groupRegexp)
Only used if a group is missing to flag an error on that method
|
static void |
MethodInheritance.fixMethodInheritance(ITestNGMethod[] methods,
boolean before)
Fix the methodsDependedUpon to make sure that @Configuration methods
respect inheritance (before methods are invoked in the order Base first
and after methods are invoked in the order Child first)
|
java.util.Set<ITestResult> |
ITestResultNotifier.getFailedTests(ITestNGMethod tm) |
private java.lang.Object |
Invoker.getMethodInvocationToken(ITestNGMethod method,
java.lang.Object instance) |
static java.util.List<ITestNGMethod> |
MethodHelper.getMethodsDependedUpon(ITestNGMethod method,
ITestNGMethod[] methods) |
static java.util.List<ITestNGMethod> |
MethodHelper.getMethodsDependedUpon(ITestNGMethod method,
ITestNGMethod[] methods) |
private static java.util.List<java.lang.Object> |
MethodInvocationHelper.getParameters(java.lang.reflect.Method dataProvider,
ITestNGMethod method,
ITestContext testContext,
java.lang.Object fedInstance,
IAnnotationFinder annotationFinder) |
java.util.Set<ITestResult> |
ITestResultNotifier.getPassedTests(ITestNGMethod tm) |
java.util.Set<ITestResult> |
ResultMap.getResults(ITestNGMethod method) |
java.util.Set<ITestResult> |
ITestResultNotifier.getSkippedTests(ITestNGMethod tm) |
private void |
Invoker.handleConfigurationFailure(java.lang.Throwable ite,
ITestNGMethod tm,
ITestResult testResult,
IConfigurationAnnotation annotation,
ITestNGMethod currentTestMethod,
java.lang.Object instance,
XmlSuite suite) |
private void |
Invoker.handleConfigurationSkip(ITestNGMethod tm,
ITestResult testResult,
IConfigurationAnnotation annotation,
ITestNGMethod currentTestMethod,
java.lang.Object instance,
XmlSuite suite)
Marks the current
TestResult as skipped and invokes the listeners. |
private void |
Invoker.handleException(java.lang.Throwable throwable,
ITestNGMethod testMethod,
ITestResult testResult,
int failureCount)
An exception was thrown by the test, determine if this method
should be marked as a failure or as failure_but_within_successPercentage
|
(package private) void |
Invoker.handleInvocationResults(ITestNGMethod testMethod,
java.util.List<ITestResult> result,
ExpectedExceptionsHolder expectedExceptionsHolder,
Invoker.FailureContext failure) |
static ParameterHolder |
Parameters.handleParameters(ITestNGMethod testMethod,
java.util.Map<java.lang.String,java.lang.String> allParameterNames,
java.lang.Object instance,
Parameters.MethodParameters methodParams,
XmlSuite xmlSuite,
IAnnotationFinder annotationFinder,
java.lang.Object fedInstance)
If the method has parameters, fill them in.
|
private Invoker.ParameterBag |
Invoker.handleParameters(ITestNGMethod testMethod,
java.lang.Object instance,
java.util.Map<java.lang.String,java.lang.String> allParameterNames,
java.util.Map<java.lang.String,java.lang.String> parameters,
java.lang.Object[] parameterValues,
XmlSuite suite,
ITestContext testContext,
java.lang.Object fedInstance,
ITestResult testResult) |
private boolean |
Invoker.haveBeenRunSuccessfully(ITestNGMethod testMethod,
ITestNGMethod[] methods) |
private boolean |
Invoker.haveBeenRunSuccessfully(ITestNGMethod testMethod,
ITestNGMethod[] methods) |
boolean |
XmlMethodSelector.includeMethod(IMethodSelectorContext context,
ITestNGMethod tm,
boolean isTestMethod) |
boolean |
RunInfo.includeMethod(ITestNGMethod tm,
boolean isTestMethod) |
private static boolean |
MethodGroupsHelper.includeMethod(ITestOrConfiguration annotation,
RunInfo runInfo,
ITestNGMethod tm,
boolean forTests,
boolean unique,
java.util.List<ITestNGMethod> outIncludedMethods) |
boolean |
IBsh.includeMethodFromExpression(java.lang.String expression,
ITestNGMethod tm) |
boolean |
BshMock.includeMethodFromExpression(java.lang.String expression,
ITestNGMethod tm) |
boolean |
Bsh.includeMethodFromExpression(java.lang.String expression,
ITestNGMethod tm) |
private boolean |
XmlMethodSelector.includeMethodFromIncludeExclude(ITestNGMethod tm,
boolean isTestMethod) |
protected int |
TestMethodWorker.indexOf(ITestNGMethod tm,
ITestNGMethod[] allTestMethods) |
protected int |
TestMethodWorker.indexOf(ITestNGMethod tm,
ITestNGMethod[] allTestMethods) |
void |
TestResult.init(IClass testClass,
java.lang.Object instance,
ITestNGMethod method,
java.lang.Throwable throwable,
long start,
long end,
ITestContext context) |
private static boolean |
MethodInheritance.internalDependencyExists(ITestNGMethod m1,
ITestNGMethod m2,
ITestNGMethod[] methods) |
private static boolean |
MethodInheritance.internalDependencyExists(ITestNGMethod m1,
ITestNGMethod m2,
ITestNGMethod[] methods) |
private void |
Invoker.invokeAfterGroupsConfigurations(ITestClass testClass,
ITestNGMethod currentTestMethod,
ConfigurationGroupMethods groupMethods,
XmlSuite suite,
java.util.Map<java.lang.String,java.lang.String> params,
java.lang.Object instance) |
private void |
Invoker.invokeBeforeGroupsConfigurations(ITestClass testClass,
ITestNGMethod currentTestMethod,
ConfigurationGroupMethods groupMethods,
XmlSuite suite,
java.util.Map<java.lang.String,java.lang.String> params,
java.lang.Object instance)
Filter all the beforeGroups methods and invoke only those that apply
to the current test method
|
private void |
Invoker.invokeConfigurationMethod(java.lang.Object targetInstance,
ITestNGMethod tm,
java.lang.Object[] params,
ITestResult testResult)
Effectively invokes a configuration method on all passed in instances.
|
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..
|
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..
|
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) |
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) |
protected static java.util.Iterator<java.lang.Object[]> |
MethodInvocationHelper.invokeDataProvider(java.lang.Object instance,
java.lang.reflect.Method dataProvider,
ITestNGMethod method,
ITestContext testContext,
java.lang.Object fedInstance,
IAnnotationFinder annotationFinder) |
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) |
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) |
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) |
private java.util.List<ITestResult> |
Invoker.invokePooledTestMethods(ITestNGMethod testMethod,
XmlSuite suite,
java.util.Map<java.lang.String,java.lang.String> parameters,
ConfigurationGroupMethods groupMethods,
ITestContext testContext)
Invokes a method that has a specified threadPoolSize.
|
protected 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.
|
protected 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.
|
protected 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.
|
protected void |
TestMethodWorker.invokeTestMethods(ITestNGMethod tm,
java.lang.Object instance,
ITestContext testContext) |
java.util.List<ITestResult> |
Invoker.invokeTestMethods(ITestNGMethod testMethod,
XmlSuite suite,
java.util.Map<java.lang.String,java.lang.String> testParameters,
ConfigurationGroupMethods groupMethods,
java.lang.Object instance,
ITestContext testContext)
Invoke all the test methods.
|
java.util.List<ITestResult> |
IInvoker.invokeTestMethods(ITestNGMethod testMethod,
XmlSuite suite,
java.util.Map<java.lang.String,java.lang.String> parameters,
ConfigurationGroupMethods groupMethods,
java.lang.Object instance,
ITestContext testContext)
Invoke the given method
|
protected static void |
MethodInvocationHelper.invokeWithTimeout(ITestNGMethod tm,
java.lang.Object instance,
java.lang.Object[] parameterValues,
ITestResult testResult)
Invokes a method on a separate thread in order to allow us to timeout the
invocation.
|
protected static void |
MethodInvocationHelper.invokeWithTimeout(ITestNGMethod tm,
java.lang.Object instance,
java.lang.Object[] parameterValues,
ITestResult testResult,
IHookable hookable) |
private static void |
MethodInvocationHelper.invokeWithTimeoutWithNewExecutor(ITestNGMethod tm,
java.lang.Object instance,
java.lang.Object[] parameterValues,
ITestResult testResult,
IHookable hookable) |
private static void |
MethodInvocationHelper.invokeWithTimeoutWithNoExecutor(ITestNGMethod tm,
java.lang.Object instance,
java.lang.Object[] parameterValues,
ITestResult testResult,
IHookable hookable) |
boolean |
ConfigurationGroupMethods.isLastMethodForGroup(java.lang.String group,
ITestNGMethod method) |
private static boolean |
MethodGroupsHelper.isMethodAlreadyPresent(java.util.List<ITestNGMethod> result,
ITestNGMethod tm) |
boolean |
Invoker.CanRunFromClassPredicate.isTrue(ITestNGMethod m,
IClass v) |
boolean |
Invoker.SameClassNamePredicate.isTrue(ITestNGMethod m,
IClass c) |
private java.util.Set<ITestResult> |
Invoker.keepSameInstances(ITestNGMethod method,
java.util.Set<ITestResult> results) |
TestException |
ExpectedExceptionsHolder.noException(ITestNGMethod testMethod) |
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.
|
private ITestResult |
Invoker.registerSkippedTestResult(ITestNGMethod testMethod,
java.lang.Object instance,
long start,
java.lang.Throwable throwable) |
void |
ConfigurationGroupMethods.removeBeforeMethod(java.lang.String group,
ITestNGMethod method) |
void |
ResultMap.removeResult(ITestNGMethod m) |
(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,
ExpectedExceptionsHolder expectedExceptionHolder,
ITestContext testContext,
java.util.Map<java.lang.String,java.lang.String> parameters,
int parametersIndex) |
(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,
ExpectedExceptionsHolder expectedExceptionHolder,
ITestContext testContext,
java.util.Map<java.lang.String,java.lang.String> parameters,
int parametersIndex) |
(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,
ExpectedExceptionsHolder expectedExceptionHolder,
ITestContext testContext,
java.util.Map<java.lang.String,java.lang.String> parameters,
int parametersIndex) |
private java.util.List<ITestResult> |
Invoker.runWorkers(ITestNGMethod testMethod,
java.util.List<IWorker<ITestNGMethod>> workers,
int threadPoolSize,
ConfigurationGroupMethods groupMethods,
XmlSuite suite,
java.util.Map<java.lang.String,java.lang.String> parameters)
To reduce thread contention and also to correctly handle thread-confinement
this method invokes the @BeforeGroups and @AfterGroups corresponding to the current @Test method.
|
void |
NoOpTestClass.setAfterTestMethod(ITestNGMethod[] afterTestMethods) |
void |
NoOpTestClass.setBeforeTestMethods(ITestNGMethod[] beforeTestMethods) |
private void |
Bsh.setContext(bsh.Interpreter interpreter,
java.lang.reflect.Method method,
java.util.Map<java.lang.String,java.lang.String> groups,
ITestNGMethod tm) |
void |
TestResult.setMethod(ITestNGMethod method) |
private void |
Invoker.setMethodInvocationFailure(ITestNGMethod method,
java.lang.Object instance) |
private static Graph<ITestNGMethod> |
MethodHelper.topologicalSort(ITestNGMethod[] methods,
java.util.List<ITestNGMethod> sequentialList,
java.util.List<ITestNGMethod> parallelList) |
Modifier and Type | Method and Description |
---|---|
private void |
TestNGMethodFinder.addConfigurationMethod(java.lang.Class<?> clazz,
java.util.List<ITestNGMethod> results,
java.lang.reflect.Method method,
boolean isBeforeSuite,
boolean isAfterSuite,
boolean isBeforeTest,
boolean isAfterTest,
boolean isBeforeClass,
boolean isAfterClass,
boolean isBeforeTestMethod,
boolean isAfterTestMethod,
java.lang.String[] beforeGroups,
java.lang.String[] afterGroups,
java.lang.Object instance) |
static ITestNGMethod[] |
MethodHelper.collectAndOrderMethods(java.util.List<ITestNGMethod> methods,
boolean forTests,
RunInfo runInfo,
IAnnotationFinder finder,
boolean unique,
java.util.List<ITestNGMethod> outExcludedMethods)
Collects and orders test or configuration methods
|
static ITestNGMethod[] |
MethodHelper.collectAndOrderMethods(java.util.List<ITestNGMethod> methods,
boolean forTests,
RunInfo runInfo,
IAnnotationFinder finder,
boolean unique,
java.util.List<ITestNGMethod> outExcludedMethods)
Collects and orders test or configuration methods
|
(package private) static void |
MethodGroupsHelper.collectMethodsByGroup(ITestNGMethod[] methods,
boolean forTests,
java.util.List<ITestNGMethod> outIncludedMethods,
java.util.List<ITestNGMethod> outExcludedMethods,
RunInfo runInfo,
IAnnotationFinder finder,
boolean unique)
Collect all the methods that belong to the included groups and exclude all
the methods that belong to an excluded group.
|
(package private) static void |
MethodGroupsHelper.collectMethodsByGroup(ITestNGMethod[] methods,
boolean forTests,
java.util.List<ITestNGMethod> outIncludedMethods,
java.util.List<ITestNGMethod> outExcludedMethods,
RunInfo runInfo,
IAnnotationFinder finder,
boolean unique)
Collect all the methods that belong to the included groups and exclude all
the methods that belong to an excluded group.
|
int |
TestMethodWorker.compareTo(IWorker<ITestNGMethod> other) |
static void |
Utils.dumpMethods(java.util.List<ITestNGMethod> allMethods) |
private ITestNGMethod[] |
Invoker.filterMethods(IClass testClass,
ITestNGMethod[] methods,
Invoker.Predicate<ITestNGMethod,IClass> predicate) |
protected static void |
MethodGroupsHelper.findGroupTransitiveClosure(XmlMethodSelector xms,
java.util.List<ITestNGMethod> includedMethods,
java.util.List<ITestNGMethod> allMethods,
java.lang.String[] includedGroups,
java.util.Set<java.lang.String> outGroups,
java.util.Set<ITestNGMethod> outMethods) |
protected static void |
MethodGroupsHelper.findGroupTransitiveClosure(XmlMethodSelector xms,
java.util.List<ITestNGMethod> includedMethods,
java.util.List<ITestNGMethod> allMethods,
java.lang.String[] includedGroups,
java.util.Set<java.lang.String> outGroups,
java.util.Set<ITestNGMethod> outMethods) |
protected static void |
MethodGroupsHelper.findGroupTransitiveClosure(XmlMethodSelector xms,
java.util.List<ITestNGMethod> includedMethods,
java.util.List<ITestNGMethod> allMethods,
java.lang.String[] includedGroups,
java.util.Set<java.lang.String> outGroups,
java.util.Set<ITestNGMethod> outMethods) |
private static java.util.List<ITestNGMethod> |
MethodInheritance.findMethodListSuperClass(java.util.Map<java.lang.Class,java.util.List<ITestNGMethod>> map,
java.lang.Class<? extends ITestNGMethod> methodClass)
Look in map for a class that is a superclass of methodClass
|
private static java.util.List<ITestNGMethod> |
MethodInheritance.findMethodListSuperClass(java.util.Map<java.lang.Class,java.util.List<ITestNGMethod>> map,
java.lang.Class<? extends ITestNGMethod> methodClass)
Look in map for a class that is a superclass of methodClass
|
private static ITestNGMethod |
MethodGroupsHelper.findMethodNamed(java.lang.String tm,
java.util.List<ITestNGMethod> allMethods) |
private static java.lang.Class |
MethodInheritance.findSubClass(java.util.Map<java.lang.Class,java.util.List<ITestNGMethod>> map,
java.lang.Class<? extends ITestNGMethod> methodClass)
Look in map for a class that is a subclass of methodClass
|
private static java.lang.Class |
MethodInheritance.findSubClass(java.util.Map<java.lang.Class,java.util.List<ITestNGMethod>> map,
java.lang.Class<? extends ITestNGMethod> methodClass)
Look in map for a class that is a subclass of methodClass
|
private static boolean |
MethodGroupsHelper.includeMethod(ITestOrConfiguration annotation,
RunInfo runInfo,
ITestNGMethod tm,
boolean forTests,
boolean unique,
java.util.List<ITestNGMethod> outIncludedMethods) |
private static boolean |
MethodGroupsHelper.isMethodAlreadyPresent(java.util.List<ITestNGMethod> result,
ITestNGMethod tm) |
private java.util.List<ITestResult> |
Invoker.runWorkers(ITestNGMethod testMethod,
java.util.List<IWorker<ITestNGMethod>> workers,
int threadPoolSize,
ConfigurationGroupMethods groupMethods,
XmlSuite suite,
java.util.Map<java.lang.String,java.lang.String> parameters)
To reduce thread contention and also to correctly handle thread-confinement
this method invokes the @BeforeGroups and @AfterGroups corresponding to the current @Test method.
|
void |
XmlMethodSelector.setTestMethods(java.util.List<ITestNGMethod> testMethods) |
void |
RunInfo.setTestMethods(java.util.List<ITestNGMethod> testMethods) |
void |
MethodSelectorDescriptor.setTestMethods(java.util.List<ITestNGMethod> testMethods) |
private static java.util.List<ITestNGMethod> |
MethodHelper.sortMethods(boolean forTests,
java.util.List<ITestNGMethod> allMethods,
IAnnotationFinder finder) |
private static void |
MethodInheritance.sortMethodsByInheritance(java.util.List<ITestNGMethod> methods,
boolean baseClassToChild)
Given a list of methods belonging to the same class hierarchy, orders them
from the base class to the child (if true) or from child to base class (if false)
|
private static Graph<ITestNGMethod> |
MethodHelper.topologicalSort(ITestNGMethod[] methods,
java.util.List<ITestNGMethod> sequentialList,
java.util.List<ITestNGMethod> parallelList) |
private static Graph<ITestNGMethod> |
MethodHelper.topologicalSort(ITestNGMethod[] methods,
java.util.List<ITestNGMethod> sequentialList,
java.util.List<ITestNGMethod> parallelList) |
static java.util.List<ITestNGMethod> |
MethodHelper.uniqueMethodList(java.util.Collection<java.util.List<ITestNGMethod>> methods)
Extracts the unique list of
ITestNGMethod s. |
Constructor and Description |
---|
ClonedMethod(ITestNGMethod method,
java.lang.reflect.Method javaMethod) |
ConfigurationGroupMethods(ITestNGMethod[] allMethods,
java.util.Map<java.lang.String,java.util.List<ITestNGMethod>> beforeGroupsMethods,
java.util.Map<java.lang.String,java.util.List<ITestNGMethod>> afterGroupsMethods) |
ExpectedExceptionsHolder(IAnnotationFinder finder,
ITestNGMethod method,
IExpectedExceptionsHolder holder) |
InvokedMethod(java.lang.Object instance,
ITestNGMethod method,
java.lang.Object[] parameters,
long date,
ITestResult testResult) |
InvokeMethodRunnable(ITestNGMethod thisMethod,
java.lang.Object instance,
java.lang.Object[] parameters,
IHookable hookable,
ITestResult testResult) |
MethodInstance(ITestNGMethod method) |
RegexpExpectedExceptionsHolder(IAnnotationFinder finder,
ITestNGMethod method) |
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) |
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) |
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) |
TestResult(IClass testClass,
java.lang.Object instance,
ITestNGMethod method,
java.lang.Throwable throwable,
long start,
long end,
ITestContext context) |
Constructor and Description |
---|
ConfigurationGroupMethods(ITestNGMethod[] allMethods,
java.util.Map<java.lang.String,java.util.List<ITestNGMethod>> beforeGroupsMethods,
java.util.Map<java.lang.String,java.util.List<ITestNGMethod>> afterGroupsMethods) |
ConfigurationGroupMethods(ITestNGMethod[] allMethods,
java.util.Map<java.lang.String,java.util.List<ITestNGMethod>> beforeGroupsMethods,
java.util.Map<java.lang.String,java.util.List<ITestNGMethod>> afterGroupsMethods) |
Modifier and Type | Method and Description |
---|---|
static ITestNGMethod[] |
AnnotationHelper.findMethodsWithAnnotation(java.lang.Class<?> rootClass,
java.lang.Class<? extends IAnnotation> annotationClass,
IAnnotationFinder annotationFinder,
XmlTest xmlTest)
Delegation method for creating the list of
ITestMethod s to be
analysed. |
Modifier and Type | Method and Description |
---|---|
<A extends IAnnotation> |
JDK15AnnotationFinder.findAnnotation(ITestNGMethod tm,
java.lang.Class<A> annotationClass) |
<A extends IAnnotation> |
IAnnotationFinder.findAnnotation(ITestNGMethod m,
java.lang.Class<A> annotationClass) |
static ITestAnnotation |
AnnotationHelper.findTest(IAnnotationFinder finder,
ITestNGMethod m) |
Modifier and Type | Class and Description |
---|---|
class |
JUnit3TestMethod |
class |
JUnit4TestMethod |
class |
JUnitTestMethod |
Modifier and Type | Field and Description |
---|---|
private static ITestNGMethod[] |
JUnitTestClass.EMPTY_METHODARRAY |
Modifier and Type | Field and Description |
---|---|
private java.util.List<ITestNGMethod> |
JUnitTestClass.m_afterClass |
private java.util.List<ITestNGMethod> |
JUnitTestClass.m_afterTest |
private java.util.List<ITestNGMethod> |
JUnitTestClass.m_beforeClass |
private java.util.List<ITestNGMethod> |
JUnitTestClass.m_beforeTest |
private java.util.List<ITestNGMethod> |
JUnitTestRunner.m_methods |
private java.util.List<ITestNGMethod> |
JUnit4TestRunner.m_methods |
private java.util.List<ITestNGMethod> |
JUnitTestClass.m_testMethods |
Modifier and Type | Method and Description |
---|---|
(package private) java.util.List<ITestNGMethod> |
JUnitTestClass.getTestMethodList() |
java.util.List<ITestNGMethod> |
JUnitTestRunner.getTestMethods()
Needed from TestRunner in order to figure out what JUnit test methods were run.
|
java.util.List<ITestNGMethod> |
JUnit4TestRunner.getTestMethods()
Needed from TestRunner in order to figure out what JUnit test methods
were run.
|
java.util.List<ITestNGMethod> |
IJUnitTestRunner.getTestMethods() |
Modifier and Type | Method and Description |
---|---|
private ITestNGMethod[] |
VerboseReporter.resultsToMethods(java.util.List<ITestResult> results) |
private ITestNGMethod[] |
TextReporter.resultsToMethods(java.util.List<ITestResult> results) |
Modifier and Type | Method and Description |
---|---|
private java.util.Collection<ITestNGMethod> |
EmailableReporter.getMethodSet(IResultMap tests,
ISuite suite)
Since the methods will be sorted chronologically, we want to return
the ITestNGMethod from the invoked methods.
|
private java.util.Set<ITestNGMethod> |
XMLReporter.getUniqueMethodSet(java.util.Collection<ITestNGMethod> methods) |
Modifier and Type | Method and Description |
---|---|
private static int |
TestHTMLReporter.ConfigurationComparator.annotationValue(ITestNGMethod method) |
private java.lang.String |
SuiteHTMLReporter.createColor(ITestNGMethod tm)
Generate a HTML color based on the class of the method
|
private java.lang.String |
SuiteHTMLReporter.dumpMethods(ITestNGMethod[] testMethods) |
private static java.util.Map<java.lang.String,java.lang.String> |
FailedReporter.findMethodLocalParameters(XmlTest srcXmlTest,
ITestNGMethod method)
Get local parameters of one include method from origin test xml.
|
protected void |
EmailableReporter.generateExceptionReport(java.lang.Throwable exception,
ITestNGMethod method) |
private void |
EmailableReporter.generateForResult(ITestResult ans,
ITestNGMethod method,
int resultSetSize) |
private java.lang.String |
VerboseReporter.getMethodDeclaration(ITestNGMethod method) |
private java.lang.String |
EmailableReporter.qualifiedName(ITestNGMethod method) |
Modifier and Type | Method and Description |
---|---|
private java.util.List<XmlClass> |
FailedReporter.createXmlClasses(java.util.List<ITestNGMethod> methods,
XmlTest srcXmlTest) |
private void |
FailedReporter.createXmlTest(ITestContext context,
java.util.List<ITestNGMethod> methods,
XmlTest srcXmlTest)
Generate testng-failed.xml
|
private java.util.Set<ITestNGMethod> |
XMLReporter.getUniqueMethodSet(java.util.Collection<ITestNGMethod> methods) |
Modifier and Type | Method and Description |
---|---|
static java.lang.StackTraceElement[] |
StackTraceTools.getTestNGInstrastructure(java.lang.StackTraceElement[] stack,
ITestNGMethod method)
Finds topmost position of the test method in the stack, or top of stack if
method is not in it. |
static int |
StackTraceTools.getTestRoot(java.lang.StackTraceElement[] stack,
ITestNGMethod method)
Finds topmost position of the test method in the stack, or top of stack if
method is not in it. |