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_afterSuiteMethodsprivate ITestNGMethod[]TestRunner.m_afterXmlTestMethodsprivate ITestNGMethod[]TestRunner.m_allJunitTestMethodsprivate ITestNGMethod[]TestRunner.m_beforeSuiteMethodsprivate ITestNGMethod[]TestRunner.m_beforeXmlTestMethodsFields in org.testng with type parameters of type ITestNGMethodModifier and TypeFieldDescriptionprivate final IdentityHashMap<Object, List<ITestNGMethod>> TestClass.beforeClassConfigprivate final Map<Object, Collection<ITestNGMethod>> ClassMethodMap.classMapprivate final Comparator<ITestNGMethod> SuiteRunner.DefaultTestRunnerFactory.comparatorprivate final Comparator<ITestNGMethod> TestRunner.comparatorprivate Collection<ITestNGMethod> TestListenerAdapter.m_allTestMethodsprivate final ListMultiMap<String, ITestNGMethod> DependencyMap.m_dependenciesprivate final List<ITestNGMethod> TestRunner.m_excludedMethodsprivate final ListMultiMap<String, ITestNGMethod> DependencyMap.m_groupsprivate final IContainer<ITestNGMethod> TestRunner.testMethodsContainerMethods in org.testng that return ITestNGMethodModifier and TypeMethodDescriptionITestNGMethod.clone()private ITestNGMethod[]TestRunner.computeAndGetAllTestMethods()static ITestNGMethodTestNGUtils.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.default Set<ITestNGMethod> ITestNGMethod.downstreamDependencies()TestClass.getAllBeforeClassMethods()IResultMap.getAllMethods()ISuite.getAllMethods()SuiteRunner.getAllMethods()ISuite.getExcludedMethods()ITestContext.getExcludedMethods()SuiteRunner.getExcludedMethods()TestRunner.getExcludedMethods()TestClass.getInstanceBeforeClassMethods(Object 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) default Set<ITestNGMethod> ITestNGMethod.upstreamDependencies()Methods in org.testng with parameters of type ITestNGMethodModifier and TypeMethodDescriptionvoidTestRunner.addFailedButWithinSuccessPercentageTest(ITestNGMethod testMethod, ITestResult result) voidTestRunner.addFailedTest(ITestNGMethod testMethod, ITestResult result) voidTestRunner.addPassedTest(ITestNGMethod tm, ITestResult tr) 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 StringDependencyMap.constructMethodNameUsingTestClass(String currentMethodName, ITestNGMethod m) static ITestNGMethodTestNGUtils.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 booleanDependencyMap.hasInstance(ITestNGMethod baseClassMethod, ITestNGMethod derivedClassMethod) private static booleanDependencyMap.hasSameParameters(ITestNGMethod baseClassMethod, ITestNGMethod derivedClassMethod) booleanIMethodSelector.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 voidTestRunner.invokeTestConfigurations(ITestNGMethod[] testConfigurationMethods) private static booleanDependencyMap.isSameInstance(ITestNGMethod baseClassMethod, ITestNGMethod derivedClassMethod) 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.default voidIDataProviderListener.onDataProviderFailure(ITestNGMethod method, ITestContext ctx, RuntimeException t) This method gets invoked when the data provider encounters an exceptionbooleanClassMethodMap.removeAndCheckIfLast(ITestNGMethod m, 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 ITestNGMethodModifier and TypeMethodDescriptionprivate ITestRunnerFactorySuiteRunner.buildRunnerFactory(Comparator<ITestNGMethod> comparator) TestRunner.createWorkers(List<ITestNGMethod> methods) Create a list of workers to run the methods passed in parameter.private voidSuiteRunner.init(IConfiguration configuration, XmlSuite suite, String outputDir, ITestRunnerFactory runnerFactory, boolean useDefaultListeners, List<IMethodInterceptor> methodInterceptors, Collection<IInvokedMethodListener> invokedMethodListener, SuiteRunner.TestListenersContainer container, Collection<IClassListener> classListeners, DataProviderHolder attribs, Comparator<ITestNGMethod> comparator) TestRunner.methods(Stream<ITestNGMethod> methods) private voidTestRunner.runJUnitWorkers(List<? extends IWorker<ITestNGMethod>> workers) voidTestListenerAdapter.setAllTestMethods(List<ITestNGMethod> allTestMethods) voidIMethodSelector.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 suiteRunner) SuiteRunner(IConfiguration configuration, XmlSuite suite, String outputDir, ITestRunnerFactory runnerFactory, boolean useDefaultListeners, Comparator<ITestNGMethod> comparator) protectedSuiteRunner(IConfiguration configuration, XmlSuite suite, String outputDir, ITestRunnerFactory runnerFactory, boolean useDefaultListeners, List<IMethodInterceptor> methodInterceptors, Collection<IInvokedMethodListener> invokedMethodListeners, SuiteRunner.TestListenersContainer container, 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, SuiteRunner suiteRunner) protectedTestRunner(IConfiguration configuration, ISuite suite, XmlTest test, String outputDirectory, IAnnotationFinder finder, boolean skipFailedInvocationCounts, Collection<IInvokedMethodListener> invokedMethodListeners, List<IClassListener> classListeners, Comparator<ITestNGMethod> comparator, DataProviderHolder otherHolder, SuiteRunner suiteRunner) -
Uses of ITestNGMethod in org.testng.internal
Classes in org.testng.internal that implement ITestNGMethodModifier and TypeClassDescriptionclassSuperclass to represent both @Test and @Configuration methods.classclassclassThis class represents a method annotated with @FactoryclassclassThis class represents a test method.classRepresents 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 ITestNGMethodModifier and TypeFieldDescriptionprotected ITestNGMethod[]NoOpTestClass.m_afterClassMethodsprotected ITestNGMethod[]NoOpTestClass.m_afterGroupsMethodsprotected ITestNGMethod[]NoOpTestClass.m_afterSuiteMethodsprotected ITestNGMethod[]NoOpTestClass.m_afterTestConfMethodsprotected ITestNGMethod[]NoOpTestClass.m_afterTestMethodsprivate final ITestNGMethod[]ConfigurationGroupMethods.m_allMethodsThe list of all test methodsprotected ITestNGMethod[]NoOpTestClass.m_beforeClassMethodsprotected ITestNGMethod[]NoOpTestClass.m_beforeGroupsMethodsprotected ITestNGMethod[]NoOpTestClass.m_beforeSuiteMethodsprotected ITestNGMethod[]NoOpTestClass.m_beforeTestConfMethodsprotected ITestNGMethod[]NoOpTestClass.m_beforeTestMethodsprivate final ITestNGMethodClonedMethod.m_methodprivate final ITestNGMethodMethodInstance.m_methodprivate ITestNGMethodTestResult.m_methodprotected ITestNGMethod[]NoOpTestClass.m_testMethodsprivate final ITestNGMethodRegexpExpectedExceptionsHolder.methodprivate ITestNGMethod[]TestMethodContainer.methodsprivate final ITestNGMethodFilteredParameters.testMethodprivate final ITestNGMethodWrappedTestNGMethod.testNGMethodFields in org.testng.internal with type parameters of type ITestNGMethodModifier and TypeFieldDescriptionprivate final Comparator<ITestNGMethod> TestNGMethodFinder.comparatorprivate static final Comparator<ITestNGMethod> MethodInheritance.COMPARATORA Custom comparator that helps inITestNGMethodordering keeping in mind the class hierarchy.private static final Comparator<ITestNGMethod> Systematiser.COMPARE_INSTANCESprivate final Set<ITestNGMethod> BaseTestMethod.downstreamDependenciesprivate static final Map<ITestNGMethod[], Graph<ITestNGMethod>> MethodHelper.GRAPH_CACHEprivate Map<String, List<ITestNGMethod>> ConfigurationGroupMethods.m_afterGroupsMapA map that returns the last method belonging to the given groupprivate final Map<String, List<ITestNGMethod>> ConfigurationGroupMethods.m_afterGroupsMethodsThe list of afterGroups methods keyed by the name of the groupprivate final Map<String, List<ITestNGMethod>> ConfigurationGroupMethods.m_beforeGroupsMethodsThe list of beforeGroups methods keyed by the name of the groupprivate List<ITestNGMethod> XmlMethodSelector.m_testMethodsprivate final List<ITestNGMethod> MethodHelper.MatchResults.matchedMethodsprivate static final Comparator<ITestNGMethod> TestNGMethodFinder.NO_COMPARISONprivate List<ITestNGMethod> TestResult.skippedDueToprivate final Set<ITestNGMethod> BaseTestMethod.upstreamDependenciesMethods in org.testng.internal that return ITestNGMethodModifier and TypeMethodDescriptionabstract ITestNGMethodBaseTestMethod.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(ITestObjectFactory objectFactory, ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, Object instance) static ITestNGMethod[]ConfigurationMethod.createBeforeConfigurationMethods(ITestObjectFactory objectFactory, ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, Object instance) static ITestNGMethod[]ConfigurationMethod.createClassConfigurationMethods(ITestObjectFactory objectFactory, ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, XmlTest xmlTest, Object instance) private static ITestNGMethod[]ConfigurationMethod.createMethods(ITestObjectFactory objectFactory, ITestNGMethod[] methods, IAnnotationFinder finder, boolean isBeforeSuite, boolean isAfterSuite, boolean isBeforeTest, boolean isAfterTest, boolean isBeforeClass, boolean isAfterClass, boolean isBeforeMethod, boolean isAfterMethod, XmlTest xmlTest, Object instance) static ITestNGMethod[]ConfigurationMethod.createSuiteConfigurationMethods(ITestObjectFactory objectFactory, ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, Object instance) static ITestNGMethod[]ConfigurationMethod.createTestConfigurationMethods(ITestObjectFactory objectFactory, ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, XmlTest xmlTest, Object instance) static ITestNGMethod[]ConfigurationMethod.createTestMethodConfigurationMethods(ITestObjectFactory objectFactory, ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, XmlTest xmlTest, Object instance) 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 uponstatic ITestNGMethod[]MethodHelper.findDependedUponMethods(ITestNGMethod m, ITestNGMethod[] incoming) Finds TestNG methods that the specified TestNG method depends uponprivate static ITestNGMethodMethodGroupsHelper.findMethodNamed(String tm, List<ITestNGMethod> allMethods) protected static ITestNGMethod[]MethodGroupsHelper.findMethodsThatBelongToGroup(ITestNGMethod[] methods, String groupRegexp) 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()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()NoOpTestClass.getBeforeSuiteMethods()TestNGMethodFinder.getBeforeSuiteMethods(Class<?> cls) NoOpTestClass.getBeforeTestConfigurationMethods()TestNGMethodFinder.getBeforeTestConfigurationMethods(Class<?> clazz) NoOpTestClass.getBeforeTestMethods()TestNGMethodFinder.getBeforeTestMethods(Class<?> cls) TestMethodContainer.getItems()MethodInstance.getMethod()TestResult.getMethod()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) BaseTestMethod.downstreamDependencies()private static Pair<String, Predicate<ITestNGMethod>> MethodHelper.filterToUse(ITestNGMethod m) 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.getAfterGroupMethods(ITestNGMethod testMethod) ConfigurationGroupMethods.getAfterGroupsMethods()default List<ITestNGMethod> ITestClassConfigInfo.getAllBeforeClassMethods()get all before class config methodsResultMap.getAllMethods()ConfigurationGroupMethods.getBeforeGroupMethodsForGroup(String[] groups) ConfigurationGroupMethods.getBeforeGroupsMethods()static Comparator<ITestNGMethod> Systematiser.getComparator()default List<ITestNGMethod> ITestClassConfigInfo.getInstanceBeforeClassMethods(Object instance) Query the instance before class methods from config methods map.static List<ITestNGMethod> MethodHelper.getMethodsDependedUpon(ITestNGMethod method, ITestNGMethod[] methods, Comparator<ITestNGMethod> comparator) TestResult.getSkipCausedBy()private Map<String, List<ITestNGMethod>> ConfigurationGroupMethods.initializeAfterGroupsMap()static List<ITestNGMethod> MethodHelper.methodInstancesToMethods(List<IMethodInstance> methodInstances) private static List<ITestNGMethod> ConfigurationGroupMethods.retrieve(Map<String, CountDownLatch> tracker, Map<String, List<ITestNGMethod>> map, String group) 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 ofITestNGMethods.BaseTestMethod.upstreamDependencies()Methods in org.testng.internal with parameters of type ITestNGMethodModifier and TypeMethodDescriptionvoidITestResultNotifier.addFailedButWithinSuccessPercentageTest(ITestNGMethod tm, ITestResult tr) voidITestResultNotifier.addFailedTest(ITestNGMethod tm, ITestResult tr) voidITestResultNotifier.addPassedTest(ITestNGMethod tm, ITestResult tr) voidITestResultNotifier.addSkippedTest(ITestNGMethod tm, ITestResult tr) static StringUtils.annotationFormFor(ITestNGMethod method) Given a TestNG method, returns the corresponding annotation based on the method typeprotected static StringMethodHelper.calculateMethodCanonicalName(ITestNGMethod m) static longMethodHelper.calculateTimeOut(ITestNGMethod tm) private static ITestNGMethod[]TestNGMethod.clone(ITestNGMethod[] sources) (package private) static voidMethodGroupsHelper.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.intTestMethodComparator.compare(ITestNGMethod o1, ITestNGMethod o2) static intTestMethodComparator.compareStatic(ITestNGMethod o1, ITestNGMethod o2) static ITestNGMethod[]ConfigurationMethod.createAfterConfigurationMethods(ITestObjectFactory objectFactory, ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, Object instance) static ITestNGMethod[]ConfigurationMethod.createBeforeConfigurationMethods(ITestObjectFactory objectFactory, ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, Object instance) static ITestNGMethod[]ConfigurationMethod.createClassConfigurationMethods(ITestObjectFactory objectFactory, ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, XmlTest xmlTest, 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@ConfigurationMethod.static DynamicGraph<ITestNGMethod> DynamicGraphHelper.createDynamicGraph(ITestNGMethod[] methods, XmlTest xmlTest) private static ListMultiMap<ITestNGMethod, ITestNGMethod> DynamicGraphHelper.createInstanceDependencies(ITestNGMethod[] methods) private static ITestNGMethod[]ConfigurationMethod.createMethods(ITestObjectFactory objectFactory, ITestNGMethod[] methods, IAnnotationFinder finder, boolean isBeforeSuite, boolean isAfterSuite, boolean isBeforeTest, boolean isAfterTest, boolean isBeforeClass, boolean isAfterClass, boolean isBeforeMethod, boolean isAfterMethod, XmlTest xmlTest, Object instance) static ITestNGMethod[]ConfigurationMethod.createSuiteConfigurationMethods(ITestObjectFactory objectFactory, ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, Object instance) static ITestNGMethod[]ConfigurationMethod.createTestConfigurationMethods(ITestObjectFactory objectFactory, ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, XmlTest xmlTest, Object instance) static ITestNGMethod[]ConfigurationMethod.createTestMethodConfigurationMethods(ITestObjectFactory objectFactory, ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, XmlTest xmlTest, Object instance) private static booleanMethodInheritance.dependencyExists(ITestNGMethod m1, ITestNGMethod m2, ITestNGMethod[] methods) static StringUtils.detailedMethodName(ITestNGMethod method) static StringUtils.detailedMethodName(ITestNGMethod method, boolean fqn) static voidMethodHelper.dumpInvokedMethodInfoToConsole(ITestNGMethod[] methods, int currentVerbosity) private static booleanMethodInheritance.equalsEffectiveClass(ITestNGMethod m1, ITestNGMethod m2) private static Pair<String, Predicate<ITestNGMethod>> MethodHelper.filterToUse(ITestNGMethod m) protected static ITestNGMethod[]MethodHelper.findDependedUponMethods(ITestNGMethod m, List<ITestNGMethod> methods) Finds TestNG methods that the specified TestNG method depends uponstatic ITestNGMethod[]MethodHelper.findDependedUponMethods(ITestNGMethod m, ITestNGMethod[] incoming) Finds TestNG methods that the specified TestNG method depends uponprivate static MethodMethodHelper.findMethodByName(ITestNGMethod testngMethod, String regExp) Finds method based on regex and TestNGMethod.protected static ITestNGMethod[]MethodGroupsHelper.findMethodsThatBelongToGroup(ITestNGMethod[] methods, String groupRegexp) static ITestNGMethod[]MethodGroupsHelper.findMethodsThatBelongToGroup(ITestNGMethod method, ITestNGMethod[] methods, 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, List<ITestNGMethod> methodList) ConfigurationGroupMethods.getAfterGroupMethods(ITestNGMethod testMethod) ITestResultNotifier.getFailedTests(ITestNGMethod tm) static List<ITestNGMethod> MethodHelper.getMethodsDependedUpon(ITestNGMethod method, ITestNGMethod[] methods, Comparator<ITestNGMethod> comparator) ITestResultNotifier.getPassedTests(ITestNGMethod tm) ResultMap.getResults(ITestNGMethod method) ITestResultNotifier.getSkippedTests(ITestNGMethod tm) static ParameterHolderParameters.handleParameters(ITestObjectFactory objectFactory, 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 ParameterHolderParameters.handleParameters(ITestObjectFactory objectFactory, 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 static booleanMethodInheritance.hasUpstreamHierarchy(ITestNGMethod m1, ITestNGMethod m2) private static booleanMethodGroupsHelper.includeMethod(ITestOrConfiguration annotation, RunInfo runInfo, ITestNGMethod tm, boolean forTests, boolean unique, 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) private voidTestResult.init(ITestNGMethod method, ITestContext ctx, Throwable t, long start, long end) private static booleanMethodInheritance.internalDependencyExists(ITestNGMethod m1, ITestNGMethod m2, ITestNGMethod[] methods) private booleanConfigurationGroupMethods.isAfterGroupAllowedToRunAfterTestMethod(ITestNGMethod afterGroupMethod, Set<String> testMethodGroups) private static booleanMethodHelper.isConfigurationMethod(ITestNGMethod tm) private booleanConfigurationGroupMethods.isLastMethodForGroup(String group, ITestNGMethod method) private static booleanMethodGroupsHelper.isMethodAlreadyNotPresent(List<ITestNGMethod> result, ITestNGMethod tm) private static booleanTestResult.matches(List<String> upstreamMethods, ITestNGMethod method) private static MethodHelper.MatchResultsMethodHelper.matchMethod(ITestNGMethod[] methods, String regexp) static TestResultTestResult.newContextAwareTestResult(ITestNGMethod method, ITestContext ctx) static TestResultTestResult.newEndTimeAwareTestResult(ITestNGMethod method, ITestContext ctx, Throwable t, long start) static Parameters.MethodParametersParameters.MethodParameters.newInstance(Map<String, 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, Throwable t) voidResultMap.removeResult(ITestNGMethod m) static voidTestListenerHelper.runPostConfigurationListeners(ITestResult tr, ITestNGMethod tm, List<IConfigurationListener> listeners, IConfigurationListener internal) static voidTestListenerHelper.runPreConfigurationListeners(ITestResult tr, ITestNGMethod tm, List<IConfigurationListener> listeners, IConfigurationListener internal) voidNoOpTestClass.setAfterTestMethod(ITestNGMethod[] afterTestMethods) voidNoOpTestClass.setBeforeTestMethods(ITestNGMethod[] beforeTestMethods) private static voidScriptMethodSelector.setContext(ScriptEngine engine, Map<String, String> groups, ITestNGMethod tm) voidTestResult.setMethod(ITestNGMethod method) 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) Method parameters in org.testng.internal with type arguments of type ITestNGMethodModifier and TypeMethodDescriptionprivate voidTestNGMethodFinder.addConfigurationMethod(Class<?> clazz, List<ITestNGMethod> results, Method method, boolean isBeforeSuite, boolean isAfterSuite, boolean isBeforeTest, boolean isAfterTest, boolean isBeforeClass, boolean isAfterClass, boolean isBeforeTestMethod, boolean isAfterTestMethod, boolean isIgnoreFailure, String[] beforeGroups, String[] afterGroups) 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 voidMethodGroupsHelper.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.protected static ITestNGMethod[]MethodHelper.findDependedUponMethods(ITestNGMethod m, List<ITestNGMethod> methods) Finds TestNG methods that the specified TestNG method depends uponprotected static voidMethodGroupsHelper.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 ITestNGMethodMethodGroupsHelper.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 voidMethodHelper.fixMethodsWithClass(ITestNGMethod[] methods, ITestClass testCls, List<ITestNGMethod> methodList) static List<ITestNGMethod> MethodHelper.getMethodsDependedUpon(ITestNGMethod method, ITestNGMethod[] methods, Comparator<ITestNGMethod> comparator) private static booleanMethodGroupsHelper.includeMethod(ITestOrConfiguration annotation, RunInfo runInfo, ITestNGMethod tm, boolean forTests, boolean unique, List<ITestNGMethod> outIncludedMethods) private static booleanMethodGroupsHelper.isMethodAlreadyNotPresent(List<ITestNGMethod> result, ITestNGMethod tm) static List<IMethodInstance> MethodHelper.methodsToMethodInstances(List<ITestNGMethod> sl) private static List<ITestNGMethod> ConfigurationGroupMethods.retrieve(Set<String> tracker, Map<String, List<ITestNGMethod>> map, String group) voidBaseTestMethod.setDownstreamDependencies(Set<ITestNGMethod> methods) voidMethodSelectorDescriptor.setTestMethods(List<ITestNGMethod> testMethods) voidRunInfo.setTestMethods(List<ITestNGMethod> testMethods) voidXmlMethodSelector.setTestMethods(List<ITestNGMethod> testMethods) voidBaseTestMethod.setUpstreamDependencies(Set<ITestNGMethod> methods) 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 voidMethodInheritance.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 ofITestNGMethods.Constructors in org.testng.internal with parameters of type ITestNGMethodModifierConstructorDescriptionClonedMethod(ITestNGMethod method, Method javaMethod) FilteredParameters(Iterator<Object[]> parameters, ITestNGMethod testMethod, String dataProviderName, List<Integer> indices) LiteWeightTestNGMethod(ITestNGMethod iTestNGMethod) MethodInstance(ITestNGMethod method) RegexpExpectedExceptionsHolder(IAnnotationFinder finder, ITestNGMethod method) 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(ITestObjectFactory objectFactory, 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(ITestObjectFactory objectFactory, 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 ITestAnnotationAnnotationHelper.findTest(IAnnotationFinder finder, ITestNGMethod m) -
Uses of ITestNGMethod in org.testng.internal.invokers
Fields in org.testng.internal.invokers declared as ITestNGMethodModifier and TypeFieldDescriptionprivate final ITestNGMethod[]TestMethodArguments.afterMethodsprivate ITestNGMethod[]TestMethodArguments.Builder.afterMethodsprivate final ITestNGMethod[]ConfigMethodArguments.allMethodsprivate ITestNGMethod[]ConfigMethodArguments.Builder.allMethodsprivate final ITestNGMethod[]TestMethodArguments.beforeMethodsprivate ITestNGMethod[]TestMethodArguments.Builder.beforeMethodsprivate ITestNGMethodConfigMethodArguments.Builder.currentTestMethodprivate final ITestNGMethod[]TestMethodWithDataProviderMethodWorker.m_afterMethodsprivate final ITestNGMethod[]TestMethodWithDataProviderMethodWorker.m_beforeMethodsprivate final ITestNGMethodInvokeMethodRunnable.m_methodprivate final ITestNGMethodTestMethodWithDataProviderMethodWorker.m_testMethodprotected final ITestNGMethodExpectedExceptionsHolder.methodprivate ITestNGMethodGroupConfigMethodArguments.Builder.testMethodprotected final ITestNGMethodArguments.tmprivate ITestNGMethodTestMethodArguments.Builder.tmFields in org.testng.internal.invokers with type parameters of type ITestNGMethodModifier and TypeFieldDescription(package private) static final BiPredicate<ITestNGMethod, IClass> Invoker.CAN_RUN_FROM_CLASSPredicate to filter methodsprivate final Set<ITestNGMethod> ConfigInvoker.m_executedConfigMethodsprotected final Map<ITestNGMethod, Set<Object>> ConfigInvoker.m_methodInvocationResultsTest methods whose configuration methods have failed.private List<ITestNGMethod> AbstractParallelWorker.Arguments.methods(package private) static final BiPredicate<ITestNGMethod, IClass> Invoker.SAME_CLASSPredicate to filter methodsMethods in org.testng.internal.invokers that return ITestNGMethodModifier and TypeMethodDescription(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) TestMethodArguments.getAfterMethods()TestMethodArguments.getBeforeMethods()ConfigMethodArguments.getConfigMethods()Arguments.getTestMethod()InvokedMethod.getTestMethod()Methods in org.testng.internal.invokers that return types with arguments of type ITestNGMethodModifier and TypeMethodDescriptionabstract List<IWorker<ITestNGMethod>> AbstractParallelWorker.createWorkers(AbstractParallelWorker.Arguments arguments) ClassBasedParallelWorker.createWorkers(AbstractParallelWorker.Arguments arguments) InstanceBasedParallelParallelWorker.createWorkers(AbstractParallelWorker.Arguments arguments) AbstractParallelWorker.Arguments.getMethods()TestMethodWorker.getTasks()Methods in org.testng.internal.invokers with parameters of type ITestNGMethodModifier and TypeMethodDescriptionprivate booleanConfigInvoker.canIgnoreConfigFailure(IClass testClass, ITestNGMethod configMethod) private static booleanConfigInvoker.canIgnoreConfigFailure(ITestNGMethod method) (package private) static booleanTestNgMethodUtils.cannotRunMethodIndependently(ITestNGMethod tm) private StringTestInvoker.checkDependencies(ITestNGMethod testMethod) Checks to see of the test method has certain dependencies that prevents TestNG from executing itprivate voidTestInvoker.collectResults(ITestNGMethod testMethod, ITestResult result) private static ObjectConfigInvoker.computeInstance(Object instance, Object inst, ITestNGMethod tm) private TestInvoker.StatusHolderTestInvoker.considerExceptions(ITestNGMethod tm, ITestResult testResult, ExpectedExceptionsHolder exceptionsHolder, ITestInvoker.FailureContext failure) private static booleanTestNgMethodUtils.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) ParameterHandler.ParameterBagParameterHandler.createParameters(ITestNGMethod testMethod, Map<String, String> parameters, Map<String, String> allParameterNames, ITestContext testContext) (package private) ParameterHandler.ParameterBagParameterHandler.createParameters(ITestNGMethod testMethod, Map<String, String> parameters, Map<String, String> allParameterNames, ITestContext testContext, Object fedInstance) 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 booleanTestInvoker.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) private static Class<?>[]ExpectedExceptionsHolder.findExpectedClasses(IAnnotationFinder finder, ITestNGMethod method) ConfigMethodArguments.Builder.forTestMethod(ITestNGMethod currentTestMethod) GroupConfigMethodArguments.Builder.forTestMethod(ITestNGMethod testMethod) TestMethodArguments.Builder.forTestMethod(ITestNGMethod tm) (package private) static ObjectTestNgMethodUtils.getMethodInvocationToken(ITestNGMethod method, Object instance) MethodInvocationHelper.getParameters(Method dataProvider, ITestNGMethod method, ITestContext testContext, Object fedInstance, IAnnotationFinder annotationFinder) private voidConfigInvoker.handleConfigurationFailure(Throwable ite, ITestNGMethod tm, ITestResult testResult, IConfigurationAnnotation annotation, ITestNGMethod currentTestMethod, Object instance, XmlSuite suite) private voidConfigInvoker.handleConfigurationSkip(ITestNGMethod tm, ITestResult testResult, IConfigurationAnnotation annotation, ITestNGMethod currentTestMethod, Object instance, XmlSuite suite) Marks the currentTestResultas skipped and invokes the listeners.protected voidBaseInvoker.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 voidTestInvoker.handleInvocationResult(ITestNGMethod testMethod, ITestResult testResult, ITestInvoker.FailureContext failure, TestInvoker.StatusHolder holder, boolean willRetry) private ParameterHandler.ParameterBagParameterHandler.handleParameters(ITestNGMethod testMethod, Object instance, Map<String, String> allParameterNames, Map<String, String> parameters, ITestContext testContext, Object fedInstance) private booleanConfigInvoker.hasConfigFailure(ITestNGMethod currentTestMethod) booleanConfigInvoker.hasConfigurationFailureFor(ITestNGMethod testNGMethod, String[] groups, IClass testClass, Object instance) booleanConfigInvoker.hasConfigurationFailureFor(ITestNGMethod configMethod, ITestNGMethod testNGMethod, String[] groups, IClass testClass, Object instance) booleanIConfigInvoker.hasConfigurationFailureFor(ITestNGMethod testNGMethod, String[] groups, IClass testClass, Object instance) booleanIConfigInvoker.hasConfigurationFailureFor(ITestNGMethod configMethod, ITestNGMethod testNGMethod, String[] groups, IClass testClass, Object instance) protected intTestMethodWorker.indexOf(ITestNGMethod tm, ITestNGMethod[] allTestMethods) private voidConfigInvoker.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 voidMethodInvocationHelper.invokeMethodConsideringTimeout(ITestNGMethod tm, ConstructorOrMethod method, Object targetInstance, Object[] params, ITestResult testResult) private List<ITestResult> TestInvoker.invokePooledTestMethods(ITestNGMethod testMethod, 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 voidTestMethodWorker.invokeTestMethods(ITestNGMethod tm, Object instance) protected static voidMethodInvocationHelper.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 booleanMethodInvocationHelper.invokeWithTimeout(ITestNGMethod tm, Object instance, Object[] parameterValues, ITestResult testResult, IHookable hookable) private static booleanMethodInvocationHelper.invokeWithTimeoutWithNewExecutor(ITestNGMethod tm, Object instance, Object[] parameterValues, ITestResult testResult, IHookable hookable) private static booleanMethodInvocationHelper.invokeWithTimeoutWithNoExecutor(ITestNGMethod tm, Object instance, 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) private Set<ITestResult> TestInvoker.keepSameInstances(ITestNGMethod method, Set<ITestResult> results) private List<MethodInstance> ClassBasedParallelWorker.methodsToMultipleMethodInstances(ITestNGMethod... methods) ExpectedExceptionsHolder.noException(ITestNGMethod testMethod) private voidConfigInvoker.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 ITestResultITestInvoker.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) private voidTestInvoker.runConfigMethods(TestMethodArguments arguments, XmlSuite suite, TestResult testResult, ITestNGMethod[] teardownConfigMethods) private voidConfigInvoker.runConfigurationListeners(ITestResult tr, ITestNGMethod tm, boolean before) private List<ITestResult> TestInvoker.runWorkers(ITestNGMethod testMethod, List<IWorker<ITestNGMethod>> workers, int threadPoolSize, ConfigurationGroupMethods groupMethods, 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.private voidConfigInvoker.setMethodInvocationFailure(ITestNGMethod method, Object instance) private booleanTestInvoker.shouldRetryTestMethod(ITestNGMethod testMethod, ITestResult testResult, ITestInvoker.FailureContext failure, TestInvoker.StatusHolder holder) TestMethodArguments.Builder.usingAfterMethods(ITestNGMethod[] afterMethods) TestMethodArguments.Builder.usingBeforeMethods(ITestNGMethod[] beforeMethods) ConfigMethodArguments.Builder.usingConfigMethodsAs(ITestNGMethod[] allMethods) Method parameters in org.testng.internal.invokers with type arguments of type ITestNGMethodModifier and TypeMethodDescriptionintTestMethodWorker.compareTo(IWorker<ITestNGMethod> other) private static booleanTestNgMethodUtils.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) AbstractParallelWorker.Arguments.Builder.methods(List<ITestNGMethod> methods) private List<ITestResult> TestInvoker.runWorkers(ITestNGMethod testMethod, List<IWorker<ITestNGMethod>> workers, int threadPoolSize, ConfigurationGroupMethods groupMethods, 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.ConfigMethodArguments.Builder.usingConfigMethodsAs(Collection<ITestNGMethod> allMethods) Constructors in org.testng.internal.invokers with parameters of type ITestNGMethodModifierConstructorDescriptionprotectedprivateConfigMethodArguments(IClass testClass, ITestNGMethod currentTestMethod, ITestNGMethod[] allMethods, XmlSuite suite, Map<String, String> params, Object[] parameterValues, Object instance, ITestResult testMethodResult) protectedExpectedExceptionsHolder(IAnnotationFinder finder, ITestNGMethod method, IExpectedExceptionsHolder holder) privateGroupConfigMethodArguments(ITestNGMethod testMethod, ConfigurationGroupMethods groupMethods, Map<String, String> params, Object instance) InvokeMethodRunnable(ITestNGMethod thisMethod, Object instance, Object[] parameters, IHookable hookable, ITestResult testResult) protectedMethodArguments(Object instance, ITestNGMethod tm, Map<String, String> params, Object[] parameterValues) privateTestMethodArguments(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) -
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) Constructors in org.testng.internal.thread with parameters of type ITestNGMethod -
Uses of ITestNGMethod in org.testng.junit
Classes in org.testng.junit that implement ITestNGMethodModifier and TypeClassDescriptionclassDeprecated.classDeprecated.- Support for running JUnit tests stands deprecated as of TestNG7.7.0classDeprecated.- Support for running JUnit tests stands deprecated as of TestNG7.7.0Fields in org.testng.junit declared as ITestNGMethodModifier and TypeFieldDescriptionprivate static final ITestNGMethod[]JUnitTestClass.EMPTY_METHODARRAYDeprecated.Fields in org.testng.junit with type parameters of type ITestNGMethodModifier and TypeFieldDescriptionprivate List<ITestNGMethod> JUnitTestClass.m_afterClassDeprecated.private List<ITestNGMethod> JUnitTestClass.m_afterTestDeprecated.private List<ITestNGMethod> JUnitTestClass.m_beforeClassDeprecated.private List<ITestNGMethod> JUnitTestClass.m_beforeTestDeprecated.private final List<ITestNGMethod> JUnit4TestRunner.m_methodsDeprecated.private final List<ITestNGMethod> JUnitTestRunner.m_methodsDeprecated.private List<ITestNGMethod> JUnitTestClass.m_testMethodsDeprecated.Methods in org.testng.junit that return ITestNGMethodModifier and TypeMethodDescriptionJUnitTestMethod.clone()Deprecated.JUnitMethodFinder.getAfterClassMethods(Class<?> cls) Deprecated.JUnitTestClass.getAfterClassMethods()Deprecated.JUnitMethodFinder.getAfterGroupsConfigurationMethods(Class<?> testClass) Deprecated.JUnitTestClass.getAfterGroupsMethods()Deprecated.JUnitMethodFinder.getAfterSuiteMethods(Class<?> cls) Deprecated.JUnitTestClass.getAfterSuiteMethods()Deprecated.JUnitMethodFinder.getAfterTestConfigurationMethods(Class<?> testClass) Deprecated.JUnitTestClass.getAfterTestConfigurationMethods()Deprecated.JUnitMethodFinder.getAfterTestMethods(Class<?> cls) Deprecated.JUnitTestClass.getAfterTestMethods()Deprecated.JUnitMethodFinder.getBeforeClassMethods(Class<?> cls) Deprecated.JUnitTestClass.getBeforeClassMethods()Deprecated.JUnitMethodFinder.getBeforeGroupsConfigurationMethods(Class<?> testClass) Deprecated.JUnitTestClass.getBeforeGroupsMethods()Deprecated.JUnitMethodFinder.getBeforeSuiteMethods(Class<?> cls) Deprecated.JUnitTestClass.getBeforeSuiteMethods()Deprecated.JUnitMethodFinder.getBeforeTestConfigurationMethods(Class<?> testClass) Deprecated.JUnitTestClass.getBeforeTestConfigurationMethods()Deprecated.JUnitMethodFinder.getBeforeTestMethods(Class<?> cls) Deprecated.JUnitTestClass.getBeforeTestMethods()Deprecated.JUnitMethodFinder.getTestMethods(Class<?> cls, XmlTest xmlTest) Deprecated.JUnitTestClass.getTestMethods()Deprecated.private ITestNGMethod[]JUnitMethodFinder.privateFindTestMethods(INameFilter filter, Class<?> cls) Deprecated.Methods in org.testng.junit that return types with arguments of type ITestNGMethodModifier and TypeMethodDescription(package private) List<ITestNGMethod> JUnitTestClass.getTestMethodList()Deprecated.IJUnitTestRunner.getTestMethods()Deprecated.JUnit4TestRunner.getTestMethods()Deprecated.Needed from TestRunner in order to figure out what JUnit test methods were run.JUnitTestRunner.getTestMethods()Deprecated.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> AbstractXmlReporter.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 intTestHTMLReporter.ConfigurationComparator.annotationValue(ITestNGMethod method) private StringSuiteHTMLReporter.createColor(ITestNGMethod tm) Generate a HTML color based on the class of the methodprivate JUnitReportReporter.TestTagJUnitReportReporter.createIgnoredTestTagFor(ITestNGMethod method) private StringSuiteHTMLReporter.dumpMethods(ITestNGMethod[] testMethods) FailedReporter.findMethodLocalParameters(XmlTest srcXmlTest, ITestNGMethod method) Get local parameters of one include method from origin test xml.private static voidFailedReporter.getAllGroupApplicableConfigs(ITestContext context, Set<ITestNGMethod> relevantConfigs, ITestNGMethod m) private StringVerboseReporter.getMethodDeclaration(ITestNGMethod method, ITestResult tr) private PropertiesJUnitXMLReporter.getPropertiesFor(ITestNGMethod method, long elapsedTimeMillis) private static booleanFailedReporter.isNotClassLevelConfigurationMethod(ITestNGMethod each) private StringEmailableReporter.qualifiedName(ITestNGMethod method) Method parameters in org.testng.reporters with type arguments of type ITestNGMethodModifier and TypeMethodDescriptionprivate voidJUnitReportReporter.addMapping(SetMultiMap<Class<?>, ITestNGMethod> mapping, Collection<ITestNGMethod> methods) private voidJUnitReportReporter.addMapping(SetMultiMap<Class<?>, ITestNGMethod> mapping, Collection<ITestNGMethod> methods) private static List<XmlInclude> FailedReporter.asXmlIncludes(List<ITestNGMethod> methods, XmlTest srcXmlTest) FailedReporter.createXmlClasses(List<ITestNGMethod> methods, XmlTest srcXmlTest) private voidFailedReporter.createXmlTest(ITestContext context, List<ITestNGMethod> methods, XmlTest srcXmlTest) Generate testng-failed.xmlprivate static voidFailedReporter.getAllApplicableConfigs(Set<ITestNGMethod> configs, ITestClass iTestClass) private static voidFailedReporter.getAllGroupApplicableConfigs(ITestContext context, Set<ITestNGMethod> relevantConfigs, ITestNGMethod m) private static intJUnitReportReporter.getDisabledTestCount(Set<ITestNGMethod> methods) private Set<ITestNGMethod> AbstractXmlReporter.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.getTestNGInfrastructure(StackTraceElement[] stack, ITestNGMethod method) static intStackTraceTools.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)
7.7.0