Uses of Interface
org.testng.ITestNGMethod
-
Packages that use ITestNGMethod Package Description org.testng org.testng.internal org.testng.internal.annotations org.testng.junit org.testng.reporters org.testng.reporters.util -
-
Uses of ITestNGMethod in org.testng
Methods 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.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)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()java.util.Collection<ITestNGMethod>ISuite. getInvokedMethods()Deprecated.Use getAllInvokedMethods().java.util.Collection<ITestNGMethod>SuiteRunner. getInvokedMethods()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)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)voidIDataProviderListener. afterDataProviderExecution(IDataProviderMethod dataProviderMethod, ITestNGMethod method, ITestContext iTestContext)This method gets invoked just after a data provider is invoked.voidIDataProviderListener. beforeDataProviderExecution(IDataProviderMethod dataProviderMethod, ITestNGMethod method, ITestContext iTestContext)This method gets invoked just before a data provider is invoked.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.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)booleanIMethodSelector. includeMethod(IMethodSelectorContext context, ITestNGMethod method, boolean isTestMethod)booleanClassMethodMap. removeAndCheckIfLast(ITestNGMethod m, java.lang.Object instance)Remove the method from this map and returns true if it is the last of its class.voidIResultMap. removeResult(ITestNGMethod m)Method parameters in org.testng with type 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.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)SuiteRunner(IConfiguration configuration, XmlSuite suite, java.lang.String outputDir, 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, java.util.Comparator<ITestNGMethod> comparator)Deprecated.- This constructor stands deprecated as of TestNG v6.13.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, java.util.Map<java.lang.Class<? extends IDataProviderListener>,IDataProviderListener> dataProviderListeners, 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, java.util.Map<java.lang.Class<? extends IDataProviderListener>,IDataProviderListener> dataProviderListeners) -
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 protected ITestNGMethod[]NoOpTestClass. m_afterClassMethodsprotected ITestNGMethod[]NoOpTestClass. m_afterGroupsMethodsprotected ITestNGMethod[]NoOpTestClass. m_afterSuiteMethodsprotected ITestNGMethod[]NoOpTestClass. m_afterTestConfMethodsprotected ITestNGMethod[]NoOpTestClass. m_afterTestMethodsprotected ITestNGMethod[]NoOpTestClass. m_beforeClassMethodsprotected ITestNGMethod[]NoOpTestClass. m_beforeGroupsMethodsprotected ITestNGMethod[]NoOpTestClass. m_beforeSuiteMethodsprotected ITestNGMethod[]NoOpTestClass. m_beforeTestConfMethodsprotected ITestNGMethod[]NoOpTestClass. m_beforeTestMethodsprotected ITestNGMethod[]NoOpTestClass. m_testMethodsprotected ITestNGMethodExpectedExceptionsHolder. methodFields in org.testng.internal with type parameters of type ITestNGMethod Modifier and Type Field Description static java.util.Comparator<ITestNGMethod>TestNGMethod. SORT_BY_CLASSSorts ITestNGMethod by Class name.Methods in org.testng.internal that return ITestNGMethod Modifier and Type Method Description abstract ITestNGMethodBaseTestMethod. clone()ITestNGMethodFactoryMethod. clone()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)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)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 uponprotected 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[]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[]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)ITestNGMethodMethodInstance. getMethod()ITestNGMethodTestResult. getMethod()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 static DynamicGraph<ITestNGMethod>DynamicGraphHelper. createDynamicGraph(ITestNGMethod[] methods, XmlTest xmlTest)abstract java.util.List<IWorker<ITestNGMethod>>AbstractParallelWorker. createWorkers(AbstractParallelWorker.Arguments arguments)static java.util.Map<java.lang.String,java.util.List<ITestNGMethod>>MethodGroupsHelper. findGroupsMethods(java.util.Collection<ITestClass> classes, boolean before)Extracts the map of groups and their corresponding methods from theclasses.java.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>TestMethodWorker. getTasks()static java.util.List<ITestNGMethod>MethodHelper. invokedMethodsToMethods(java.util.Collection<IInvokedMethod> invokedMethods)static java.util.List<ITestNGMethod>MethodHelper. methodInstancesToMethods(java.util.List<IMethodInstance> methodInstances)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 typestatic intUtils. calculateInvokedMethodCount(ITestNGMethod[] methods)protected static java.lang.StringMethodHelper. calculateMethodCanonicalName(ITestNGMethod m)protected static longMethodHelper. calculateTimeOut(ITestNGMethod tm)static ITestNGMethod[]ConfigurationMethod. createAfterConfigurationMethods(ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, java.lang.Object instance)static ITestNGMethod[]ConfigurationMethod. createBeforeConfigurationMethods(ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, java.lang.Object instance)static ITestNGMethod[]ConfigurationMethod. createClassConfigurationMethods(ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, java.lang.Object instance)static java.lang.Object[]Parameters. createConfigurationParameters(java.lang.reflect.Method m, java.util.Map<java.lang.String,java.lang.String> params, java.lang.Object[] parameterValues, ITestNGMethod currentTestMethod, IAnnotationFinder finder, XmlSuite xmlSuite, ITestContext ctx, ITestResult testResult)Creates the parameters needed for the specified @ConfigurationMethod.static DynamicGraph<ITestNGMethod>DynamicGraphHelper. createDynamicGraph(ITestNGMethod[] methods, XmlTest xmlTest)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)static java.lang.StringUtils. detailedMethodName(ITestNGMethod method, boolean fqn)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 uponprotected 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)java.util.Set<ITestResult>ITestResultNotifier. getFailedTests(ITestNGMethod tm)static java.util.List<ITestNGMethod>MethodHelper. getMethodsDependedUpon(ITestNGMethod method, ITestNGMethod[] methods, java.util.Comparator<ITestNGMethod> comparator)java.util.Set<ITestResult>ITestResultNotifier. getPassedTests(ITestNGMethod tm)java.util.Set<ITestResult>ResultMap. getResults(ITestNGMethod method)java.util.Set<ITestResult>ITestResultNotifier. getSkippedTests(ITestNGMethod tm)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)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, java.util.Collection<IDataProviderListener> dataProviderListeners)If the method has parameters, fill them in.booleanRunInfo. includeMethod(ITestNGMethod tm, boolean isTestMethod)booleanXmlMethodSelector. includeMethod(IMethodSelectorContext context, ITestNGMethod tm, boolean isTestMethod)booleanBsh. includeMethodFromExpression(java.lang.String expression, ITestNGMethod tm)booleanBshMock. includeMethodFromExpression(java.lang.String expression, ITestNGMethod tm)booleanIBsh. includeMethodFromExpression(java.lang.String expression, ITestNGMethod tm)protected intTestMethodWorker. indexOf(ITestNGMethod tm, ITestNGMethod[] allTestMethods)voidTestResult. init(IClass testClass, java.lang.Object instance, ITestNGMethod method, java.lang.Throwable throwable, long start, long end, ITestContext context)voidIInvoker. invokeConfigurations(IClass testClass, ITestNGMethod[] allMethods, XmlSuite suite, java.util.Map<java.lang.String,java.lang.String> parameters, java.lang.Object[] parameterValues, java.lang.Object instance)Invoke configuration methods if they belong to the same TestClass passed in parameter..voidInvoker. invokeConfigurations(IClass testClass, ITestNGMethod[] allMethods, XmlSuite suite, java.util.Map<java.lang.String,java.lang.String> params, java.lang.Object[] parameterValues, java.lang.Object instance)Invoke configuration methods if they belong to the same TestClass passed in parameter..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)java.util.List<ITestResult>IInvoker. invokeTestMethods(ITestNGMethod testMethod, XmlSuite suite, java.util.Map<java.lang.String,java.lang.String> parameters, ConfigurationGroupMethods groupMethods, java.lang.Object instance, ITestContext testContext)Invoke the given methodjava.util.List<ITestResult>Invoker. invokeTestMethods(ITestNGMethod testMethod, XmlSuite suite, java.util.Map<java.lang.String,java.lang.String> testParameters, ConfigurationGroupMethods groupMethods, java.lang.Object instance, ITestContext testContext)Invoke all the test methods.protected voidTestMethodWorker. invokeTestMethods(ITestNGMethod tm, java.lang.Object instance, ITestContext testContext)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)booleanConfigurationGroupMethods. isLastMethodForGroup(java.lang.String group, ITestNGMethod method)static Parameters.MethodParametersParameters.MethodParameters. newInstance(java.util.Map<java.lang.String,java.lang.String> params, ITestNGMethod testNGMethod, ITestContext context)TestExceptionExpectedExceptionsHolder. noException(ITestNGMethod testMethod)voidConfigurationGroupMethods. removeBeforeMethod(java.lang.String group, ITestNGMethod method)voidResultMap. removeResult(ITestNGMethod m)voidNoOpTestClass. setAfterTestMethod(ITestNGMethod[] afterTestMethods)voidNoOpTestClass. setBeforeTestMethods(ITestNGMethod[] beforeTestMethods)voidTestResult. setMethod(ITestNGMethod method)Method parameters in org.testng.internal with type arguments of type ITestNGMethod Modifier and Type Method Description static intUtils. calculateInvokedMethodCount(java.util.List<ITestNGMethod> methods)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 methodsintTestMethodWorker. compareTo(IWorker<ITestNGMethod> other)static voidUtils. dumpMethods(java.util.List<ITestNGMethod> allMethods)Deprecated.Unusedprotected static ITestNGMethod[]MethodHelper. findDependedUponMethods(ITestNGMethod m, java.util.List<ITestNGMethod> methods)Finds TestNG methods that the specified TestNG method depends uponprotected static voidMethodGroupsHelper. findGroupTransitiveClosure(XmlMethodSelector xms, java.util.List<ITestNGMethod> includedMethods, java.util.List<ITestNGMethod> allMethods, java.lang.String[] includedGroups, java.util.Set<java.lang.String> outGroups, java.util.Set<ITestNGMethod> outMethods)static 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)AbstractParallelWorker.Arguments.BuilderAbstractParallelWorker.Arguments.Builder. methods(java.util.List<ITestNGMethod> methods)static java.util.List<IMethodInstance>MethodHelper. methodsToMethodInstances(java.util.List<ITestNGMethod> sl)voidMethodSelectorDescriptor. setTestMethods(java.util.List<ITestNGMethod> testMethods)voidRunInfo. setTestMethods(java.util.List<ITestNGMethod> testMethods)voidXmlMethodSelector. setTestMethods(java.util.List<ITestNGMethod> testMethods)static java.util.List<ITestNGMethod>MethodHelper. uniqueMethodList(java.util.Collection<java.util.List<ITestNGMethod>> methods)Extracts the unique list ofITestNGMethods.Constructors in org.testng.internal with parameters of type ITestNGMethod Constructor Description ClonedMethod(ITestNGMethod method, java.lang.reflect.Method javaMethod)ConfigurationGroupMethods(ITestNGMethod[] allMethods, java.util.Map<java.lang.String,java.util.List<ITestNGMethod>> beforeGroupsMethods, java.util.Map<java.lang.String,java.util.List<ITestNGMethod>> afterGroupsMethods)ExpectedExceptionsHolder(IAnnotationFinder finder, ITestNGMethod method, IExpectedExceptionsHolder holder)InvokedMethod(java.lang.Object instance, ITestNGMethod method, long date, ITestResult testResult)InvokeMethodRunnable(ITestNGMethod thisMethod, java.lang.Object instance, java.lang.Object[] parameters, IHookable hookable, ITestResult testResult)MethodInstance(ITestNGMethod method)RegexpExpectedExceptionsHolder(IAnnotationFinder finder, ITestNGMethod method)TestMethodWithDataProviderMethodWorker(Invoker invoker, ITestNGMethod testMethod, int parameterIndex, java.lang.Object[] parameterValues, java.lang.Object instance, XmlSuite suite, java.util.Map<java.lang.String,java.lang.String> parameters, ITestClass testClass, ITestNGMethod[] beforeMethods, ITestNGMethod[] afterMethods, ConfigurationGroupMethods groupMethods, ExpectedExceptionsHolder expectedExceptionHolder, ITestContext testContext, boolean skipFailedInvocationCounts, int invocationCount, int failureCount, ITestResultNotifier notifier)TestResult(java.lang.Object instance, ITestNGMethod method, java.lang.Throwable throwable, ITestContext context)TestResult(IClass testClass, java.lang.Object instance, ITestNGMethod method, java.lang.Throwable throwable, long start, long end, ITestContext context)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)Delegation method for creating the list ofITestMethods to be analysed.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.junit
Classes in org.testng.junit that implement ITestNGMethod Modifier and Type Class Description classJUnit3TestMethodclassJUnit4TestMethodclassJUnitTestMethodMethods in org.testng.junit that return types with arguments of type ITestNGMethod Modifier and Type Method Description 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 with parameters of type ITestNGMethod Modifier and Type Method Description protected voidEmailableReporter. generateExceptionReport(java.lang.Throwable exception, ITestNGMethod method) -
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)Finds topmost position of the test method in the stack, or top of stack ifmethodis not in it.static intStackTraceTools. getTestRoot(java.lang.StackTraceElement[] stack, ITestNGMethod method)Finds topmost position of the test method in the stack, or top of stack ifmethodis not in it.
-