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 ITestNGMethod
ITestNGMethod. clone()
static ITestNGMethod
TestNGUtils. createITestNGMethod(ITestNGMethod existingMethod, Method method)
Create an ITestNGMethod for @code{method} based on @code{existingMethod}, which needs to belong to the same class.ITestNGMethod[]
ITestClass. getAfterClassMethods()
Returns all the methods that should be invoked after all the tests have been run on this class.ITestNGMethod[]
ITestMethodFinder. getAfterClassMethods(Class<?> cls)
ITestNGMethod[]
ITestMethodFinder. getAfterGroupsConfigurationMethods(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(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(Class<?> testClass)
ITestNGMethod[]
TestRunner. getAfterTestConfigurationMethods()
ITestNGMethod[]
ITestClass. getAfterTestMethods()
Returns all the methods that should be invoked after a test method completes.ITestNGMethod[]
ITestMethodFinder. getAfterTestMethods(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(Class<?> cls)
ITestNGMethod[]
ITestMethodFinder. getBeforeGroupsConfigurationMethods(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(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(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(Class<?> cls)
ITestNGMethod
IMethodInstance. getMethod()
ITestNGMethod
ITestResult. getMethod()
ITestNGMethod
DependencyMap. getMethodDependingOn(String methodName, ITestNGMethod fromMethod)
ITestNGMethod
IInvokedMethod. getTestMethod()
ITestNGMethod[]
ITestClass. getTestMethods()
Returns all the applicable test methods.ITestNGMethod[]
ITestMethodFinder. getTestMethods(Class<?> cls, XmlTest xmlTest)
Methods in org.testng with parameters of type ITestNGMethod Modifier and Type Method Description void
TestRunner. addFailedButWithinSuccessPercentageTest(ITestNGMethod testMethod, ITestResult result)
void
TestRunner. addFailedTest(ITestNGMethod testMethod, ITestResult result)
void
TestRunner. addPassedTest(ITestNGMethod tm, ITestResult tr)
void
IResultMap. addResult(ITestResult result, ITestNGMethod method)
void
TestRunner. addSkippedTest(ITestNGMethod tm, ITestResult tr)
void
IDataProviderListener. afterDataProviderExecution(IDataProviderMethod dataProviderMethod, ITestNGMethod method, ITestContext iTestContext)
This method gets invoked just after a data provider is invoked.void
IDataProviderListener. beforeDataProviderExecution(IDataProviderMethod dataProviderMethod, ITestNGMethod method, ITestContext iTestContext)
This method gets invoked just before a data provider is invoked.static ITestNGMethod
TestNGUtils. createITestNGMethod(ITestNGMethod existingMethod, Method method)
Create an ITestNGMethod for @code{method} based on @code{existingMethod}, which needs to belong to the same class.Set<ITestResult>
TestRunner. getFailedTests(ITestNGMethod tm)
ITestNGMethod
DependencyMap. getMethodDependingOn(String methodName, ITestNGMethod fromMethod)
List<ITestNGMethod>
DependencyMap. getMethodsThatBelongTo(String group, ITestNGMethod fromMethod)
Set<ITestResult>
TestRunner. getPassedTests(ITestNGMethod tm)
Set<ITestResult>
IResultMap. getResults(ITestNGMethod method)
Set<ITestResult>
TestRunner. getSkippedTests(ITestNGMethod tm)
boolean
IMethodSelector. includeMethod(IMethodSelectorContext context, ITestNGMethod method, boolean isTestMethod)
boolean
ClassMethodMap. removeAndCheckIfLast(ITestNGMethod m, Object instance)
Remove the method from this map and returns true if it is the last of its class.void
IResultMap. removeResult(ITestNGMethod m)
Method parameters in org.testng with type arguments of type ITestNGMethod Modifier and Type Method Description List<IWorker<ITestNGMethod>>
TestRunner. createWorkers(List<ITestNGMethod> methods)
Create a list of workers to run the methods passed in parameter.void
TestListenerAdapter. setAllTestMethods(List<ITestNGMethod> allTestMethods)
void
IMethodSelector. setTestMethods(List<ITestNGMethod> testMethods)
Invoked when all the test methods are known so that the method selector can perform additional work, such as adding the transitive closure of all the groups being included and depended upon.Constructors in org.testng with parameters of type ITestNGMethod Constructor Description DependencyMap(ITestNGMethod[] methods)
Constructor parameters in org.testng with type arguments of type ITestNGMethod Constructor Description ClassMethodMap(List<ITestNGMethod> methods, XmlMethodSelector xmlMethodSelector)
SuiteRunner(IConfiguration configuration, XmlSuite suite, String outputDir, Comparator<ITestNGMethod> comparator)
SuiteRunner(IConfiguration configuration, XmlSuite suite, String outputDir, ITestRunnerFactory runnerFactory, boolean useDefaultListeners, Comparator<ITestNGMethod> comparator)
SuiteRunner(IConfiguration configuration, XmlSuite suite, String outputDir, ITestRunnerFactory runnerFactory, boolean useDefaultListeners, List<IMethodInterceptor> methodInterceptors, Collection<IInvokedMethodListener> invokedMethodListeners, Collection<ITestListener> testListeners, Collection<IClassListener> classListeners, Comparator<ITestNGMethod> comparator)
Deprecated.- This constructor stands deprecated as of TestNG v6.13.SuiteRunner(IConfiguration configuration, XmlSuite suite, String outputDir, ITestRunnerFactory runnerFactory, boolean useDefaultListeners, List<IMethodInterceptor> methodInterceptors, Collection<IInvokedMethodListener> invokedMethodListeners, Collection<ITestListener> testListeners, Collection<IClassListener> classListeners, Map<Class<? extends IDataProviderListener>,IDataProviderListener> dataProviderListeners, 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)
TestRunner(IConfiguration configuration, ISuite suite, XmlTest test, String outputDirectory, IAnnotationFinder finder, boolean skipFailedInvocationCounts, Collection<IInvokedMethodListener> invokedMethodListeners, List<IClassListener> classListeners, Comparator<ITestNGMethod> comparator, Map<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 class
BaseTestMethod
Superclass to represent both @Test and @Configuration methods.class
ClonedMethod
class
ConfigurationMethod
class
FactoryMethod
This class represents a method annotated with @Factoryclass
TestNGMethod
This class represents a test method.class
WrappedTestNGMethod
Represents a proxy for an actual instance ofITestNGMethod
but with the exception that it generates a unique hashcode that is different from the originalITestNGMethod
instance that it wraps.Fields in org.testng.internal declared as ITestNGMethod Modifier and Type Field Description protected ITestNGMethod[]
NoOpTestClass. m_afterClassMethods
protected ITestNGMethod[]
NoOpTestClass. m_afterGroupsMethods
protected ITestNGMethod[]
NoOpTestClass. m_afterSuiteMethods
protected ITestNGMethod[]
NoOpTestClass. m_afterTestConfMethods
protected ITestNGMethod[]
NoOpTestClass. m_afterTestMethods
protected ITestNGMethod[]
NoOpTestClass. m_beforeClassMethods
protected ITestNGMethod[]
NoOpTestClass. m_beforeGroupsMethods
protected ITestNGMethod[]
NoOpTestClass. m_beforeSuiteMethods
protected ITestNGMethod[]
NoOpTestClass. m_beforeTestConfMethods
protected ITestNGMethod[]
NoOpTestClass. m_beforeTestMethods
protected ITestNGMethod[]
NoOpTestClass. m_testMethods
protected ITestNGMethod
ExpectedExceptionsHolder. method
Fields in org.testng.internal with type parameters of type ITestNGMethod Modifier and Type Field Description static Comparator<ITestNGMethod>
TestNGMethod. SORT_BY_CLASS
Sorts ITestNGMethod by Class name.Methods in org.testng.internal that return ITestNGMethod Modifier and Type Method Description abstract ITestNGMethod
BaseTestMethod. clone()
ITestNGMethod
FactoryMethod. clone()
ITestNGMethod
WrappedTestNGMethod. clone()
static ITestNGMethod[]
MethodHelper. collectAndOrderMethods(List<ITestNGMethod> methods, boolean forTests, RunInfo runInfo, IAnnotationFinder finder, boolean unique, List<ITestNGMethod> outExcludedMethods, Comparator<ITestNGMethod> comparator)
Collects and orders test or configuration methodsstatic ITestNGMethod[]
ConfigurationMethod. createAfterConfigurationMethods(ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, Object instance)
static ITestNGMethod[]
ConfigurationMethod. createBeforeConfigurationMethods(ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, Object instance)
static ITestNGMethod[]
ConfigurationMethod. createClassConfigurationMethods(ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, Object instance)
static ITestNGMethod[]
ConfigurationMethod. createSuiteConfigurationMethods(ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, Object instance)
static ITestNGMethod[]
ConfigurationMethod. createTestConfigurationMethods(ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, Object instance)
static ITestNGMethod[]
ConfigurationMethod. createTestMethodConfigurationMethods(ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, Object instance)
protected static ITestNGMethod[]
MethodHelper. findDependedUponMethods(ITestNGMethod m, List<ITestNGMethod> methods)
Finds TestNG methods that the specified TestNG method depends uponprotected static ITestNGMethod[]
MethodHelper. findDependedUponMethods(ITestNGMethod m, ITestNGMethod[] methods)
Finds TestNG methods that the specified TestNG method depends uponprotected static ITestNGMethod[]
MethodGroupsHelper. findMethodsThatBelongToGroup(ITestNGMethod[] methods, String groupRegexp)
protected static ITestNGMethod[]
MethodGroupsHelper. findMethodsThatBelongToGroup(ITestNGMethod method, ITestNGMethod[] methods, String groupRegexp)
Only used if a group is missing to flag an error on that methodITestNGMethod[]
NoOpTestClass. getAfterClassMethods()
ITestNGMethod[]
TestNGMethodFinder. getAfterClassMethods(Class cls)
ITestNGMethod[]
TestNGMethodFinder. getAfterGroupsConfigurationMethods(Class clazz)
ITestNGMethod[]
NoOpTestClass. getAfterGroupsMethods()
ITestNGMethod[]
NoOpTestClass. getAfterSuiteMethods()
ITestNGMethod[]
TestNGMethodFinder. getAfterSuiteMethods(Class cls)
ITestNGMethod[]
NoOpTestClass. getAfterTestConfigurationMethods()
ITestNGMethod[]
TestNGMethodFinder. getAfterTestConfigurationMethods(Class clazz)
ITestNGMethod[]
NoOpTestClass. getAfterTestMethods()
ITestNGMethod[]
TestNGMethodFinder. getAfterTestMethods(Class cls)
ITestNGMethod[]
ConfigurationGroupMethods. getAllTestMethods()
ITestNGMethod[]
NoOpTestClass. getBeforeClassMethods()
ITestNGMethod[]
TestNGMethodFinder. getBeforeClassMethods(Class cls)
ITestNGMethod[]
TestNGMethodFinder. getBeforeGroupsConfigurationMethods(Class clazz)
ITestNGMethod[]
NoOpTestClass. getBeforeGroupsMethods()
ITestNGMethod[]
NoOpTestClass. getBeforeSuiteMethods()
ITestNGMethod[]
TestNGMethodFinder. getBeforeSuiteMethods(Class cls)
ITestNGMethod[]
NoOpTestClass. getBeforeTestConfigurationMethods()
ITestNGMethod[]
TestNGMethodFinder. getBeforeTestConfigurationMethods(Class clazz)
ITestNGMethod[]
NoOpTestClass. getBeforeTestMethods()
ITestNGMethod[]
TestNGMethodFinder. getBeforeTestMethods(Class cls)
ITestNGMethod
MethodInstance. getMethod()
ITestNGMethod
TestResult. getMethod()
ITestNGMethod
InvokedMethod. getTestMethod()
ITestNGMethod[]
NoOpTestClass. getTestMethods()
ITestNGMethod[]
TestNGMethodFinder. getTestMethods(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 List<IWorker<ITestNGMethod>>
AbstractParallelWorker. createWorkers(AbstractParallelWorker.Arguments arguments)
static Map<String,List<ITestNGMethod>>
MethodGroupsHelper. findGroupsMethods(Collection<ITestClass> classes, boolean before)
Extracts the map of groups and their corresponding methods from theclasses
.List<ITestNGMethod>
ConfigurationGroupMethods. getAfterGroupMethodsForGroup(String group)
Map<String,List<ITestNGMethod>>
ConfigurationGroupMethods. getAfterGroupsMethods()
Collection<ITestNGMethod>
ResultMap. getAllMethods()
List<ITestNGMethod>
ConfigurationGroupMethods. getBeforeGroupMethodsForGroup(String group)
Map<String,List<ITestNGMethod>>
ConfigurationGroupMethods. getBeforeGroupsMethods()
static Comparator<ITestNGMethod>
Systematiser. getComparator()
List<ITestNGMethod>
AbstractParallelWorker.Arguments. getMethods()
static List<ITestNGMethod>
MethodHelper. getMethodsDependedUpon(ITestNGMethod method, ITestNGMethod[] methods, Comparator<ITestNGMethod> comparator)
List<ITestNGMethod>
TestMethodWorker. getTasks()
static List<ITestNGMethod>
MethodHelper. invokedMethodsToMethods(Collection<IInvokedMethod> invokedMethods)
static List<ITestNGMethod>
MethodHelper. methodInstancesToMethods(List<IMethodInstance> methodInstances)
static List<ITestNGMethod>
MethodHelper. uniqueMethodList(Collection<List<ITestNGMethod>> methods)
Extracts the unique list ofITestNGMethod
s.Methods in org.testng.internal with parameters of type ITestNGMethod Modifier and Type Method Description void
ITestResultNotifier. addFailedButWithinSuccessPercentageTest(ITestNGMethod tm, ITestResult tr)
void
ITestResultNotifier. addFailedTest(ITestNGMethod tm, ITestResult tr)
void
ITestResultNotifier. addPassedTest(ITestNGMethod tm, ITestResult tr)
void
ResultMap. addResult(ITestResult result, ITestNGMethod method)
void
ITestResultNotifier. addSkippedTest(ITestNGMethod tm, ITestResult tr)
static String
Utils. annotationFormFor(ITestNGMethod method)
Given a TestNG method, returns the corresponding annotation based on the method typestatic int
Utils. calculateInvokedMethodCount(ITestNGMethod[] methods)
protected static String
MethodHelper. calculateMethodCanonicalName(ITestNGMethod m)
protected static long
MethodHelper. calculateTimeOut(ITestNGMethod tm)
static ITestNGMethod[]
ConfigurationMethod. createAfterConfigurationMethods(ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, Object instance)
static ITestNGMethod[]
ConfigurationMethod. createBeforeConfigurationMethods(ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, Object instance)
static ITestNGMethod[]
ConfigurationMethod. createClassConfigurationMethods(ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, Object instance)
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)
static ITestNGMethod[]
ConfigurationMethod. createSuiteConfigurationMethods(ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, Object instance)
static ITestNGMethod[]
ConfigurationMethod. createTestConfigurationMethods(ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, Object instance)
static ITestNGMethod[]
ConfigurationMethod. createTestMethodConfigurationMethods(ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, Object instance)
static String
Utils. detailedMethodName(ITestNGMethod method, boolean fqn)
protected static ITestNGMethod[]
MethodHelper. findDependedUponMethods(ITestNGMethod m, List<ITestNGMethod> methods)
Finds TestNG methods that the specified TestNG method depends uponprotected static ITestNGMethod[]
MethodHelper. findDependedUponMethods(ITestNGMethod m, ITestNGMethod[] methods)
Finds TestNG methods that the specified TestNG method depends uponprotected static ITestNGMethod[]
MethodGroupsHelper. findMethodsThatBelongToGroup(ITestNGMethod[] methods, String groupRegexp)
protected static ITestNGMethod[]
MethodGroupsHelper. findMethodsThatBelongToGroup(ITestNGMethod method, ITestNGMethod[] methods, String groupRegexp)
Only used if a group is missing to flag an error on that methodstatic void
MethodInheritance. fixMethodInheritance(ITestNGMethod[] methods, boolean before)
Fix the methodsDependedUpon to make sure that @Configuration methods respect inheritance (before methods are invoked in the order Base first and after methods are invoked in the order Child first)static void
MethodHelper. fixMethodsWithClass(ITestNGMethod[] methods, ITestClass testCls, List<ITestNGMethod> methodList)
Set<ITestResult>
ITestResultNotifier. getFailedTests(ITestNGMethod tm)
static List<ITestNGMethod>
MethodHelper. getMethodsDependedUpon(ITestNGMethod method, ITestNGMethod[] methods, Comparator<ITestNGMethod> comparator)
Set<ITestResult>
ITestResultNotifier. getPassedTests(ITestNGMethod tm)
Set<ITestResult>
ResultMap. getResults(ITestNGMethod method)
Set<ITestResult>
ITestResultNotifier. getSkippedTests(ITestNGMethod tm)
static ParameterHolder
Parameters. handleParameters(ITestNGMethod testMethod, Map<String,String> allParameterNames, Object instance, Parameters.MethodParameters methodParams, XmlSuite xmlSuite, IAnnotationFinder annotationFinder, Object fedInstance)
If the method has parameters, fill them in.static ParameterHolder
Parameters. handleParameters(ITestNGMethod testMethod, Map<String,String> allParameterNames, Object instance, Parameters.MethodParameters methodParams, XmlSuite xmlSuite, IAnnotationFinder annotationFinder, Object fedInstance, Collection<IDataProviderListener> dataProviderListeners)
If the method has parameters, fill them in.boolean
RunInfo. includeMethod(ITestNGMethod tm, boolean isTestMethod)
boolean
XmlMethodSelector. includeMethod(IMethodSelectorContext context, ITestNGMethod tm, boolean isTestMethod)
boolean
Bsh. includeMethodFromExpression(String expression, ITestNGMethod tm)
boolean
BshMock. includeMethodFromExpression(String expression, ITestNGMethod tm)
boolean
IBsh. includeMethodFromExpression(String expression, ITestNGMethod tm)
protected int
TestMethodWorker. indexOf(ITestNGMethod tm, ITestNGMethod[] allTestMethods)
void
TestResult. init(IClass testClass, Object instance, ITestNGMethod method, Throwable throwable, long start, long end, ITestContext context)
void
IInvoker. invokeConfigurations(IClass testClass, ITestNGMethod[] allMethods, XmlSuite suite, Map<String,String> parameters, Object[] parameterValues, Object instance)
Invoke configuration methods if they belong to the same TestClass passed in parameter..void
Invoker. invokeConfigurations(IClass testClass, ITestNGMethod[] allMethods, XmlSuite suite, Map<String,String> params, Object[] parameterValues, Object instance)
Invoke configuration methods if they belong to the same TestClass passed in parameter..protected static Iterator<Object[]>
MethodInvocationHelper. invokeDataProvider(Object instance, Method dataProvider, ITestNGMethod method, ITestContext testContext, Object fedInstance, IAnnotationFinder annotationFinder)
protected static void
MethodInvocationHelper. invokeMethodConsideringTimeout(ITestNGMethod tm, ConstructorOrMethod method, Object targetInstance, Object[] params, ITestResult testResult)
List<ITestResult>
IInvoker. invokeTestMethods(ITestNGMethod testMethod, XmlSuite suite, Map<String,String> parameters, ConfigurationGroupMethods groupMethods, Object instance, ITestContext testContext)
Invoke the given methodList<ITestResult>
Invoker. invokeTestMethods(ITestNGMethod testMethod, XmlSuite suite, Map<String,String> testParameters, ConfigurationGroupMethods groupMethods, Object instance, ITestContext testContext)
Invoke all the test methods.protected void
TestMethodWorker. invokeTestMethods(ITestNGMethod tm, Object instance, ITestContext testContext)
protected static void
MethodInvocationHelper. invokeWithTimeout(ITestNGMethod tm, Object instance, Object[] parameterValues, ITestResult testResult)
Invokes a method on a separate thread in order to allow us to timeout the invocation.protected static void
MethodInvocationHelper. invokeWithTimeout(ITestNGMethod tm, Object instance, Object[] parameterValues, ITestResult testResult, IHookable hookable)
boolean
ConfigurationGroupMethods. isLastMethodForGroup(String group, ITestNGMethod method)
static Parameters.MethodParameters
Parameters.MethodParameters. newInstance(Map<String,String> params, ITestNGMethod testNGMethod, ITestContext context)
TestException
ExpectedExceptionsHolder. noException(ITestNGMethod testMethod)
void
ConfigurationGroupMethods. removeBeforeMethod(String group, ITestNGMethod method)
void
ResultMap. removeResult(ITestNGMethod m)
void
NoOpTestClass. setAfterTestMethod(ITestNGMethod[] afterTestMethods)
void
NoOpTestClass. setBeforeTestMethods(ITestNGMethod[] beforeTestMethods)
void
TestResult. setMethod(ITestNGMethod method)
Method parameters in org.testng.internal with type arguments of type ITestNGMethod Modifier and Type Method Description static int
Utils. calculateInvokedMethodCount(List<ITestNGMethod> methods)
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 methodsint
TestMethodWorker. compareTo(IWorker<ITestNGMethod> other)
static void
Utils. dumpMethods(List<ITestNGMethod> allMethods)
Deprecated.Unusedprotected static ITestNGMethod[]
MethodHelper. findDependedUponMethods(ITestNGMethod m, List<ITestNGMethod> methods)
Finds TestNG methods that the specified TestNG method depends uponprotected static void
MethodGroupsHelper. findGroupTransitiveClosure(XmlMethodSelector xms, List<ITestNGMethod> includedMethods, List<ITestNGMethod> allMethods, String[] includedGroups, Set<String> outGroups, Set<ITestNGMethod> outMethods)
static void
MethodHelper. fixMethodsWithClass(ITestNGMethod[] methods, ITestClass testCls, List<ITestNGMethod> methodList)
static List<ITestNGMethod>
MethodHelper. getMethodsDependedUpon(ITestNGMethod method, ITestNGMethod[] methods, Comparator<ITestNGMethod> comparator)
AbstractParallelWorker.Arguments.Builder
AbstractParallelWorker.Arguments.Builder. methods(List<ITestNGMethod> methods)
static List<IMethodInstance>
MethodHelper. methodsToMethodInstances(List<ITestNGMethod> sl)
void
MethodSelectorDescriptor. setTestMethods(List<ITestNGMethod> testMethods)
void
RunInfo. setTestMethods(List<ITestNGMethod> testMethods)
void
XmlMethodSelector. setTestMethods(List<ITestNGMethod> testMethods)
static List<ITestNGMethod>
MethodHelper. uniqueMethodList(Collection<List<ITestNGMethod>> methods)
Extracts the unique list ofITestNGMethod
s.Constructor parameters in org.testng.internal with type arguments of type ITestNGMethod Constructor Description ConfigurationGroupMethods(ITestNGMethod[] allMethods, Map<String,List<ITestNGMethod>> beforeGroupsMethods, Map<String,List<ITestNGMethod>> afterGroupsMethods)
TestNGMethodFinder(RunInfo runInfo, IAnnotationFinder annotationFinder, Comparator<ITestNGMethod> comparator)
-
Uses of ITestNGMethod in org.testng.internal.annotations
Methods in org.testng.internal.annotations that return ITestNGMethod Modifier and Type Method Description static ITestNGMethod[]
AnnotationHelper. findMethodsWithAnnotation(Class<?> rootClass, Class<? extends IAnnotation> annotationClass, IAnnotationFinder annotationFinder, XmlTest xmlTest)
Delegation method for creating the list ofITestMethod
s 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, Class<A> annotationClass)
<A extends IAnnotation>
AJDK15AnnotationFinder. findAnnotation(ITestNGMethod tm, Class<A> annotationClass)
static ITestAnnotation
AnnotationHelper. findTest(IAnnotationFinder finder, ITestNGMethod m)
-
Uses of ITestNGMethod in org.testng.junit
Classes in org.testng.junit that implement ITestNGMethod Modifier and Type Class Description class
JUnit3TestMethod
class
JUnit4TestMethod
class
JUnitTestMethod
Methods in org.testng.junit that return types with arguments of type ITestNGMethod Modifier and Type Method Description List<ITestNGMethod>
IJUnitTestRunner. getTestMethods()
List<ITestNGMethod>
JUnit4TestRunner. getTestMethods()
Needed from TestRunner in order to figure out what JUnit test methods were run.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 void
EmailableReporter. generateExceptionReport(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 StackTraceElement[]
StackTraceTools. getTestNGInstrastructure(StackTraceElement[] stack, ITestNGMethod method)
Finds topmost position of the test method in the stack, or top of stack ifmethod
is not in it.static int
StackTraceTools. getTestRoot(StackTraceElement[] stack, ITestNGMethod method)
Finds topmost position of the test method in the stack, or top of stack ifmethod
is not in it.
-