Uses of Interface
org.testng.ITestNGMethod
Packages that use ITestNGMethod
Package
Description
-
Uses of ITestNGMethod in org.testng
Fields in org.testng declared as ITestNGMethodModifier and TypeFieldDescriptionprivate ITestNGMethod[]
TestRunner.m_afterSuiteMethods
private ITestNGMethod[]
TestRunner.m_afterXmlTestMethods
private ITestNGMethod[]
TestRunner.m_allJunitTestMethods
private ITestNGMethod[]
TestRunner.m_beforeSuiteMethods
private ITestNGMethod[]
TestRunner.m_beforeXmlTestMethods
Fields in org.testng with type parameters of type ITestNGMethodModifier and TypeFieldDescriptionprivate Map<String,
List<ITestNGMethod>> TestClass.beforeClassConfig
private final Map<Object,
Collection<ITestNGMethod>> ClassMethodMap.classMap
private final Comparator<ITestNGMethod>
SuiteRunner.DefaultTestRunnerFactory.comparator
private final Comparator<ITestNGMethod>
TestRunner.comparator
private Collection<ITestNGMethod>
TestListenerAdapter.m_allTestMethods
private final ListMultiMap<String,
ITestNGMethod> DependencyMap.m_dependencies
private final List<ITestNGMethod>
TestRunner.m_excludedMethods
private final ListMultiMap<String,
ITestNGMethod> DependencyMap.m_groups
private final IContainer<ITestNGMethod>
TestRunner.testMethodsContainer
Methods in org.testng that return ITestNGMethodModifier and TypeMethodDescriptionITestNGMethod.clone()
private ITestNGMethod[]
TestRunner.computeAndGetAllTestMethods()
static ITestNGMethod
TestNGUtils.createITestNGMethod
(ITestNGMethod existingMethod, 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).ITestClass.getAfterClassMethods()
Returns all the methods that should be invoked after all the tests have been run on this class.ITestMethodFinder.getAfterClassMethods
(Class<?> cls) ITestMethodFinder.getAfterGroupsConfigurationMethods
(Class<?> testClass) ITestClass.getAfterGroupsMethods()
Returns all @Configuration methods that should be invoked after certain groups.ITestClass.getAfterSuiteMethods()
Returns all the methods that should be invoked after the suite has run.ITestMethodFinder.getAfterSuiteMethods
(Class<?> cls) TestRunner.getAfterSuiteMethods()
ITestClass.getAfterTestConfigurationMethods()
Returns all @Configuration methods that should be invoked last before any others in the current test.ITestMethodFinder.getAfterTestConfigurationMethods
(Class<?> testClass) TestRunner.getAfterTestConfigurationMethods()
ITestClass.getAfterTestMethods()
Returns all the methods that should be invoked after a test method completes.ITestMethodFinder.getAfterTestMethods
(Class<?> cls) ITestContext.getAllTestMethods()
protected ITestNGMethod[]
TestListenerAdapter.getAllTestMethods()
TestRunner.getAllTestMethods()
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.ITestMethodFinder.getBeforeClassMethods
(Class<?> cls) ITestMethodFinder.getBeforeGroupsConfigurationMethods
(Class<?> testClass) ITestClass.getBeforeGroupsMethods()
Returns all @Configuration methods that should be invoked before certain groups.ITestClass.getBeforeSuiteMethods()
Returns All the methods that should be invoked before the suite is run.ITestMethodFinder.getBeforeSuiteMethods
(Class<?> cls) TestRunner.getBeforeSuiteMethods()
ITestClass.getBeforeTestConfigurationMethods()
Returns all @Configuration methods that should be invoked before any others in the current test.ITestMethodFinder.getBeforeTestConfigurationMethods
(Class<?> testClass) TestRunner.getBeforeTestConfigurationMethods()
ITestClass.getBeforeTestMethods()
Returns all the methods that should be invoked before a test method is invoked.ITestMethodFinder.getBeforeTestMethods
(Class<?> cls) IMethodInstance.getMethod()
ITestResult.getMethod()
DependencyMap.getMethodDependingOn
(String methodName, ITestNGMethod fromMethod) IInvokedMethod.getTestMethod()
ITestClass.getTestMethods()
Returns all the applicable test methods.ITestMethodFinder.getTestMethods
(Class<?> cls, XmlTest xmlTest) private ITestNGMethod[]
TestRunner.intercept
(ITestNGMethod[] methods) Apply the method interceptor (if applicable) to the list of methods.Methods in org.testng that return types with arguments of type ITestNGMethodModifier and TypeMethodDescriptionTestRunner.createWorkers
(List<ITestNGMethod> methods) Create a list of workers to run the methods passed in parameter.TestClass.getAllBeforeClassMethods()
IResultMap.getAllMethods()
ISuite.getAllMethods()
SuiteRunner.getAllMethods()
ISuite.getExcludedMethods()
ITestContext.getExcludedMethods()
SuiteRunner.getExcludedMethods()
TestRunner.getExcludedMethods()
TestClass.getInstanceBeforeClassMethods
(String instance) ISuite.getMethodsByGroups()
Retrieves the map of groups and their associated test methods.SuiteRunner.getMethodsByGroups()
DependencyMap.getMethodsThatBelongTo
(String group, ITestNGMethod fromMethod) default List<ITestNGMethod>
ITestResult.getSkipCausedBy()
private static Comparator<ITestNGMethod>
TestRunner.newComparator
(boolean needPrioritySort) Methods in org.testng with parameters of type ITestNGMethodModifier and TypeMethodDescriptionvoid
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) Deprecated.- This method stands deprecated as of 7.4.0void
TestRunner.addSkippedTest
(ITestNGMethod tm, ITestResult tr) default void
IDataProviderListener.afterDataProviderExecution
(IDataProviderMethod dataProviderMethod, ITestNGMethod method, ITestContext iTestContext) This method gets invoked just after a data provider is invoked.default void
IConfigurationListener.beforeConfiguration
(ITestResult tr, ITestNGMethod tm) Invoked before a configuration method is invoked.default void
IDataProviderListener.beforeDataProviderExecution
(IDataProviderMethod dataProviderMethod, ITestNGMethod method, ITestContext iTestContext) This method gets invoked just before a data provider is invoked.private static boolean
DependencyMap.belongToDifferentClassHierarchy
(ITestNGMethod baseClassMethod, ITestNGMethod derivedClassMethod) private static String
DependencyMap.constructMethodNameUsingTestClass
(String currentMethodName, ITestNGMethod m) static ITestNGMethod
TestNGUtils.createITestNGMethod
(ITestNGMethod existingMethod, 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).TestRunner.getFailedTests
(ITestNGMethod tm) DependencyMap.getMethodDependingOn
(String methodName, ITestNGMethod fromMethod) DependencyMap.getMethodsThatBelongTo
(String group, ITestNGMethod fromMethod) TestRunner.getPassedTests
(ITestNGMethod tm) IResultMap.getResults
(ITestNGMethod method) TestRunner.getSkippedTests
(ITestNGMethod tm) private static boolean
DependencyMap.hasInstance
(ITestNGMethod baseClassMethod, ITestNGMethod derivedClassMethod) private static boolean
DependencyMap.hasSameParameters
(ITestNGMethod baseClassMethod, ITestNGMethod derivedClassMethod) boolean
IMethodSelector.includeMethod
(IMethodSelectorContext context, ITestNGMethod method, boolean isTestMethod) IDataProviderInterceptor.intercept
(Iterator<Object[]> original, IDataProviderMethod dataProviderMethod, ITestNGMethod method, ITestContext iTestContext) private ITestNGMethod[]
TestRunner.intercept
(ITestNGMethod[] methods) Apply the method interceptor (if applicable) to the list of methods.private void
TestRunner.invokeTestConfigurations
(ITestNGMethod[] testConfigurationMethods) private static boolean
DependencyMap.isSameInstance
(ITestNGMethod baseClassMethod, ITestNGMethod derivedClassMethod) default void
IConfigurationListener.onConfigurationFailure
(ITestResult tr, ITestNGMethod tm) Invoked whenever a configuration method failed.default void
IConfigurationListener.onConfigurationSkip
(ITestResult tr, ITestNGMethod tm) Invoked whenever a configuration method was skipped.default void
IConfigurationListener.onConfigurationSuccess
(ITestResult tr, ITestNGMethod tm) Invoked whenever a configuration method succeeded.default void
IDataProviderListener.onDataProviderFailure
(ITestNGMethod method, ITestContext ctx, RuntimeException t) This method gets invoked when the data provider encounters an exceptionboolean
ClassMethodMap.removeAndCheckIfLast
(ITestNGMethod m, Object instance) Remove the method from this map.void
IResultMap.removeResult
(ITestNGMethod m) private boolean
TestRunner.sortOnPriority
(ITestNGMethod[] interceptedOrder) Method parameters in org.testng with type arguments of type ITestNGMethodModifier and TypeMethodDescriptionprivate ITestRunnerFactory
SuiteRunner.buildRunnerFactory
(Comparator<ITestNGMethod> comparator) TestRunner.createWorkers
(List<ITestNGMethod> methods) Create a list of workers to run the methods passed in parameter.private void
SuiteRunner.init
(IConfiguration configuration, XmlSuite suite, String outputDir, ITestRunnerFactory runnerFactory, boolean useDefaultListeners, List<IMethodInterceptor> methodInterceptors, Collection<IInvokedMethodListener> invokedMethodListener, Collection<ITestListener> testListeners, Collection<IClassListener> classListeners, DataProviderHolder attribs, Comparator<ITestNGMethod> comparator) private void
TestRunner.runJUnitWorkers
(List<? extends IWorker<ITestNGMethod>> workers) void
TestListenerAdapter.setAllTestMethods
(List<ITestNGMethod> allTestMethods) void
IMethodSelector.setTestMethods
(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.Constructors in org.testng with parameters of type ITestNGMethodConstructor parameters in org.testng with type arguments of type ITestNGMethodModifierConstructorDescriptionClassMethodMap
(List<ITestNGMethod> methods, XmlMethodSelector xmlMethodSelector) DefaultTestRunnerFactory
(IConfiguration configuration, ITestListener[] failureListeners, boolean useDefaultListeners, boolean skipFailedInvocationCounts, Comparator<ITestNGMethod> comparator) SuiteRunner
(IConfiguration configuration, XmlSuite suite, String outputDir, ITestRunnerFactory runnerFactory, boolean useDefaultListeners, Comparator<ITestNGMethod> comparator) protected
SuiteRunner
(IConfiguration configuration, XmlSuite suite, String outputDir, ITestRunnerFactory runnerFactory, boolean useDefaultListeners, List<IMethodInterceptor> methodInterceptors, Collection<IInvokedMethodListener> invokedMethodListeners, Collection<ITestListener> testListeners, Collection<IClassListener> classListeners, DataProviderHolder holder, Comparator<ITestNGMethod> comparator) SuiteRunner
(IConfiguration configuration, XmlSuite suite, String outputDir, ITestRunnerFactory runnerFactory, Comparator<ITestNGMethod> comparator) TestRunner
(IConfiguration configuration, ISuite suite, XmlTest test, boolean skipFailedInvocationCounts, Collection<IInvokedMethodListener> invokedMethodListeners, List<IClassListener> classListeners, Comparator<ITestNGMethod> comparator) protected
TestRunner
(IConfiguration configuration, ISuite suite, XmlTest test, String outputDirectory, IAnnotationFinder finder, boolean skipFailedInvocationCounts, Collection<IInvokedMethodListener> invokedMethodListeners, List<IClassListener> classListeners, Comparator<ITestNGMethod> comparator, DataProviderHolder otherHolder) -
Uses of ITestNGMethod in org.testng.internal
Classes in org.testng.internal that implement ITestNGMethodModifier and TypeClassDescriptionclass
Superclass to represent both @Test and @Configuration methods.class
class
class
This class represents a method annotated with @Factoryclass
class
This class represents a test method.class
Represents a proxy for an actual instance ofITestNGMethod
but with the exception that it generates a unique hashcode that is different from the originalITestNGMethod
instance that it wraps.Fields in org.testng.internal declared as ITestNGMethodModifier and TypeFieldDescriptionprivate final ITestNGMethod[]
TestMethodArguments.afterMethods
private ITestNGMethod[]
TestMethodArguments.Builder.afterMethods
private final ITestNGMethod[]
ConfigMethodArguments.allMethods
private ITestNGMethod[]
ConfigMethodArguments.Builder.allMethods
private final ITestNGMethod[]
TestMethodArguments.beforeMethods
private ITestNGMethod[]
TestMethodArguments.Builder.beforeMethods
private ITestNGMethod
ConfigMethodArguments.Builder.currentTestMethod
protected ITestNGMethod[]
NoOpTestClass.m_afterClassMethods
protected ITestNGMethod[]
NoOpTestClass.m_afterGroupsMethods
private final ITestNGMethod[]
TestMethodWithDataProviderMethodWorker.m_afterMethods
protected ITestNGMethod[]
NoOpTestClass.m_afterSuiteMethods
protected ITestNGMethod[]
NoOpTestClass.m_afterTestConfMethods
protected ITestNGMethod[]
NoOpTestClass.m_afterTestMethods
private final ITestNGMethod[]
ConfigurationGroupMethods.m_allMethods
The list of all test methodsprotected ITestNGMethod[]
NoOpTestClass.m_beforeClassMethods
protected ITestNGMethod[]
NoOpTestClass.m_beforeGroupsMethods
private final ITestNGMethod[]
TestMethodWithDataProviderMethodWorker.m_beforeMethods
protected ITestNGMethod[]
NoOpTestClass.m_beforeSuiteMethods
protected ITestNGMethod[]
NoOpTestClass.m_beforeTestConfMethods
protected ITestNGMethod[]
NoOpTestClass.m_beforeTestMethods
private final ITestNGMethod
ClonedMethod.m_method
private final ITestNGMethod
InvokeMethodRunnable.m_method
private final ITestNGMethod
MethodInstance.m_method
private ITestNGMethod
TestResult.m_method
private final ITestNGMethod
TestMethodWithDataProviderMethodWorker.m_testMethod
protected ITestNGMethod[]
NoOpTestClass.m_testMethods
protected final ITestNGMethod
ExpectedExceptionsHolder.method
private final ITestNGMethod
RegexpExpectedExceptionsHolder.method
private ITestNGMethod[]
TestMethodContainer.methods
private ITestNGMethod
GroupConfigMethodArguments.Builder.testMethod
private final ITestNGMethod
WrappedTestNGMethod.testNGMethod
protected final ITestNGMethod
Arguments.tm
private ITestNGMethod
TestMethodArguments.Builder.tm
Fields in org.testng.internal with type parameters of type ITestNGMethodModifier and TypeFieldDescription(package private) static final BiPredicate<ITestNGMethod,
IClass> Invoker.CAN_RUN_FROM_CLASS
Predicate to filter methodsprivate final Comparator<ITestNGMethod>
TestNGMethodFinder.comparator
private static final Comparator<ITestNGMethod>
MethodInheritance.COMPARATOR
A Custom comparator that helps inITestNGMethod
ordering keeping in mind the class hierarchy.private static final Map<ITestNGMethod[],
Graph<ITestNGMethod>> MethodHelper.GRAPH_CACHE
private Map<String,
List<ITestNGMethod>> ConfigurationGroupMethods.m_afterGroupsMap
A map that returns the last method belonging to the given groupprivate final Map<String,
List<ITestNGMethod>> ConfigurationGroupMethods.m_afterGroupsMethods
The list of afterGroups methods keyed by the name of the groupprivate final Map<String,
List<ITestNGMethod>> ConfigurationGroupMethods.m_beforeGroupsMethods
The list of beforeGroups methods keyed by the name of the groupprivate final Set<ITestNGMethod>
ConfigInvoker.m_executedConfigMethods
protected final Map<ITestNGMethod,
Set<Object>> ConfigInvoker.m_methodInvocationResults
Test methods whose configuration methods have failed.private List<ITestNGMethod>
XmlMethodSelector.m_testMethods
private final List<ITestNGMethod>
MethodHelper.MatchResults.matchedMethods
private List<ITestNGMethod>
AbstractParallelWorker.Arguments.methods
private static final Comparator<ITestNGMethod>
TestNGMethodFinder.NO_COMPARISON
(package private) static final BiPredicate<ITestNGMethod,
IClass> Invoker.SAME_CLASS
Predicate to filter methodsprivate List<ITestNGMethod>
TestResult.skippedDueTo
Methods in org.testng.internal that return ITestNGMethodModifier and TypeMethodDescriptionabstract ITestNGMethod
BaseTestMethod.clone()
FactoryMethod.clone()
LiteWeightTestNGMethod.clone()
private static ITestNGMethod[]
TestNGMethod.clone
(ITestNGMethod[] sources) WrappedTestNGMethod.clone()
static ITestNGMethod[]
MethodHelper.collectAndOrderMethods
(List<ITestNGMethod> methods, boolean forTests, RunInfo runInfo, IAnnotationFinder finder, boolean unique, List<ITestNGMethod> outExcludedMethods, Comparator<ITestNGMethod> comparator) Collects and orders test or configuration methodsstatic ITestNGMethod[]
ConfigurationMethod.createAfterConfigurationMethods
(ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, Object instance) static ITestNGMethod[]
ConfigurationMethod.createBeforeConfigurationMethods
(ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, Object instance) static ITestNGMethod[]
ConfigurationMethod.createClassConfigurationMethods
(ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, 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, Object instance) static ITestNGMethod[]
ConfigurationMethod.createSuiteConfigurationMethods
(ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, Object instance) static ITestNGMethod[]
ConfigurationMethod.createTestConfigurationMethods
(ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, Object instance) static ITestNGMethod[]
ConfigurationMethod.createTestMethodConfigurationMethods
(ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, Object instance) (package private) static ITestNGMethod[]
TestNgMethodUtils.filterAfterTestMethods
(ITestClass testClass, BiPredicate<ITestNGMethod, IClass> predicate) (package private) static ITestNGMethod[]
TestNgMethodUtils.filterBeforeTestMethods
(ITestClass testClass, BiPredicate<ITestNGMethod, IClass> predicate) (package private) static ITestNGMethod[]
TestNgMethodUtils.filterMethods
(IClass testClass, ITestNGMethod[] methods, BiPredicate<ITestNGMethod, IClass> predicate) (package private) static ITestNGMethod[]
TestNgMethodUtils.filterSetupConfigurationMethods
(ITestNGMethod tm, ITestNGMethod[] methods) (package private) static ITestNGMethod[]
TestNgMethodUtils.filterTeardownConfigurationMethods
(ITestNGMethod tm, ITestNGMethod[] methods) private ITestNGMethod[]
TestNGMethodFinder.findConfiguration
(Class<?> clazz, TestNGMethodFinder.MethodType configurationType) protected static ITestNGMethod[]
MethodHelper.findDependedUponMethods
(ITestNGMethod m, List<ITestNGMethod> methods) Finds TestNG methods that the specified TestNG method depends uponprotected static ITestNGMethod[]
MethodHelper.findDependedUponMethods
(ITestNGMethod m, ITestNGMethod[] methods) Finds TestNG methods that the specified TestNG method depends uponprivate static ITestNGMethod
MethodGroupsHelper.findMethodNamed
(String tm, List<ITestNGMethod> allMethods) protected static ITestNGMethod[]
MethodGroupsHelper.findMethodsThatBelongToGroup
(ITestNGMethod[] methods, String groupRegexp) protected static ITestNGMethod[]
MethodGroupsHelper.findMethodsThatBelongToGroup
(ITestNGMethod method, ITestNGMethod[] methods, String groupRegexp) Only used if a group is missing to flag an error on that methodNoOpTestClass.getAfterClassMethods()
TestNGMethodFinder.getAfterClassMethods
(Class<?> cls) TestNGMethodFinder.getAfterGroupsConfigurationMethods
(Class<?> clazz) NoOpTestClass.getAfterGroupsMethods()
TestMethodArguments.getAfterMethods()
NoOpTestClass.getAfterSuiteMethods()
TestNGMethodFinder.getAfterSuiteMethods
(Class<?> cls) NoOpTestClass.getAfterTestConfigurationMethods()
TestNGMethodFinder.getAfterTestConfigurationMethods
(Class<?> clazz) NoOpTestClass.getAfterTestMethods()
TestNGMethodFinder.getAfterTestMethods
(Class<?> cls) NoOpTestClass.getBeforeClassMethods()
TestNGMethodFinder.getBeforeClassMethods
(Class<?> cls) TestNGMethodFinder.getBeforeGroupsConfigurationMethods
(Class<?> clazz) NoOpTestClass.getBeforeGroupsMethods()
TestMethodArguments.getBeforeMethods()
NoOpTestClass.getBeforeSuiteMethods()
TestNGMethodFinder.getBeforeSuiteMethods
(Class<?> cls) NoOpTestClass.getBeforeTestConfigurationMethods()
TestNGMethodFinder.getBeforeTestConfigurationMethods
(Class<?> clazz) NoOpTestClass.getBeforeTestMethods()
TestNGMethodFinder.getBeforeTestMethods
(Class<?> cls) ConfigMethodArguments.getConfigMethods()
TestMethodContainer.getItems()
MethodInstance.getMethod()
TestResult.getMethod()
Arguments.getTestMethod()
InvokedMethod.getTestMethod()
NoOpTestClass.getTestMethods()
TestNGMethodFinder.getTestMethods
(Class<?> clazz, XmlTest xmlTest) Methods in org.testng.internal that return types with arguments of type ITestNGMethodModifier and TypeMethodDescriptionprivate static ListMultiMap<ITestNGMethod,
ITestNGMethod> DynamicGraphHelper.createClassDependencies
(ITestNGMethod[] methods, XmlTest test) private static ListMultiMap<ITestNGMethod,
ITestNGMethod> DynamicGraphHelper.createClassDependencies
(ITestNGMethod[] methods, XmlTest test) static DynamicGraph<ITestNGMethod>
DynamicGraphHelper.createDynamicGraph
(ITestNGMethod[] methods, XmlTest xmlTest) private static ListMultiMap<ITestNGMethod,
ITestNGMethod> DynamicGraphHelper.createInstanceDependencies
(ITestNGMethod[] methods) private static ListMultiMap<ITestNGMethod,
ITestNGMethod> DynamicGraphHelper.createInstanceDependencies
(ITestNGMethod[] methods) abstract List<IWorker<ITestNGMethod>>
AbstractParallelWorker.createWorkers
(AbstractParallelWorker.Arguments arguments) ClassBasedParallelWorker.createWorkers
(AbstractParallelWorker.Arguments arguments) InstanceBasedParallelParallelWorker.createWorkers
(AbstractParallelWorker.Arguments arguments) static Map<String,
List<ITestNGMethod>> MethodGroupsHelper.findGroupsMethods
(Collection<ITestClass> classes, boolean before) private static List<ITestNGMethod>
MethodInheritance.findMethodListSuperClass
(Map<Class<?>, List<ITestNGMethod>> map, Class<? extends ITestNGMethod> methodClass) Look in map for a class that is a superclass of methodClassConfigurationGroupMethods.getAfterGroupMethodsForGroup
(String group) ConfigurationGroupMethods.getAfterGroupsMethods()
default List<ITestNGMethod>
ITestClassConfigInfo.getAllBeforeClassMethods()
get all before class config methodsResultMap.getAllMethods()
ConfigurationGroupMethods.getBeforeGroupMethodsForGroup
(String group) ConfigurationGroupMethods.getBeforeGroupsMethods()
static Comparator<ITestNGMethod>
Systematiser.getComparator()
default List<ITestNGMethod>
ITestClassConfigInfo.getInstanceBeforeClassMethods
(String instance) Query the instance before class methods from config methods mapAbstractParallelWorker.Arguments.getMethods()
static List<ITestNGMethod>
MethodHelper.getMethodsDependedUpon
(ITestNGMethod method, ITestNGMethod[] methods, Comparator<ITestNGMethod> comparator) TestResult.getSkipCausedBy()
TestMethodWorker.getTasks()
private Map<String,
List<ITestNGMethod>> ConfigurationGroupMethods.initializeAfterGroupsMap()
static List<ITestNGMethod>
MethodHelper.invokedMethodsToMethods
(Collection<IInvokedMethod> invokedMethods) static List<ITestNGMethod>
MethodHelper.methodInstancesToMethods
(List<IMethodInstance> methodInstances) private static List<ITestNGMethod>
ConfigurationGroupMethods.retrieve
(Set<String> tracker, Map<String, List<ITestNGMethod>> map, String group) private static List<ITestNGMethod>
MethodHelper.sortMethods
(boolean forTests, List<ITestNGMethod> allMethods, Comparator<ITestNGMethod> comparator) private static Map<Object,
List<ITestNGMethod>> MethodHelper.sortMethodsByInstance
(ITestNGMethod[] methods) This method is used to create a map of test instances and their associated method(s) .private static Graph<ITestNGMethod>
MethodHelper.topologicalSort
(ITestNGMethod[] methods, List<ITestNGMethod> sequentialList, List<ITestNGMethod> parallelList, Comparator<ITestNGMethod> comparator) static List<ITestNGMethod>
MethodHelper.uniqueMethodList
(Collection<List<ITestNGMethod>> methods) Extracts the unique list ofITestNGMethod
s.Methods in org.testng.internal with parameters of type ITestNGMethodModifier and TypeMethodDescriptionvoid
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 String
Utils.annotationFormFor
(ITestNGMethod method) Given a TestNG method, returns the corresponding annotation based on the method typeprotected static String
MethodHelper.calculateMethodCanonicalName
(ITestNGMethod m) protected static long
MethodHelper.calculateTimeOut
(ITestNGMethod tm) (package private) static boolean
TestNgMethodUtils.cannotRunMethodIndependently
(ITestNGMethod tm) private String
TestInvoker.checkDependencies
(ITestNGMethod testMethod) Checks to see of the test method has certain dependencies that prevents TestNG from executing itprivate static ITestNGMethod[]
TestNGMethod.clone
(ITestNGMethod[] sources) (package private) static void
MethodGroupsHelper.collectMethodsByGroup
(ITestNGMethod[] methods, boolean forTests, List<ITestNGMethod> outIncludedMethods, 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.private void
TestInvoker.collectResults
(ITestNGMethod testMethod, ITestResult result) int
TestMethodComparator.compare
(ITestNGMethod o1, ITestNGMethod o2) static int
TestMethodComparator.compareStatic
(ITestNGMethod o1, ITestNGMethod o2) private static Object
ConfigInvoker.computeInstance
(Object instance, Object inst, ITestNGMethod tm) private TestInvoker.StatusHolder
TestInvoker.considerExceptions
(ITestNGMethod tm, ITestResult testresult, ExpectedExceptionsHolder exceptionsHolder, ITestInvoker.FailureContext failure) private static boolean
TestNgMethodUtils.containsConfigurationMethod
(ITestNGMethod method, List<ITestNGMethod> methods) A helper method which checks if a given method is a configuration method and is part of list of TestNG methodsstatic ITestNGMethod[]
ConfigurationMethod.createAfterConfigurationMethods
(ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, Object instance) static ITestNGMethod[]
ConfigurationMethod.createBeforeConfigurationMethods
(ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, Object instance) static ITestNGMethod[]
ConfigurationMethod.createClassConfigurationMethods
(ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, Object instance) private static ListMultiMap<ITestNGMethod,
ITestNGMethod> DynamicGraphHelper.createClassDependencies
(ITestNGMethod[] methods, XmlTest test) static Object[]
Parameters.createConfigurationParameters
(Method m, Map<String, String> params, Object[] parameterValues, ITestNGMethod currentTestMethod, IAnnotationFinder finder, XmlSuite xmlSuite, ITestContext ctx, ITestResult testResult) Creates the parameters needed for the specified@Configuration
Method
.static DynamicGraph<ITestNGMethod>
DynamicGraphHelper.createDynamicGraph
(ITestNGMethod[] methods, XmlTest xmlTest) private static ListMultiMap<ITestNGMethod,
ITestNGMethod> DynamicGraphHelper.createInstanceDependencies
(ITestNGMethod[] methods) 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, Object instance) (package private) ParameterHandler.ParameterBag
ParameterHandler.createParameters
(ITestNGMethod testMethod, Map<String, String> parameters, Map<String, String> allParameterNames, ITestContext testContext) (package private) ParameterHandler.ParameterBag
ParameterHandler.createParameters
(ITestNGMethod testMethod, Map<String, String> parameters, Map<String, String> allParameterNames, ITestContext testContext, Object fedInstance) static ITestNGMethod[]
ConfigurationMethod.createSuiteConfigurationMethods
(ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, Object instance) static ITestNGMethod[]
ConfigurationMethod.createTestConfigurationMethods
(ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, Object instance) static ITestNGMethod[]
ConfigurationMethod.createTestMethodConfigurationMethods
(ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, Object instance) private static boolean
MethodInheritance.dependencyExists
(ITestNGMethod m1, ITestNGMethod m2, ITestNGMethod[] methods) static String
Utils.detailedMethodName
(ITestNGMethod method, boolean fqn) private static boolean
TestNgMethodUtils.doesConfigMethodPassGroupFilters
(ConfigurationMethod cm, ITestNGMethod tm) private static boolean
TestNgMethodUtils.doesSetupMethodPassFirstTimeFilter
(ConfigurationMethod cm, ITestNGMethod tm) private static boolean
TestNgMethodUtils.doesTeardownMethodPassLastTimeFilter
(ConfigurationMethod cm, ITestNGMethod tm) static void
MethodHelper.dumpInvokedMethodInfoToConsole
(ITestNGMethod[] methods, int currentVerbosity) private static boolean
MethodInheritance.equalsEffectiveClass
(ITestNGMethod m1, ITestNGMethod m2) private boolean
TestInvoker.failuresPresentInUpstreamDependency
(ITestNGMethod testMethod, ITestNGMethod[] methods) (package private) static ITestNGMethod[]
TestNgMethodUtils.filterMethods
(IClass testClass, ITestNGMethod[] methods, BiPredicate<ITestNGMethod, IClass> predicate) (package private) static ITestNGMethod[]
TestNgMethodUtils.filterSetupConfigurationMethods
(ITestNGMethod tm, ITestNGMethod[] methods) (package private) static ITestNGMethod[]
TestNgMethodUtils.filterTeardownConfigurationMethods
(ITestNGMethod tm, ITestNGMethod[] methods) protected static ITestNGMethod[]
MethodHelper.findDependedUponMethods
(ITestNGMethod m, List<ITestNGMethod> methods) Finds TestNG methods that the specified TestNG method depends uponprotected static ITestNGMethod[]
MethodHelper.findDependedUponMethods
(ITestNGMethod m, ITestNGMethod[] methods) Finds TestNG methods that the specified TestNG method depends uponprivate static Class<?>[]
ExpectedExceptionsHolder.findExpectedClasses
(IAnnotationFinder finder, ITestNGMethod method) private static Method
MethodHelper.findMethodByName
(ITestNGMethod testngMethod, String regExp) Finds method based on regex and TestNGMethod.protected static ITestNGMethod[]
MethodGroupsHelper.findMethodsThatBelongToGroup
(ITestNGMethod[] methods, String groupRegexp) protected static ITestNGMethod[]
MethodGroupsHelper.findMethodsThatBelongToGroup
(ITestNGMethod method, ITestNGMethod[] methods, String groupRegexp) Only used if a group is missing to flag an error on that methodstatic 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)static void
MethodHelper.fixMethodsWithClass
(ITestNGMethod[] methods, ITestClass testCls, List<ITestNGMethod> methodList) ConfigMethodArguments.Builder.forTestMethod
(ITestNGMethod currentTestMethod) GroupConfigMethodArguments.Builder.forTestMethod
(ITestNGMethod testMethod) TestMethodArguments.Builder.forTestMethod
(ITestNGMethod tm) ITestResultNotifier.getFailedTests
(ITestNGMethod tm) (package private) static Object
TestNgMethodUtils.getMethodInvocationToken
(ITestNGMethod method, Object instance) static List<ITestNGMethod>
MethodHelper.getMethodsDependedUpon
(ITestNGMethod method, ITestNGMethod[] methods, Comparator<ITestNGMethod> comparator) MethodInvocationHelper.getParameters
(Method dataProvider, ITestNGMethod method, ITestContext testContext, Object fedInstance, IAnnotationFinder annotationFinder) ITestResultNotifier.getPassedTests
(ITestNGMethod tm) ResultMap.getResults
(ITestNGMethod method) ITestResultNotifier.getSkippedTests
(ITestNGMethod tm) private void
ConfigInvoker.handleConfigurationFailure
(Throwable ite, ITestNGMethod tm, ITestResult testResult, IConfigurationAnnotation annotation, ITestNGMethod currentTestMethod, Object instance, XmlSuite suite) private void
ConfigInvoker.handleConfigurationSkip
(ITestNGMethod tm, ITestResult testResult, IConfigurationAnnotation annotation, ITestNGMethod currentTestMethod, Object instance, XmlSuite suite) Marks the currentTestResult
as skipped and invokes the listeners.protected void
BaseInvoker.handleException
(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_successPercentageprivate void
TestInvoker.handleInvocationResults
(ITestNGMethod testMethod, ITestResult testResult, ITestInvoker.FailureContext failure, TestInvoker.StatusHolder holder, boolean wasResultUnaltered) private ParameterHandler.ParameterBag
ParameterHandler.handleParameters
(ITestNGMethod testMethod, Object instance, Map<String, String> allParameterNames, Map<String, String> parameters, ITestContext testContext, Object fedInstance) static ParameterHolder
Parameters.handleParameters
(ITestNGMethod testMethod, Map<String, String> allParameterNames, Object instance, Parameters.MethodParameters methodParams, XmlSuite xmlSuite, IAnnotationFinder annotationFinder, Object fedInstance, DataProviderHolder holder) If the method has parameters, fill them in.static ParameterHolder
Parameters.handleParameters
(ITestNGMethod testMethod, Map<String, String> allParameterNames, Object instance, Parameters.MethodParameters methodParams, XmlSuite xmlSuite, IAnnotationFinder annotationFinder, Object fedInstance, DataProviderHolder holder, String annotationName) If the method has parameters, fill them in.private boolean
ConfigInvoker.hasConfigFailure
(ITestNGMethod currentTestMethod) boolean
ConfigInvoker.hasConfigurationFailureFor
(ITestNGMethod testNGMethod, String[] groups, IClass testClass, Object instance) boolean
IConfigInvoker.hasConfigurationFailureFor
(ITestNGMethod testNGMethod, String[] groups, IClass testClass, Object instance) private static boolean
MethodGroupsHelper.includeMethod
(ITestOrConfiguration annotation, RunInfo runInfo, ITestNGMethod tm, boolean forTests, boolean unique, List<ITestNGMethod> outIncludedMethods) boolean
RunInfo.includeMethod
(ITestNGMethod tm, boolean isTestMethod) boolean
XmlMethodSelector.includeMethod
(IMethodSelectorContext context, ITestNGMethod tm, boolean isTestMethod) (package private) boolean
ScriptMethodSelector.includeMethodFromExpression
(ITestNGMethod tm) private boolean
XmlMethodSelector.includeMethodFromIncludeExclude
(ITestNGMethod tm, boolean isTestMethod) protected int
TestMethodWorker.indexOf
(ITestNGMethod tm, ITestNGMethod[] allTestMethods) private void
TestResult.init
(ITestNGMethod method, ITestContext ctx, Throwable t, long start, long end) private static boolean
MethodInheritance.internalDependencyExists
(ITestNGMethod m1, ITestNGMethod m2, ITestNGMethod[] methods) private void
ConfigInvoker.invokeConfigurationMethod
(Object targetInstance, ITestNGMethod tm, Object[] params, ITestResult testResult) Effectively invokes a configuration method on all passed in instances.MethodInvocationHelper.invokeDataProvider
(Object instance, Method dataProvider, ITestNGMethod method, ITestContext testContext, Object fedInstance, IAnnotationFinder annotationFinder) protected static void
MethodInvocationHelper.invokeMethodConsideringTimeout
(ITestNGMethod tm, ConstructorOrMethod method, Object targetInstance, Object[] params, ITestResult testResult) private List<ITestResult>
TestInvoker.invokePooledTestMethods
(ITestNGMethod testMethod, XmlSuite suite, Map<String, String> parameters, ConfigurationGroupMethods groupMethods, ITestContext testContext) Invokes a method that has a specified threadPoolSize.ITestInvoker.invokeTestMethods
(ITestNGMethod testMethod, ConfigurationGroupMethods groupMethods, Object instance, ITestContext context) TestInvoker.invokeTestMethods
(ITestNGMethod testMethod, ConfigurationGroupMethods groupMethods, Object instance, ITestContext context) protected void
TestMethodWorker.invokeTestMethods
(ITestNGMethod tm, Object instance) protected static void
MethodInvocationHelper.invokeWithTimeout
(ITestNGMethod tm, Object instance, 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, Object instance, Object[] parameterValues, ITestResult testResult, IHookable hookable) private static void
MethodInvocationHelper.invokeWithTimeoutWithNewExecutor
(ITestNGMethod tm, Object instance, Object[] parameterValues, ITestResult testResult, IHookable hookable) private static void
MethodInvocationHelper.invokeWithTimeoutWithNoExecutor
(ITestNGMethod tm, Object instance, Object[] parameterValues, ITestResult testResult, IHookable hookable) private static boolean
ConfigInvoker.isConfigMethodEligibleForScrutiny
(ITestNGMethod tm) private static boolean
MethodHelper.isConfigurationMethod
(ITestNGMethod tm) (package private) static boolean
TestNgMethodUtils.isConfigurationMethod
(ITestNGMethod method) A helper method that checks to see if a method is a configuration method or not.private static boolean
TestNgMethodUtils.isConfigurationMethod
(ITestNGMethod method, boolean includeGroupConfigs) A helper method that checks to see if a method is a configuration method or not.private static boolean
ConfigInvoker.isGroupLevelConfigurationMethod
(ITestNGMethod itm) boolean
ConfigurationGroupMethods.isLastMethodForGroup
(String group, ITestNGMethod method) private static boolean
MethodGroupsHelper.isMethodAlreadyNotPresent
(List<ITestNGMethod> result, ITestNGMethod tm) private Set<ITestResult>
TestInvoker.keepSameInstances
(ITestNGMethod method, Set<ITestResult> results) private static MethodHelper.MatchResults
MethodHelper.matchMethod
(ITestNGMethod[] methods, String regexp) private List<MethodInstance>
ClassBasedParallelWorker.methodsToMultipleMethodInstances
(ITestNGMethod... methods) static TestResult
TestResult.newContextAwareTestResult
(ITestNGMethod method, ITestContext ctx) static TestResult
TestResult.newEndTimeAwareTestResult
(ITestNGMethod method, ITestContext ctx, Throwable t, long start) static Parameters.MethodParameters
Parameters.MethodParameters.newInstance
(Map<String, String> params, ITestNGMethod testNGMethod, ITestContext context) static TestResult
TestResult.newTestResultFor
(ITestNGMethod method) static TestResult
TestResult.newTestResultFrom
(TestResult result, ITestNGMethod method, ITestContext ctx, long start) static TestResult
TestResult.newTestResultWithCauseAs
(ITestNGMethod method, ITestContext ctx, Throwable t) ExpectedExceptionsHolder.noException
(ITestNGMethod testMethod) private void
ConfigInvoker.recordConfigurationInvocationFailed
(ITestNGMethod tm, IClass testClass, IConfigurationAnnotation annotation, ITestNGMethod currentTestMethod, Object instance, XmlSuite suite) Record internally the failure of a Configuration, so that we can determine later if @Test should be skipped.default ITestResult
ITestInvoker.registerSkippedTestResult
(ITestNGMethod testMethod, long start, Throwable throwable) ITestInvoker.registerSkippedTestResult
(ITestNGMethod testMethod, long start, Throwable throwable, ITestResult source) TestInvoker.registerSkippedTestResult
(ITestNGMethod testMethod, long start, Throwable throwable, ITestResult source) void
ResultMap.removeResult
(ITestNGMethod m) private void
TestInvoker.runConfigMethods
(TestMethodArguments arguments, XmlSuite suite, TestResult testResult, ITestNGMethod[] teardownConfigMethods) private void
ConfigInvoker.runConfigurationListeners
(ITestResult tr, ITestNGMethod tm, boolean before) (package private) static void
TestListenerHelper.runPostConfigurationListeners
(ITestResult tr, ITestNGMethod tm, List<IConfigurationListener> listeners) (package private) static void
TestListenerHelper.runPreConfigurationListeners
(ITestResult tr, ITestNGMethod tm, List<IConfigurationListener> listeners) private List<ITestResult>
TestInvoker.runWorkers
(ITestNGMethod testMethod, List<IWorker<ITestNGMethod>> workers, int threadPoolSize, ConfigurationGroupMethods groupMethods, XmlSuite suite, Map<String, 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 static void
ScriptMethodSelector.setContext
(ScriptEngine engine, Map<String, String> groups, ITestNGMethod tm) void
TestResult.setMethod
(ITestNGMethod method) private void
ConfigInvoker.setMethodInvocationFailure
(ITestNGMethod method, Object instance) private static Map<Object,
List<ITestNGMethod>> MethodHelper.sortMethodsByInstance
(ITestNGMethod[] methods) This method is used to create a map of test instances and their associated method(s) .private static Graph<ITestNGMethod>
MethodHelper.topologicalSort
(ITestNGMethod[] methods, List<ITestNGMethod> sequentialList, List<ITestNGMethod> parallelList, Comparator<ITestNGMethod> comparator) TestMethodArguments.Builder.usingAfterMethods
(ITestNGMethod[] afterMethods) TestMethodArguments.Builder.usingBeforeMethods
(ITestNGMethod[] beforeMethods) ConfigMethodArguments.Builder.usingConfigMethodsAs
(ITestNGMethod[] allMethods) Method parameters in org.testng.internal with type arguments of type ITestNGMethodModifier and TypeMethodDescriptionprivate void
TestNGMethodFinder.addConfigurationMethod
(Class<?> clazz, List<ITestNGMethod> results, Method method, boolean isBeforeSuite, boolean isAfterSuite, boolean isBeforeTest, boolean isAfterTest, boolean isBeforeClass, boolean isAfterClass, boolean isBeforeTestMethod, boolean isAfterTestMethod, String[] beforeGroups, String[] afterGroups, Object instance) static ITestNGMethod[]
MethodHelper.collectAndOrderMethods
(List<ITestNGMethod> methods, boolean forTests, RunInfo runInfo, IAnnotationFinder finder, boolean unique, List<ITestNGMethod> outExcludedMethods, Comparator<ITestNGMethod> comparator) Collects and orders test or configuration methodsstatic ITestNGMethod[]
MethodHelper.collectAndOrderMethods
(List<ITestNGMethod> methods, boolean forTests, RunInfo runInfo, IAnnotationFinder finder, boolean unique, List<ITestNGMethod> outExcludedMethods, Comparator<ITestNGMethod> comparator) Collects and orders test or configuration methods(package private) static void
MethodGroupsHelper.collectMethodsByGroup
(ITestNGMethod[] methods, boolean forTests, List<ITestNGMethod> outIncludedMethods, 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) private static boolean
TestNgMethodUtils.containsConfigurationMethod
(ITestNGMethod method, List<ITestNGMethod> methods) A helper method which checks if a given method is a configuration method and is part of list of TestNG methods(package private) static ITestNGMethod[]
TestNgMethodUtils.filterAfterTestMethods
(ITestClass testClass, BiPredicate<ITestNGMethod, IClass> predicate) (package private) static ITestNGMethod[]
TestNgMethodUtils.filterBeforeTestMethods
(ITestClass testClass, BiPredicate<ITestNGMethod, IClass> predicate) (package private) static ITestNGMethod[]
TestNgMethodUtils.filterMethods
(IClass testClass, ITestNGMethod[] methods, BiPredicate<ITestNGMethod, IClass> predicate) protected static ITestNGMethod[]
MethodHelper.findDependedUponMethods
(ITestNGMethod m, List<ITestNGMethod> methods) Finds TestNG methods that the specified TestNG method depends uponprotected static void
MethodGroupsHelper.findGroupTransitiveClosure
(List<ITestNGMethod> includedMethods, List<ITestNGMethod> allMethods, String[] includedGroups, Set<String> outGroups, Set<ITestNGMethod> outMethods) private static List<ITestNGMethod>
MethodInheritance.findMethodListSuperClass
(Map<Class<?>, List<ITestNGMethod>> map, Class<? extends ITestNGMethod> methodClass) Look in map for a class that is a superclass of methodClassprivate static List<ITestNGMethod>
MethodInheritance.findMethodListSuperClass
(Map<Class<?>, List<ITestNGMethod>> map, Class<? extends ITestNGMethod> methodClass) Look in map for a class that is a superclass of methodClassprivate static ITestNGMethod
MethodGroupsHelper.findMethodNamed
(String tm, List<ITestNGMethod> allMethods) private static Class<?>
MethodInheritance.findSubClass
(Map<Class<?>, List<ITestNGMethod>> map, Class<? extends ITestNGMethod> methodClass) Look in map for a class that is a subclass of methodClassprivate static Class<?>
MethodInheritance.findSubClass
(Map<Class<?>, List<ITestNGMethod>> map, Class<? extends ITestNGMethod> methodClass) Look in map for a class that is a subclass of methodClassstatic void
MethodHelper.fixMethodsWithClass
(ITestNGMethod[] methods, ITestClass testCls, List<ITestNGMethod> methodList) static List<ITestNGMethod>
MethodHelper.getMethodsDependedUpon
(ITestNGMethod method, ITestNGMethod[] methods, Comparator<ITestNGMethod> comparator) private static boolean
MethodGroupsHelper.includeMethod
(ITestOrConfiguration annotation, RunInfo runInfo, ITestNGMethod tm, boolean forTests, boolean unique, List<ITestNGMethod> outIncludedMethods) private static boolean
MethodGroupsHelper.isMethodAlreadyNotPresent
(List<ITestNGMethod> result, ITestNGMethod tm) AbstractParallelWorker.Arguments.Builder.methods
(List<ITestNGMethod> methods) static List<IMethodInstance>
MethodHelper.methodsToMethodInstances
(List<ITestNGMethod> sl) private static List<ITestNGMethod>
ConfigurationGroupMethods.retrieve
(Set<String> tracker, Map<String, List<ITestNGMethod>> map, String group) private List<ITestResult>
TestInvoker.runWorkers
(ITestNGMethod testMethod, List<IWorker<ITestNGMethod>> workers, int threadPoolSize, ConfigurationGroupMethods groupMethods, XmlSuite suite, Map<String, 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
MethodSelectorDescriptor.setTestMethods
(List<ITestNGMethod> testMethods) void
RunInfo.setTestMethods
(List<ITestNGMethod> testMethods) void
XmlMethodSelector.setTestMethods
(List<ITestNGMethod> testMethods) private static List<ITestNGMethod>
MethodHelper.sortMethods
(boolean forTests, List<ITestNGMethod> allMethods, Comparator<ITestNGMethod> comparator) private static List<ITestNGMethod>
MethodHelper.sortMethods
(boolean forTests, List<ITestNGMethod> allMethods, Comparator<ITestNGMethod> comparator) private static void
MethodInheritance.sortMethodsByInheritance
(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, List<ITestNGMethod> sequentialList, List<ITestNGMethod> parallelList, Comparator<ITestNGMethod> comparator) private static Graph<ITestNGMethod>
MethodHelper.topologicalSort
(ITestNGMethod[] methods, List<ITestNGMethod> sequentialList, List<ITestNGMethod> parallelList, Comparator<ITestNGMethod> comparator) static List<ITestNGMethod>
MethodHelper.uniqueMethodList
(Collection<List<ITestNGMethod>> methods) Extracts the unique list ofITestNGMethod
s.ConfigMethodArguments.Builder.usingConfigMethodsAs
(Collection<ITestNGMethod> allMethods) Constructors in org.testng.internal with parameters of type ITestNGMethodModifierConstructorDescriptionprotected
ClonedMethod
(ITestNGMethod method, Method javaMethod) private
ConfigMethodArguments
(IClass testClass, ITestNGMethod currentTestMethod, ITestNGMethod[] allMethods, XmlSuite suite, Map<String, String> params, Object[] parameterValues, Object instance, ITestResult testMethodResult) protected
ExpectedExceptionsHolder
(IAnnotationFinder finder, ITestNGMethod method, IExpectedExceptionsHolder holder) private
GroupConfigMethodArguments
(ITestNGMethod testMethod, ConfigurationGroupMethods groupMethods, Map<String, String> params, Object instance) InvokeMethodRunnable
(ITestNGMethod thisMethod, Object instance, Object[] parameters, IHookable hookable, ITestResult testResult) LiteWeightTestNGMethod
(ITestNGMethod iTestNGMethod) protected
MethodArguments
(Object instance, ITestNGMethod tm, Map<String, String> params, Object[] parameterValues) MethodInstance
(ITestNGMethod method) RegexpExpectedExceptionsHolder
(IAnnotationFinder finder, ITestNGMethod method) private
TestMethodArguments
(Object instance, ITestNGMethod tm, Object[] parameterValues, int parametersIndex, Map<String, String> params, ITestClass testClass, ITestNGMethod[] beforeMethods, ITestNGMethod[] afterMethods, ConfigurationGroupMethods groupMethods) TestMethodWithDataProviderMethodWorker
(ITestInvoker testInvoker, ITestNGMethod testMethod, int parameterIndex, Object[] parameterValues, Object instance, Map<String, String> parameters, ITestClass testClass, ITestNGMethod[] beforeMethods, ITestNGMethod[] afterMethods, ConfigurationGroupMethods groupMethods, ITestContext testContext, boolean skipFailedInvocationCounts, int invocationCount, int failureCount, ITestResultNotifier notifier) WrappedTestNGMethod
(ITestNGMethod testNGMethod) Constructor parameters in org.testng.internal with type arguments of type ITestNGMethodModifierConstructorDescriptionConfigurationGroupMethods
(IContainer<ITestNGMethod> container, Map<String, List<ITestNGMethod>> beforeGroupsMethods, Map<String, List<ITestNGMethod>> afterGroupsMethods) ConfigurationGroupMethods
(IContainer<ITestNGMethod> container, Map<String, List<ITestNGMethod>> beforeGroupsMethods, Map<String, List<ITestNGMethod>> afterGroupsMethods) TestNGMethodFinder
(RunInfo runInfo, IAnnotationFinder annotationFinder, Comparator<ITestNGMethod> comparator) -
Uses of ITestNGMethod in org.testng.internal.annotations
Methods in org.testng.internal.annotations that return ITestNGMethodModifier and TypeMethodDescriptionstatic ITestNGMethod[]
AnnotationHelper.findMethodsWithAnnotation
(Class<?> rootClass, Class<? extends IAnnotation> annotationClass, IAnnotationFinder annotationFinder, XmlTest xmlTest) Methods in org.testng.internal.annotations with parameters of type ITestNGMethodModifier and TypeMethodDescription<A extends IAnnotation>
AIAnnotationFinder.findAnnotation
(ITestNGMethod m, Class<A> annotationClass) <A extends IAnnotation>
AJDK15AnnotationFinder.findAnnotation
(ITestNGMethod tm, Class<A> annotationClass) static ITestAnnotation
AnnotationHelper.findTest
(IAnnotationFinder finder, ITestNGMethod m) -
Uses of ITestNGMethod in org.testng.internal.thread
Method parameters in org.testng.internal.thread with type arguments of type ITestNGMethodModifier and TypeMethodDescriptionDefaultThreadPoolExecutorFactory.newTestMethodExecutor
(String name, IDynamicGraph<ITestNGMethod> graph, IThreadWorkerFactory<ITestNGMethod> factory, int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue, Comparator<ITestNGMethod> comparator) DefaultThreadPoolExecutorFactory.newTestMethodExecutor
(String name, IDynamicGraph<ITestNGMethod> graph, IThreadWorkerFactory<ITestNGMethod> factory, int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue, Comparator<ITestNGMethod> comparator) DefaultThreadPoolExecutorFactory.newTestMethodExecutor
(String name, IDynamicGraph<ITestNGMethod> graph, IThreadWorkerFactory<ITestNGMethod> factory, int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue, Comparator<ITestNGMethod> comparator) -
Uses of ITestNGMethod in org.testng.junit
Classes in org.testng.junit that implement ITestNGMethodModifier and TypeClassDescriptionclass
class
class
Fields in org.testng.junit declared as ITestNGMethodModifier and TypeFieldDescriptionprivate static final ITestNGMethod[]
JUnitTestClass.EMPTY_METHODARRAY
Fields in org.testng.junit with type parameters of type ITestNGMethodModifier and TypeFieldDescriptionprivate List<ITestNGMethod>
JUnitTestClass.m_afterClass
private List<ITestNGMethod>
JUnitTestClass.m_afterTest
private List<ITestNGMethod>
JUnitTestClass.m_beforeClass
private List<ITestNGMethod>
JUnitTestClass.m_beforeTest
private List<ITestNGMethod>
JUnit4TestRunner.m_methods
private List<ITestNGMethod>
JUnitTestRunner.m_methods
private List<ITestNGMethod>
JUnitTestClass.m_testMethods
Methods in org.testng.junit that return ITestNGMethodModifier and TypeMethodDescriptionJUnitTestMethod.clone()
JUnitMethodFinder.getAfterClassMethods
(Class cls) JUnitTestClass.getAfterClassMethods()
JUnitMethodFinder.getAfterGroupsConfigurationMethods
(Class testClass) JUnitTestClass.getAfterGroupsMethods()
JUnitMethodFinder.getAfterSuiteMethods
(Class cls) JUnitTestClass.getAfterSuiteMethods()
JUnitMethodFinder.getAfterTestConfigurationMethods
(Class testClass) JUnitTestClass.getAfterTestConfigurationMethods()
JUnitMethodFinder.getAfterTestMethods
(Class cls) JUnitTestClass.getAfterTestMethods()
JUnitMethodFinder.getBeforeClassMethods
(Class cls) JUnitTestClass.getBeforeClassMethods()
JUnitMethodFinder.getBeforeGroupsConfigurationMethods
(Class testClass) JUnitTestClass.getBeforeGroupsMethods()
JUnitMethodFinder.getBeforeSuiteMethods
(Class cls) JUnitTestClass.getBeforeSuiteMethods()
JUnitMethodFinder.getBeforeTestConfigurationMethods
(Class testClass) JUnitTestClass.getBeforeTestConfigurationMethods()
JUnitMethodFinder.getBeforeTestMethods
(Class cls) JUnitTestClass.getBeforeTestMethods()
JUnitMethodFinder.getTestMethods
(Class cls, XmlTest xmlTest) JUnitTestClass.getTestMethods()
private ITestNGMethod[]
JUnitMethodFinder.privateFindTestMethods
(INameFilter filter, Class cls) Methods in org.testng.junit that return types with arguments of type ITestNGMethodModifier and TypeMethodDescription(package private) List<ITestNGMethod>
JUnitTestClass.getTestMethodList()
IJUnitTestRunner.getTestMethods()
JUnit4TestRunner.getTestMethods()
Needed from TestRunner in order to figure out what JUnit test methods were run.JUnitTestRunner.getTestMethods()
Needed from TestRunner in order to figure out what JUnit test methods were run. -
Uses of ITestNGMethod in org.testng.reporters
Methods in org.testng.reporters that return ITestNGMethodModifier and TypeMethodDescriptionprivate ITestNGMethod[]
VerboseReporter.resultsToMethods
(Collection<ITestResult> results) Methods in org.testng.reporters that return types with arguments of type ITestNGMethodModifier and TypeMethodDescriptionprivate 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 Set<ITestNGMethod>
XMLReporter.getUniqueMethodSet
(Collection<ITestNGMethod> methods) private static List<ITestNGMethod>
TextReporter.resultsToMethods
(Collection<ITestResult> results) Methods in org.testng.reporters with parameters of type ITestNGMethodModifier and TypeMethodDescriptionprivate static int
TestHTMLReporter.ConfigurationComparator.annotationValue
(ITestNGMethod method) private String
SuiteHTMLReporter.createColor
(ITestNGMethod tm) Generate a HTML color based on the class of the methodprivate JUnitReportReporter.TestTag
JUnitReportReporter.createIgnoredTestTagFor
(ITestNGMethod method) private String
SuiteHTMLReporter.dumpMethods
(ITestNGMethod[] testMethods) FailedReporter.findMethodLocalParameters
(XmlTest srcXmlTest, ITestNGMethod method) Get local parameters of one include method from origin test xml.private String
VerboseReporter.getMethodDeclaration
(ITestNGMethod method, ITestResult tr) private Properties
JUnitXMLReporter.getPropertiesFor
(ITestNGMethod method, long elapsedTimeMillis) private String
EmailableReporter.qualifiedName
(ITestNGMethod method) Method parameters in org.testng.reporters with type arguments of type ITestNGMethodModifier and TypeMethodDescriptionprivate void
JUnitReportReporter.addMapping
(SetMultiMap<Class<?>, ITestNGMethod> mapping, Collection<ITestNGMethod> methods) private void
JUnitReportReporter.addMapping
(SetMultiMap<Class<?>, ITestNGMethod> mapping, Collection<ITestNGMethod> methods) FailedReporter.createXmlClasses
(List<ITestNGMethod> methods, XmlTest srcXmlTest) private void
FailedReporter.createXmlTest
(ITestContext context, List<ITestNGMethod> methods, XmlTest srcXmlTest) Generate testng-failed.xmlprivate static void
FailedReporter.getAllApplicableConfigs
(Set<ITestNGMethod> configs, ITestClass iTestClass) private static int
JUnitReportReporter.getDisabledTestCount
(Set<ITestNGMethod> methods) private Set<ITestNGMethod>
XMLReporter.getUniqueMethodSet
(Collection<ITestNGMethod> methods) -
Uses of ITestNGMethod in org.testng.reporters.util
Methods in org.testng.reporters.util with parameters of type ITestNGMethodModifier and TypeMethodDescriptionstatic StackTraceElement[]
StackTraceTools.getTestNGInstrastructure
(StackTraceElement[] stack, ITestNGMethod method) static int
StackTraceTools.getTestRoot
(StackTraceElement[] stack, ITestNGMethod method) -
Uses of ITestNGMethod in org.testng.thread
Method parameters in org.testng.thread with type arguments of type ITestNGMethodModifier and TypeMethodDescriptionIExecutorFactory.newTestMethodExecutor
(String name, IDynamicGraph<ITestNGMethod> graph, IThreadWorkerFactory<ITestNGMethod> factory, int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue, Comparator<ITestNGMethod> comparator) IExecutorFactory.newTestMethodExecutor
(String name, IDynamicGraph<ITestNGMethod> graph, IThreadWorkerFactory<ITestNGMethod> factory, int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue, Comparator<ITestNGMethod> comparator) IExecutorFactory.newTestMethodExecutor
(String name, IDynamicGraph<ITestNGMethod> graph, IThreadWorkerFactory<ITestNGMethod> factory, int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue, Comparator<ITestNGMethod> comparator)