Uses of Interface
org.testng.ITestNGMethod
-
Packages that use ITestNGMethod Package Description org.testng org.testng.internal org.testng.internal.annotations org.testng.internal.thread org.testng.junit org.testng.reporters org.testng.reporters.util org.testng.thread -
-
Uses of ITestNGMethod in org.testng
Fields in org.testng declared as ITestNGMethod Modifier and Type Field Description private ITestNGMethod[]TestRunner. m_afterSuiteMethodsprivate ITestNGMethod[]TestRunner. m_afterXmlTestMethodsprivate ITestNGMethod[]TestRunner. m_allTestMethodsAll the test methods we found, associated with their respective classes.private ITestNGMethod[]TestRunner. m_beforeSuiteMethodsprivate ITestNGMethod[]TestRunner. m_beforeXmlTestMethodsFields in org.testng with type parameters of type ITestNGMethod Modifier and Type Field Description private java.util.List<ITestNGMethod>SuiteRunner. allTestMethodsprivate java.util.Map<java.lang.Object,java.util.Collection<ITestNGMethod>>ClassMethodMap. classMapprivate java.util.Comparator<ITestNGMethod>SuiteRunner.DefaultTestRunnerFactory. comparatorprivate java.util.Comparator<ITestNGMethod>TestRunner. comparatorprivate java.util.Collection<ITestNGMethod>TestListenerAdapter. m_allTestMethodsprivate ListMultiMap<java.lang.String,ITestNGMethod>DependencyMap. m_dependenciesprivate java.util.List<ITestNGMethod>TestRunner. m_excludedMethodsprivate ListMultiMap<java.lang.String,ITestNGMethod>DependencyMap. m_groupsMethods in org.testng that return ITestNGMethod Modifier and Type Method Description ITestNGMethodITestNGMethod. clone()static ITestNGMethodTestNGUtils. 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[]ITestClass. getAfterSuiteMethods()Returns all the methods that should be invoked after the suite has run.ITestNGMethod[]ITestMethodFinder. getAfterSuiteMethods(java.lang.Class<?> cls)ITestNGMethod[]TestRunner. getAfterSuiteMethods()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[]TestRunner. getAfterTestConfigurationMethods()ITestNGMethod[]ITestClass. getAfterTestMethods()Returns all the methods that should be invoked after a test method completes.ITestNGMethod[]ITestMethodFinder. getAfterTestMethods(java.lang.Class<?> cls)ITestNGMethod[]ITestContext. getAllTestMethods()protected ITestNGMethod[]TestListenerAdapter. getAllTestMethods()ITestNGMethod[]TestRunner. 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[]ITestClass. getBeforeSuiteMethods()Returns All the methods that should be invoked before the suite is run.ITestNGMethod[]ITestMethodFinder. getBeforeSuiteMethods(java.lang.Class<?> cls)ITestNGMethod[]TestRunner. getBeforeSuiteMethods()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[]TestRunner. getBeforeTestConfigurationMethods()ITestNGMethod[]ITestClass. getBeforeTestMethods()Returns all the methods that should be invoked before a test method is invoked.ITestNGMethod[]ITestMethodFinder. getBeforeTestMethods(java.lang.Class<?> cls)ITestNGMethodIMethodInstance. getMethod()ITestNGMethodITestResult. getMethod()ITestNGMethodDependencyMap. getMethodDependingOn(java.lang.String methodName, ITestNGMethod fromMethod)ITestNGMethodIInvokedMethod. 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.Methods in org.testng that return types with arguments of type ITestNGMethod Modifier and Type Method Description 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.Collection<ITestNGMethod>IResultMap. getAllMethods()java.util.List<ITestNGMethod>ISuite. getAllMethods()java.util.List<ITestNGMethod>SuiteRunner. getAllMethods()java.util.Collection<ITestNGMethod>ISuite. getExcludedMethods()java.util.Collection<ITestNGMethod>ITestContext. getExcludedMethods()java.util.Collection<ITestNGMethod>SuiteRunner. getExcludedMethods()java.util.Collection<ITestNGMethod>TestRunner. getExcludedMethods()private java.util.Collection<ITestNGMethod>SuiteRunner. getIncludedOrExcludedMethods(boolean included)java.util.List<ITestNGMethod>TestRunner. getInvokedMethods()java.util.Map<java.lang.String,java.util.Collection<ITestNGMethod>>ISuite. getMethodsByGroups()Retrieves the map of groups and their associated test methods.java.util.Map<java.lang.String,java.util.Collection<ITestNGMethod>>SuiteRunner. getMethodsByGroups()java.util.List<ITestNGMethod>DependencyMap. getMethodsThatBelongTo(java.lang.String group, ITestNGMethod fromMethod)default java.util.List<ITestNGMethod>ITestResult. getSkipCausedBy()private static java.util.Comparator<ITestNGMethod>TestRunner. newComparator(boolean needPrioritySort)Methods in org.testng with parameters of type ITestNGMethod Modifier and Type Method Description voidTestRunner. addFailedButWithinSuccessPercentageTest(ITestNGMethod testMethod, ITestResult result)voidTestRunner. addFailedTest(ITestNGMethod testMethod, ITestResult result)voidTestRunner. addPassedTest(ITestNGMethod tm, ITestResult tr)voidIResultMap. addResult(ITestResult result, ITestNGMethod method)voidTestRunner. addSkippedTest(ITestNGMethod tm, ITestResult tr)default voidIDataProviderListener. afterDataProviderExecution(IDataProviderMethod dataProviderMethod, ITestNGMethod method, ITestContext iTestContext)This method gets invoked just after a data provider is invoked.default voidIConfigurationListener. beforeConfiguration(ITestResult tr, ITestNGMethod tm)Invoked before a configuration method is invoked.default voidIDataProviderListener. beforeDataProviderExecution(IDataProviderMethod dataProviderMethod, ITestNGMethod method, ITestContext iTestContext)This method gets invoked just before a data provider is invoked.private static booleanDependencyMap. belongToDifferentClassHierarchy(ITestNGMethod baseClassMethod, ITestNGMethod derivedClassMethod)private static java.lang.StringDependencyMap. constructMethodNameUsingTestClass(java.lang.String currentMethodName, ITestNGMethod m)static ITestNGMethodTestNGUtils. 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).java.util.Set<ITestResult>TestRunner. getFailedTests(ITestNGMethod tm)ITestNGMethodDependencyMap. 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)private static booleanDependencyMap. hasInstance(ITestNGMethod baseClassMethod, ITestNGMethod derivedClassMethod)booleanIMethodSelector. includeMethod(IMethodSelectorContext context, ITestNGMethod method, boolean isTestMethod)java.util.Iterator<java.lang.Object[]>IDataProviderInterceptor. intercept(java.util.Iterator<java.lang.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 voidTestRunner. invokeTestConfigurations(ITestNGMethod[] testConfigurationMethods)private static booleanDependencyMap. isSameInstance(ITestNGMethod baseClassMethod, ITestNGMethod derivedClassMethod)private voidTestRunner. logFailedTest(ITestNGMethod method, ITestResult tr, boolean withinSuccessPercentage)default voidIConfigurationListener. onConfigurationFailure(ITestResult tr, ITestNGMethod tm)Invoked whenever a configuration method failed.default voidIConfigurationListener. onConfigurationSkip(ITestResult tr, ITestNGMethod tm)Invoked whenever a configuration method was skipped.default voidIConfigurationListener. onConfigurationSuccess(ITestResult tr, ITestNGMethod tm)Invoked whenever a configuration method succeeded.booleanClassMethodMap. removeAndCheckIfLast(ITestNGMethod m, java.lang.Object instance)Remove the method from this map.voidIResultMap. removeResult(ITestNGMethod m)private booleanTestRunner. sortOnPriority(ITestNGMethod[] interceptedOrder)Method parameters in org.testng with type arguments of type ITestNGMethod Modifier and Type Method Description private ITestRunnerFactorySuiteRunner. buildRunnerFactory(java.util.Comparator<ITestNGMethod> comparator)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 voidSuiteRunner. init(IConfiguration configuration, XmlSuite suite, java.lang.String outputDir, ITestRunnerFactory runnerFactory, boolean useDefaultListeners, java.util.List<IMethodInterceptor> methodInterceptors, java.util.Collection<IInvokedMethodListener> invokedMethodListener, java.util.Collection<ITestListener> testListeners, java.util.Collection<IClassListener> classListeners, DataProviderHolder attribs, java.util.Comparator<ITestNGMethod> comparator)private voidTestRunner. runJUnitWorkers(java.util.List<? extends IWorker<ITestNGMethod>> workers)voidTestListenerAdapter. setAllTestMethods(java.util.List<ITestNGMethod> allTestMethods)voidIMethodSelector. 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.Constructors in org.testng with parameters of type ITestNGMethod Constructor Description DependencyMap(ITestNGMethod[] methods)Constructor parameters in org.testng with type arguments of type ITestNGMethod Constructor Description ClassMethodMap(java.util.List<ITestNGMethod> methods, XmlMethodSelector xmlMethodSelector)DefaultTestRunnerFactory(IConfiguration configuration, ITestListener[] failureListeners, boolean useDefaultListeners, boolean skipFailedInvocationCounts, java.util.Comparator<ITestNGMethod> comparator)SuiteRunner(IConfiguration configuration, XmlSuite suite, java.lang.String outputDir, ITestRunnerFactory runnerFactory, boolean useDefaultListeners, java.util.Comparator<ITestNGMethod> comparator)SuiteRunner(IConfiguration configuration, XmlSuite suite, java.lang.String outputDir, ITestRunnerFactory runnerFactory, boolean useDefaultListeners, java.util.List<IMethodInterceptor> methodInterceptors, java.util.Collection<IInvokedMethodListener> invokedMethodListeners, java.util.Collection<ITestListener> testListeners, java.util.Collection<IClassListener> classListeners, DataProviderHolder holder, java.util.Comparator<ITestNGMethod> comparator)SuiteRunner(IConfiguration configuration, XmlSuite suite, java.lang.String outputDir, ITestRunnerFactory runnerFactory, java.util.Comparator<ITestNGMethod> comparator)TestRunner(IConfiguration configuration, ISuite suite, XmlTest test, boolean skipFailedInvocationCounts, java.util.Collection<IInvokedMethodListener> invokedMethodListeners, java.util.List<IClassListener> classListeners, java.util.Comparator<ITestNGMethod> comparator)TestRunner(IConfiguration configuration, ISuite suite, XmlTest test, java.lang.String outputDirectory, IAnnotationFinder finder, boolean skipFailedInvocationCounts, java.util.Collection<IInvokedMethodListener> invokedMethodListeners, java.util.List<IClassListener> classListeners, java.util.Comparator<ITestNGMethod> comparator, DataProviderHolder otherHolder) -
Uses of ITestNGMethod in org.testng.internal
Classes in org.testng.internal that implement ITestNGMethod Modifier and Type Class Description classBaseTestMethodSuperclass to represent both @Test and @Configuration methods.classClonedMethodclassConfigurationMethodclassFactoryMethodThis class represents a method annotated with @FactoryclassTestNGMethodThis class represents a test method.classWrappedTestNGMethodRepresents a proxy for an actual instance ofITestNGMethodbut with the exception that it generates a unique hashcode that is different from the originalITestNGMethodinstance that it wraps.Fields in org.testng.internal declared as ITestNGMethod Modifier and Type Field Description private ITestNGMethod[]TestMethodArguments. afterMethodsprivate ITestNGMethod[]TestMethodArguments.Builder. afterMethodsprivate ITestNGMethod[]ConfigMethodArguments. allMethodsprivate ITestNGMethod[]ConfigMethodArguments.Builder. allMethodsprivate ITestNGMethod[]TestMethodArguments. beforeMethodsprivate ITestNGMethod[]TestMethodArguments.Builder. beforeMethodsprivate ITestNGMethodConfigMethodArguments.Builder. currentTestMethodprotected ITestNGMethod[]NoOpTestClass. m_afterClassMethodsprotected ITestNGMethod[]NoOpTestClass. m_afterGroupsMethodsprivate ITestNGMethod[]TestMethodWithDataProviderMethodWorker. m_afterMethodsprotected ITestNGMethod[]NoOpTestClass. m_afterSuiteMethodsprotected ITestNGMethod[]NoOpTestClass. m_afterTestConfMethodsprotected ITestNGMethod[]NoOpTestClass. m_afterTestMethodsprivate ITestNGMethod[]ConfigurationGroupMethods. m_allMethodsThe list of all test methodsprotected ITestNGMethod[]NoOpTestClass. m_beforeClassMethodsprotected ITestNGMethod[]NoOpTestClass. m_beforeGroupsMethodsprivate ITestNGMethod[]TestMethodWithDataProviderMethodWorker. m_beforeMethodsprotected ITestNGMethod[]NoOpTestClass. m_beforeSuiteMethodsprotected ITestNGMethod[]NoOpTestClass. m_beforeTestConfMethodsprotected ITestNGMethod[]NoOpTestClass. m_beforeTestMethodsprivate ITestNGMethodClonedMethod. m_methodprivate ITestNGMethodInvokeMethodRunnable. m_methodprivate ITestNGMethodMethodInstance. m_methodprivate ITestNGMethodTestResult. m_methodprivate ITestNGMethodInvokedMethod. m_testMethodprivate ITestNGMethodTestMethodWithDataProviderMethodWorker. m_testMethodprotected ITestNGMethod[]NoOpTestClass. m_testMethodsprotected ITestNGMethodExpectedExceptionsHolder. methodprivate ITestNGMethodRegexpExpectedExceptionsHolder. methodprivate ITestNGMethodGroupConfigMethodArguments.Builder. testMethodprivate ITestNGMethodWrappedTestNGMethod. testNGMethodprotected ITestNGMethodArguments. tmprivate ITestNGMethodTestMethodArguments.Builder. tmFields in org.testng.internal with type parameters of type ITestNGMethod Modifier and Type Field Description (package private) static java.util.function.BiPredicate<ITestNGMethod,IClass>Invoker. CAN_RUN_FROM_CLASSPredicate to filter methodsprivate java.util.Comparator<ITestNGMethod>TestNGMethodFinder. comparatorprivate static java.util.Comparator<ITestNGMethod>MethodInheritance. COMPARATORA Custom comparator that helps inITestNGMethodordering keeping in mind the class hierarchy.private static java.util.Map<ITestNGMethod[],Graph<ITestNGMethod>>MethodHelper. GRAPH_CACHEprivate java.util.Map<java.lang.String,java.util.List<ITestNGMethod>>ConfigurationGroupMethods. m_afterGroupsMapA map that returns the last method belonging to the given groupprivate java.util.Map<java.lang.String,java.util.List<ITestNGMethod>>ConfigurationGroupMethods. m_afterGroupsMethodsThe list of afterGroups methods keyed by the name of the groupprivate java.util.Map<java.lang.String,java.util.List<ITestNGMethod>>ConfigurationGroupMethods. m_beforeGroupsMethodsThe list of beforeGroups methods keyed by the name of the groupprivate java.util.Set<ITestNGMethod>ConfigInvoker. m_executedConfigMethodsprivate java.util.Map<ITestResult,ITestNGMethod>ResultMap. m_mapprotected java.util.Map<ITestNGMethod,java.util.Set<java.lang.Object>>ConfigInvoker. m_methodInvocationResultsTest methods whose configuration methods have failed.private java.util.List<ITestNGMethod>XmlMethodSelector. m_testMethodsprivate java.util.List<ITestNGMethod>MethodHelper.MatchResults. matchedMethodsprivate java.util.List<ITestNGMethod>AbstractParallelWorker.Arguments. methodsprivate static java.util.Comparator<ITestNGMethod>TestNGMethodFinder. NO_COMPARISON(package private) static java.util.function.BiPredicate<ITestNGMethod,IClass>Invoker. SAME_CLASSPredicate to filter methodsprivate java.util.List<ITestNGMethod>TestResult. skippedDueToMethods in org.testng.internal that return ITestNGMethod Modifier and Type Method Description abstract ITestNGMethodBaseTestMethod. clone()ITestNGMethodFactoryMethod. clone()private static ITestNGMethod[]TestNGMethod. clone(ITestNGMethod[] sources)ITestNGMethodWrappedTestNGMethod. clone()static ITestNGMethod[]MethodHelper. collectAndOrderMethods(java.util.List<ITestNGMethod> methods, boolean forTests, RunInfo runInfo, IAnnotationFinder finder, boolean unique, java.util.List<ITestNGMethod> outExcludedMethods, java.util.Comparator<ITestNGMethod> comparator)Collects and orders test or configuration methodsstatic 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.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)(package private) static ITestNGMethod[]TestNgMethodUtils. filterAfterTestMethods(ITestClass testClass, java.util.function.BiPredicate<ITestNGMethod,IClass> predicate)(package private) static ITestNGMethod[]TestNgMethodUtils. filterBeforeTestMethods(ITestClass testClass, java.util.function.BiPredicate<ITestNGMethod,IClass> predicate)(package private) static ITestNGMethod[]TestNgMethodUtils. filterMethods(IClass testClass, ITestNGMethod[] methods, java.util.function.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(java.lang.Class clazz, TestNGMethodFinder.MethodType configurationType)protected static ITestNGMethod[]MethodHelper. findDependedUponMethods(ITestNGMethod m, java.util.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 ITestNGMethodMethodGroupsHelper. 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 methodITestNGMethod[]NoOpTestClass. getAfterClassMethods()ITestNGMethod[]TestNGMethodFinder. getAfterClassMethods(java.lang.Class cls)ITestNGMethod[]TestNGMethodFinder. getAfterGroupsConfigurationMethods(java.lang.Class clazz)ITestNGMethod[]NoOpTestClass. getAfterGroupsMethods()ITestNGMethod[]TestMethodArguments. getAfterMethods()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[]ConfigurationGroupMethods. getAllTestMethods()ITestNGMethod[]NoOpTestClass. getBeforeClassMethods()ITestNGMethod[]TestNGMethodFinder. getBeforeClassMethods(java.lang.Class cls)ITestNGMethod[]TestNGMethodFinder. getBeforeGroupsConfigurationMethods(java.lang.Class clazz)ITestNGMethod[]NoOpTestClass. getBeforeGroupsMethods()ITestNGMethod[]TestMethodArguments. getBeforeMethods()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[]ConfigMethodArguments. getConfigMethods()ITestNGMethodMethodInstance. getMethod()ITestNGMethodTestResult. getMethod()ITestNGMethodArguments. getTestMethod()ITestNGMethodInvokedMethod. getTestMethod()ITestNGMethod[]NoOpTestClass. getTestMethods()ITestNGMethod[]TestNGMethodFinder. getTestMethods(java.lang.Class<?> clazz, XmlTest xmlTest)Methods in org.testng.internal that return types with arguments of type ITestNGMethod Modifier and Type Method Description private 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 java.util.List<IWorker<ITestNGMethod>>AbstractParallelWorker. createWorkers(AbstractParallelWorker.Arguments arguments)java.util.List<IWorker<ITestNGMethod>>ClassBasedParallelWorker. createWorkers(AbstractParallelWorker.Arguments arguments)java.util.List<IWorker<ITestNGMethod>>InstanceBasedParallelParallelWorker. createWorkers(AbstractParallelWorker.Arguments arguments)static java.util.Map<java.lang.String,java.util.List<ITestNGMethod>>MethodGroupsHelper. findGroupsMethods(java.util.Collection<ITestClass> classes, boolean before)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 methodClassjava.util.List<ITestNGMethod>ConfigurationGroupMethods. getAfterGroupMethodsForGroup(java.lang.String group)java.util.Map<java.lang.String,java.util.List<ITestNGMethod>>ConfigurationGroupMethods. getAfterGroupsMethods()java.util.Collection<ITestNGMethod>ResultMap. getAllMethods()java.util.List<ITestNGMethod>ConfigurationGroupMethods. getBeforeGroupMethodsForGroup(java.lang.String group)java.util.Map<java.lang.String,java.util.List<ITestNGMethod>>ConfigurationGroupMethods. getBeforeGroupsMethods()static java.util.Comparator<ITestNGMethod>Systematiser. getComparator()java.util.List<ITestNGMethod>AbstractParallelWorker.Arguments. getMethods()static java.util.List<ITestNGMethod>MethodHelper. getMethodsDependedUpon(ITestNGMethod method, ITestNGMethod[] methods, java.util.Comparator<ITestNGMethod> comparator)java.util.List<ITestNGMethod>TestResult. getSkipCausedBy()java.util.List<ITestNGMethod>TestMethodWorker. getTasks()private java.util.Map<java.lang.String,java.util.List<ITestNGMethod>>ConfigurationGroupMethods. initializeAfterGroupsMap()static java.util.List<ITestNGMethod>MethodHelper. invokedMethodsToMethods(java.util.Collection<IInvokedMethod> invokedMethods)static java.util.List<ITestNGMethod>MethodHelper. methodInstancesToMethods(java.util.List<IMethodInstance> methodInstances)private static java.util.List<ITestNGMethod>ConfigurationGroupMethods. retrieve(java.util.Set<java.lang.String> tracker, java.util.Map<java.lang.String,java.util.List<ITestNGMethod>> map, java.lang.String group)private static java.util.List<ITestNGMethod>MethodHelper. sortMethods(boolean forTests, java.util.List<ITestNGMethod> allMethods, java.util.Comparator<ITestNGMethod> comparator)private static java.util.Map<java.lang.Object,java.util.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, java.util.List<ITestNGMethod> sequentialList, java.util.List<ITestNGMethod> parallelList, java.util.Comparator<ITestNGMethod> comparator)static java.util.List<ITestNGMethod>MethodHelper. uniqueMethodList(java.util.Collection<java.util.List<ITestNGMethod>> methods)Extracts the unique list ofITestNGMethods.Methods in org.testng.internal with parameters of type ITestNGMethod Modifier and Type Method Description voidITestResultNotifier. addFailedButWithinSuccessPercentageTest(ITestNGMethod tm, ITestResult tr)voidITestResultNotifier. addFailedTest(ITestNGMethod tm, ITestResult tr)voidITestResultNotifier. addPassedTest(ITestNGMethod tm, ITestResult tr)voidResultMap. addResult(ITestResult result, ITestNGMethod method)voidITestResultNotifier. addSkippedTest(ITestNGMethod tm, ITestResult tr)static java.lang.StringUtils. annotationFormFor(ITestNGMethod method)Given a TestNG method, returns the corresponding annotation based on the method typeprotected static java.lang.StringMethodHelper. calculateMethodCanonicalName(ITestNGMethod m)protected static longMethodHelper. calculateTimeOut(ITestNGMethod tm)(package private) static booleanTestNgMethodUtils. cannotRunMethodIndependently(ITestNGMethod tm)private java.lang.StringTestInvoker. checkDependencies(ITestNGMethod testMethod, ITestNGMethod[] allTestMethods)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 voidMethodGroupsHelper. 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.private voidTestInvoker. collectResults(ITestNGMethod testMethod, ITestResult result)intTestMethodComparator. compare(ITestNGMethod o1, ITestNGMethod o2)static intTestMethodComparator. compareStatic(ITestNGMethod o1, ITestNGMethod o2)private static java.lang.ObjectConfigInvoker. computeInstance(java.lang.Object instance, java.lang.Object inst, ITestNGMethod tm)private TestInvoker.StatusHolderTestInvoker. considerExceptions(ITestNGMethod tm, ITestResult testresult, ExpectedExceptionsHolder exceptionsHolder, ITestInvoker.FailureContext failure)private static booleanTestNgMethodUtils. containsConfigurationMethod(ITestNGMethod method, java.util.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, 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 ListMultiMap<ITestNGMethod,ITestNGMethod>DynamicGraphHelper. createClassDependencies(ITestNGMethod[] methods, XmlTest test)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@ConfigurationMethod.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, java.lang.Object instance)(package private) ParameterHandler.ParameterBagParameterHandler. createParameters(ITestNGMethod testMethod, java.util.Map<java.lang.String,java.lang.String> parameters, java.util.Map<java.lang.String,java.lang.String> allParameterNames, ITestContext testContext)(package private) ParameterHandler.ParameterBagParameterHandler. createParameters(ITestNGMethod testMethod, java.util.Map<java.lang.String,java.lang.String> parameters, java.util.Map<java.lang.String,java.lang.String> allParameterNames, 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 booleanMethodInheritance. dependencyExists(ITestNGMethod m1, ITestNGMethod m2, ITestNGMethod[] methods)static java.lang.StringUtils. detailedMethodName(ITestNGMethod method, boolean fqn)private static booleanTestNgMethodUtils. doesConfigMethodPassGroupFilters(ConfigurationMethod cm, ITestNGMethod tm)private static booleanTestNgMethodUtils. doesSetupMethodPassFirstTimeFilter(ConfigurationMethod cm, ITestNGMethod tm)private static booleanTestNgMethodUtils. doesTeardownMethodPassLastTimeFilter(ConfigurationMethod cm, ITestNGMethod tm)private static booleanMethodInheritance. equalsEffectiveClass(ITestNGMethod m1, ITestNGMethod m2)private booleanTestInvoker. failuresPresentInUpstreamDependency(ITestNGMethod testMethod, ITestNGMethod[] methods)(package private) static ITestNGMethod[]TestNgMethodUtils. filterMethods(IClass testClass, ITestNGMethod[] methods, java.util.function.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, java.util.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 java.lang.Class<?>[]ExpectedExceptionsHolder. findExpectedClasses(IAnnotationFinder finder, ITestNGMethod method)private static java.lang.reflect.MethodMethodHelper. 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 methodstatic voidMethodInheritance. 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 voidMethodHelper. fixMethodsWithClass(ITestNGMethod[] methods, ITestClass testCls, java.util.List<ITestNGMethod> methodList)ConfigMethodArguments.BuilderConfigMethodArguments.Builder. forTestMethod(ITestNGMethod currentTestMethod)GroupConfigMethodArguments.BuilderGroupConfigMethodArguments.Builder. forTestMethod(ITestNGMethod testMethod)TestMethodArguments.BuilderTestMethodArguments.Builder. forTestMethod(ITestNGMethod tm)java.util.Set<ITestResult>ITestResultNotifier. getFailedTests(ITestNGMethod tm)(package private) static java.lang.ObjectTestNgMethodUtils. getMethodInvocationToken(ITestNGMethod method, java.lang.Object instance)static java.util.List<ITestNGMethod>MethodHelper. getMethodsDependedUpon(ITestNGMethod method, ITestNGMethod[] methods, java.util.Comparator<ITestNGMethod> comparator)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 voidConfigInvoker. handleConfigurationFailure(java.lang.Throwable ite, ITestNGMethod tm, ITestResult testResult, IConfigurationAnnotation annotation, ITestNGMethod currentTestMethod, java.lang.Object instance, XmlSuite suite)private voidConfigInvoker. handleConfigurationSkip(ITestNGMethod tm, ITestResult testResult, IConfigurationAnnotation annotation, ITestNGMethod currentTestMethod, java.lang.Object instance, XmlSuite suite)Marks the currentTestResultas skipped and invokes the listeners.protected voidBaseInvoker. 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_successPercentageprivate voidTestInvoker. handleInvocationResults(ITestNGMethod testMethod, ITestResult testResult, ITestInvoker.FailureContext failure, TestInvoker.StatusHolder holder, boolean wasResultUnaltered)private ParameterHandler.ParameterBagParameterHandler. 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, ITestContext testContext, java.lang.Object fedInstance)static ParameterHolderParameters. 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, DataProviderHolder holder)If the method has parameters, fill them in.static ParameterHolderParameters. 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, DataProviderHolder holder, java.lang.String annotationName)If the method has parameters, fill them in.private booleanConfigInvoker. hasConfigFailure(ITestNGMethod currentTestMethod)booleanConfigInvoker. hasConfigurationFailureFor(ITestNGMethod testNGMethod, java.lang.String[] groups, IClass testClass, java.lang.Object instance)booleanIConfigInvoker. hasConfigurationFailureFor(ITestNGMethod testNGMethod, java.lang.String[] groups, IClass testClass, java.lang.Object instance)private static booleanMethodGroupsHelper. includeMethod(ITestOrConfiguration annotation, RunInfo runInfo, ITestNGMethod tm, boolean forTests, boolean unique, java.util.List<ITestNGMethod> outIncludedMethods)booleanRunInfo. includeMethod(ITestNGMethod tm, boolean isTestMethod)booleanXmlMethodSelector. includeMethod(IMethodSelectorContext context, ITestNGMethod tm, boolean isTestMethod)(package private) booleanScriptMethodSelector. includeMethodFromExpression(ITestNGMethod tm)private booleanXmlMethodSelector. includeMethodFromIncludeExclude(ITestNGMethod tm, boolean isTestMethod)protected intTestMethodWorker. indexOf(ITestNGMethod tm, ITestNGMethod[] allTestMethods)private voidTestResult. init(ITestNGMethod method, ITestContext ctx, java.lang.Throwable t, long start, long end)private static booleanMethodInheritance. internalDependencyExists(ITestNGMethod m1, ITestNGMethod m2, ITestNGMethod[] methods)private voidConfigInvoker. invokeConfigurationMethod(java.lang.Object targetInstance, ITestNGMethod tm, java.lang.Object[] params, ITestResult testResult)Effectively invokes a configuration method on all passed in instances.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)protected static voidMethodInvocationHelper. invokeMethodConsideringTimeout(ITestNGMethod tm, ConstructorOrMethod method, java.lang.Object targetInstance, java.lang.Object[] params, ITestResult testResult)private java.util.List<ITestResult>TestInvoker. 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.java.util.List<ITestResult>ITestInvoker. invokeTestMethods(ITestNGMethod testMethod, ConfigurationGroupMethods groupMethods, java.lang.Object instance, ITestContext context)java.util.List<ITestResult>TestInvoker. invokeTestMethods(ITestNGMethod testMethod, ConfigurationGroupMethods groupMethods, java.lang.Object instance, ITestContext context)protected voidTestMethodWorker. invokeTestMethods(ITestNGMethod tm, java.lang.Object instance)protected static voidMethodInvocationHelper. 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 voidMethodInvocationHelper. invokeWithTimeout(ITestNGMethod tm, java.lang.Object instance, java.lang.Object[] parameterValues, ITestResult testResult, IHookable hookable)private static voidMethodInvocationHelper. invokeWithTimeoutWithNewExecutor(ITestNGMethod tm, java.lang.Object instance, java.lang.Object[] parameterValues, ITestResult testResult, IHookable hookable)private static voidMethodInvocationHelper. invokeWithTimeoutWithNoExecutor(ITestNGMethod tm, java.lang.Object instance, java.lang.Object[] parameterValues, ITestResult testResult, IHookable hookable)private static booleanConfigInvoker. isConfigMethodEligibleForScrutiny(ITestNGMethod tm)(package private) static booleanTestNgMethodUtils. isConfigurationMethod(ITestNGMethod method)A helper method that checks to see if a method is a configuration method or not.private static booleanTestNgMethodUtils. isConfigurationMethod(ITestNGMethod method, boolean includeGroupConfigs)A helper method that checks to see if a method is a configuration method or not.private static booleanConfigInvoker. isGroupLevelConfigurationMethod(ITestNGMethod itm)booleanConfigurationGroupMethods. isLastMethodForGroup(java.lang.String group, ITestNGMethod method)private static booleanMethodGroupsHelper. isMethodAlreadyNotPresent(java.util.List<ITestNGMethod> result, ITestNGMethod tm)private java.util.Set<ITestResult>TestInvoker. keepSameInstances(ITestNGMethod method, java.util.Set<ITestResult> results)private static MethodHelper.MatchResultsMethodHelper. matchMethod(ITestNGMethod[] methods, java.lang.String regexp)private java.util.List<MethodInstance>ClassBasedParallelWorker. methodsToMultipleMethodInstances(ITestNGMethod... methods)static TestResultTestResult. newContextAwareTestResult(ITestNGMethod method, ITestContext ctx)static TestResultTestResult. newEndTimeAwareTestResult(ITestNGMethod method, ITestContext ctx, java.lang.Throwable t, long start)static Parameters.MethodParametersParameters.MethodParameters. newInstance(java.util.Map<java.lang.String,java.lang.String> params, ITestNGMethod testNGMethod, ITestContext context)static TestResultTestResult. newTestResultFor(ITestNGMethod method)static TestResultTestResult. newTestResultFrom(TestResult result, ITestNGMethod method, ITestContext ctx, long start)static TestResultTestResult. newTestResultWithCauseAs(ITestNGMethod method, ITestContext ctx, java.lang.Throwable t)TestExceptionExpectedExceptionsHolder. noException(ITestNGMethod testMethod)private voidConfigInvoker. 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.ITestResultITestInvoker. registerSkippedTestResult(ITestNGMethod testMethod, long start, java.lang.Throwable throwable)ITestResultTestInvoker. registerSkippedTestResult(ITestNGMethod testMethod, long start, java.lang.Throwable throwable)voidResultMap. removeResult(ITestNGMethod m)private voidTestInvoker. runConfigMethods(TestMethodArguments arguments, XmlSuite suite, TestResult testResult, ITestNGMethod[] teardownConfigMethods)private voidConfigInvoker. runConfigurationListeners(ITestResult tr, ITestNGMethod tm, boolean before)(package private) static voidTestListenerHelper. runPostConfigurationListeners(ITestResult tr, ITestNGMethod tm, java.util.List<IConfigurationListener> listeners)(package private) static voidTestListenerHelper. runPreConfigurationListeners(ITestResult tr, ITestNGMethod tm, java.util.List<IConfigurationListener> listeners)private java.util.List<ITestResult>TestInvoker. 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.voidNoOpTestClass. setAfterTestMethod(ITestNGMethod[] afterTestMethods)voidNoOpTestClass. setBeforeTestMethods(ITestNGMethod[] beforeTestMethods)private static voidScriptMethodSelector. setContext(javax.script.ScriptEngine engine, java.util.Map<java.lang.String,java.lang.String> groups, ITestNGMethod tm)voidTestResult. setMethod(ITestNGMethod method)private voidConfigInvoker. setMethodInvocationFailure(ITestNGMethod method, java.lang.Object instance)private static java.util.Map<java.lang.Object,java.util.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, java.util.List<ITestNGMethod> sequentialList, java.util.List<ITestNGMethod> parallelList, java.util.Comparator<ITestNGMethod> comparator)TestMethodArguments.BuilderTestMethodArguments.Builder. usingAfterMethods(ITestNGMethod[] afterMethods)TestMethodArguments.BuilderTestMethodArguments.Builder. usingBeforeMethods(ITestNGMethod[] beforeMethods)ConfigMethodArguments.BuilderConfigMethodArguments.Builder. usingConfigMethodsAs(ITestNGMethod[] allMethods)Method parameters in org.testng.internal with type arguments of type ITestNGMethod Modifier and Type Method Description private voidTestNGMethodFinder. 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, java.util.Comparator<ITestNGMethod> comparator)Collects and orders test or configuration methodsstatic ITestNGMethod[]MethodHelper. collectAndOrderMethods(java.util.List<ITestNGMethod> methods, boolean forTests, RunInfo runInfo, IAnnotationFinder finder, boolean unique, java.util.List<ITestNGMethod> outExcludedMethods, java.util.Comparator<ITestNGMethod> comparator)Collects and orders test or configuration methods(package private) static voidMethodGroupsHelper. 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.intTestMethodWorker. compareTo(IWorker<ITestNGMethod> other)private static booleanTestNgMethodUtils. containsConfigurationMethod(ITestNGMethod method, java.util.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, java.util.function.BiPredicate<ITestNGMethod,IClass> predicate)(package private) static ITestNGMethod[]TestNgMethodUtils. filterBeforeTestMethods(ITestClass testClass, java.util.function.BiPredicate<ITestNGMethod,IClass> predicate)(package private) static ITestNGMethod[]TestNgMethodUtils. filterMethods(IClass testClass, ITestNGMethod[] methods, java.util.function.BiPredicate<ITestNGMethod,IClass> predicate)protected static ITestNGMethod[]MethodHelper. findDependedUponMethods(ITestNGMethod m, java.util.List<ITestNGMethod> methods)Finds TestNG methods that the specified TestNG method depends uponprotected static voidMethodGroupsHelper. findGroupTransitiveClosure(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 methodClassprivate 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 methodClassprivate static ITestNGMethodMethodGroupsHelper. findMethodNamed(java.lang.String tm, java.util.List<ITestNGMethod> allMethods)private static java.lang.ClassMethodInheritance. 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 methodClassprivate static java.lang.ClassMethodInheritance. 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 methodClassstatic voidMethodHelper. fixMethodsWithClass(ITestNGMethod[] methods, ITestClass testCls, java.util.List<ITestNGMethod> methodList)static java.util.List<ITestNGMethod>MethodHelper. getMethodsDependedUpon(ITestNGMethod method, ITestNGMethod[] methods, java.util.Comparator<ITestNGMethod> comparator)private static booleanMethodGroupsHelper. includeMethod(ITestOrConfiguration annotation, RunInfo runInfo, ITestNGMethod tm, boolean forTests, boolean unique, java.util.List<ITestNGMethod> outIncludedMethods)private static booleanMethodGroupsHelper. isMethodAlreadyNotPresent(java.util.List<ITestNGMethod> result, ITestNGMethod tm)AbstractParallelWorker.Arguments.BuilderAbstractParallelWorker.Arguments.Builder. methods(java.util.List<ITestNGMethod> methods)static java.util.List<IMethodInstance>MethodHelper. methodsToMethodInstances(java.util.List<ITestNGMethod> sl)private static java.util.List<ITestNGMethod>ConfigurationGroupMethods. retrieve(java.util.Set<java.lang.String> tracker, java.util.Map<java.lang.String,java.util.List<ITestNGMethod>> map, java.lang.String group)private java.util.List<ITestResult>TestInvoker. 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.voidMethodSelectorDescriptor. setTestMethods(java.util.List<ITestNGMethod> testMethods)voidRunInfo. setTestMethods(java.util.List<ITestNGMethod> testMethods)voidXmlMethodSelector. setTestMethods(java.util.List<ITestNGMethod> testMethods)private static java.util.List<ITestNGMethod>MethodHelper. sortMethods(boolean forTests, java.util.List<ITestNGMethod> allMethods, java.util.Comparator<ITestNGMethod> comparator)private static java.util.List<ITestNGMethod>MethodHelper. sortMethods(boolean forTests, java.util.List<ITestNGMethod> allMethods, java.util.Comparator<ITestNGMethod> comparator)private static voidMethodInheritance. 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, java.util.Comparator<ITestNGMethod> comparator)private static Graph<ITestNGMethod>MethodHelper. topologicalSort(ITestNGMethod[] methods, java.util.List<ITestNGMethod> sequentialList, java.util.List<ITestNGMethod> parallelList, java.util.Comparator<ITestNGMethod> comparator)static java.util.List<ITestNGMethod>MethodHelper. uniqueMethodList(java.util.Collection<java.util.List<ITestNGMethod>> methods)Extracts the unique list ofITestNGMethods.ConfigMethodArguments.BuilderConfigMethodArguments.Builder. usingConfigMethodsAs(java.util.Collection<ITestNGMethod> allMethods)Constructors in org.testng.internal with parameters of type ITestNGMethod Constructor Description Arguments(java.lang.Object instance, ITestNGMethod tm, java.util.Map<java.lang.String,java.lang.String> params)ClonedMethod(ITestNGMethod method, java.lang.reflect.Method javaMethod)ConfigMethodArguments(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)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)GroupConfigMethodArguments(ITestNGMethod testMethod, ConfigurationGroupMethods groupMethods, java.util.Map<java.lang.String,java.lang.String> params, java.lang.Object instance)InvokedMethod(java.lang.Object instance, ITestNGMethod method, long date, ITestResult testResult)InvokeMethodRunnable(ITestNGMethod thisMethod, java.lang.Object instance, java.lang.Object[] parameters, IHookable hookable, ITestResult testResult)MethodArguments(java.lang.Object instance, ITestNGMethod tm, java.util.Map<java.lang.String,java.lang.String> params, java.lang.Object[] parameterValues)MethodInstance(ITestNGMethod method)RegexpExpectedExceptionsHolder(IAnnotationFinder finder, ITestNGMethod method)TestMethodArguments(java.lang.Object instance, ITestNGMethod tm, java.lang.Object[] parameterValues, int parametersIndex, java.util.Map<java.lang.String,java.lang.String> params, ITestClass testClass, ITestNGMethod[] beforeMethods, ITestNGMethod[] afterMethods, ConfigurationGroupMethods groupMethods)TestMethodWithDataProviderMethodWorker(ITestInvoker testInvoker, ITestNGMethod testMethod, int parameterIndex, java.lang.Object[] parameterValues, java.lang.Object instance, java.util.Map<java.lang.String,java.lang.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 ITestNGMethod Constructor 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)TestNGMethodFinder(RunInfo runInfo, IAnnotationFinder annotationFinder, java.util.Comparator<ITestNGMethod> comparator) -
Uses of ITestNGMethod in org.testng.internal.annotations
Methods in org.testng.internal.annotations that return ITestNGMethod Modifier and Type Method Description static ITestNGMethod[]AnnotationHelper. findMethodsWithAnnotation(java.lang.Class<?> rootClass, java.lang.Class<? extends IAnnotation> annotationClass, IAnnotationFinder annotationFinder, XmlTest xmlTest)Methods in org.testng.internal.annotations with parameters of type ITestNGMethod Modifier and Type Method Description <A extends IAnnotation>
AIAnnotationFinder. findAnnotation(ITestNGMethod m, java.lang.Class<A> annotationClass)<A extends IAnnotation>
AJDK15AnnotationFinder. findAnnotation(ITestNGMethod tm, java.lang.Class<A> annotationClass)static ITestAnnotationAnnotationHelper. 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 ITestNGMethod Modifier and Type Method Description ITestNGThreadPoolExecutorDefaultThreadPoolExecutorFactory. newTestMethodExecutor(java.lang.String name, IDynamicGraph<ITestNGMethod> graph, IThreadWorkerFactory<ITestNGMethod> factory, int corePoolSize, int maximumPoolSize, long keepAliveTime, java.util.concurrent.TimeUnit unit, java.util.concurrent.BlockingQueue<java.lang.Runnable> workQueue, java.util.Comparator<ITestNGMethod> comparator)ITestNGThreadPoolExecutorDefaultThreadPoolExecutorFactory. newTestMethodExecutor(java.lang.String name, IDynamicGraph<ITestNGMethod> graph, IThreadWorkerFactory<ITestNGMethod> factory, int corePoolSize, int maximumPoolSize, long keepAliveTime, java.util.concurrent.TimeUnit unit, java.util.concurrent.BlockingQueue<java.lang.Runnable> workQueue, java.util.Comparator<ITestNGMethod> comparator)ITestNGThreadPoolExecutorDefaultThreadPoolExecutorFactory. newTestMethodExecutor(java.lang.String name, IDynamicGraph<ITestNGMethod> graph, IThreadWorkerFactory<ITestNGMethod> factory, int corePoolSize, int maximumPoolSize, long keepAliveTime, java.util.concurrent.TimeUnit unit, java.util.concurrent.BlockingQueue<java.lang.Runnable> workQueue, java.util.Comparator<ITestNGMethod> comparator) -
Uses of ITestNGMethod in org.testng.junit
Classes in org.testng.junit that implement ITestNGMethod Modifier and Type Class Description classJUnit3TestMethodclassJUnit4TestMethodclassJUnitTestMethodFields in org.testng.junit declared as ITestNGMethod Modifier and Type Field Description private static ITestNGMethod[]JUnitTestClass. EMPTY_METHODARRAYFields in org.testng.junit with type parameters of type ITestNGMethod Modifier and Type Field Description private java.util.List<ITestNGMethod>JUnitTestClass. m_afterClassprivate java.util.List<ITestNGMethod>JUnitTestClass. m_afterTestprivate java.util.List<ITestNGMethod>JUnitTestClass. m_beforeClassprivate java.util.List<ITestNGMethod>JUnitTestClass. m_beforeTestprivate java.util.List<ITestNGMethod>JUnit4TestRunner. m_methodsprivate java.util.List<ITestNGMethod>JUnitTestRunner. m_methodsprivate java.util.List<ITestNGMethod>JUnitTestClass. m_testMethodsMethods in org.testng.junit that return types with arguments of type ITestNGMethod Modifier and Type Method Description (package private) java.util.List<ITestNGMethod>JUnitTestClass. getTestMethodList()java.util.List<ITestNGMethod>IJUnitTestRunner. getTestMethods()java.util.List<ITestNGMethod>JUnit4TestRunner. getTestMethods()Needed from TestRunner in order to figure out what JUnit test methods were run.java.util.List<ITestNGMethod>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 ITestNGMethod Modifier and Type Method Description private ITestNGMethod[]VerboseReporter. resultsToMethods(java.util.List<ITestResult> results)Methods in org.testng.reporters that return types with arguments of type ITestNGMethod Modifier and Type Method 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)private static java.util.List<ITestNGMethod>TextReporter. resultsToMethods(java.util.List<ITestResult> results)Methods in org.testng.reporters with parameters of type ITestNGMethod Modifier and Type Method Description private static intTestHTMLReporter.ConfigurationComparator. annotationValue(ITestNGMethod method)private java.lang.StringSuiteHTMLReporter. createColor(ITestNGMethod tm)Generate a HTML color based on the class of the methodprivate JUnitReportReporter.TestTagJUnitReportReporter. createIgnoredTestTagFor(ITestNGMethod method)private java.lang.StringSuiteHTMLReporter. 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.private java.lang.StringVerboseReporter. getMethodDeclaration(ITestNGMethod method)private java.util.PropertiesJUnitXMLReporter. getPropertiesFor(ITestNGMethod method, long elapsedTimeMillis)private java.lang.StringEmailableReporter. qualifiedName(ITestNGMethod method)Method parameters in org.testng.reporters with type arguments of type ITestNGMethod Modifier and Type Method Description private voidJUnitReportReporter. addMapping(SetMultiMap<java.lang.Class<?>,ITestNGMethod> mapping, java.util.Collection<ITestNGMethod> methods)private voidJUnitReportReporter. addMapping(SetMultiMap<java.lang.Class<?>,ITestNGMethod> mapping, java.util.Collection<ITestNGMethod> methods)private java.util.List<XmlClass>FailedReporter. createXmlClasses(java.util.List<ITestNGMethod> methods, XmlTest srcXmlTest)private voidFailedReporter. createXmlTest(ITestContext context, java.util.List<ITestNGMethod> methods, XmlTest srcXmlTest)Generate testng-failed.xmlprivate static voidFailedReporter. getAllApplicableConfigs(java.util.Set<ITestNGMethod> configs, ITestClass iTestClass)private static intJUnitReportReporter. getDisabledTestCount(java.util.Set<ITestNGMethod> methods)private java.util.Set<ITestNGMethod>XMLReporter. getUniqueMethodSet(java.util.Collection<ITestNGMethod> methods) -
Uses of ITestNGMethod in org.testng.reporters.util
Methods in org.testng.reporters.util with parameters of type ITestNGMethod Modifier and Type Method Description static java.lang.StackTraceElement[]StackTraceTools. getTestNGInstrastructure(java.lang.StackTraceElement[] stack, ITestNGMethod method)static intStackTraceTools. getTestRoot(java.lang.StackTraceElement[] stack, ITestNGMethod method) -
Uses of ITestNGMethod in org.testng.thread
Method parameters in org.testng.thread with type arguments of type ITestNGMethod Modifier and Type Method Description ITestNGThreadPoolExecutorIExecutorFactory. newTestMethodExecutor(java.lang.String name, IDynamicGraph<ITestNGMethod> graph, IThreadWorkerFactory<ITestNGMethod> factory, int corePoolSize, int maximumPoolSize, long keepAliveTime, java.util.concurrent.TimeUnit unit, java.util.concurrent.BlockingQueue<java.lang.Runnable> workQueue, java.util.Comparator<ITestNGMethod> comparator)ITestNGThreadPoolExecutorIExecutorFactory. newTestMethodExecutor(java.lang.String name, IDynamicGraph<ITestNGMethod> graph, IThreadWorkerFactory<ITestNGMethod> factory, int corePoolSize, int maximumPoolSize, long keepAliveTime, java.util.concurrent.TimeUnit unit, java.util.concurrent.BlockingQueue<java.lang.Runnable> workQueue, java.util.Comparator<ITestNGMethod> comparator)ITestNGThreadPoolExecutorIExecutorFactory. newTestMethodExecutor(java.lang.String name, IDynamicGraph<ITestNGMethod> graph, IThreadWorkerFactory<ITestNGMethod> factory, int corePoolSize, int maximumPoolSize, long keepAliveTime, java.util.concurrent.TimeUnit unit, java.util.concurrent.BlockingQueue<java.lang.Runnable> workQueue, java.util.Comparator<ITestNGMethod> comparator)
-