Uses of Interface
org.testng.ITestNGMethod
-
Packages that use ITestNGMethod Package Description org.testng org.testng.internal org.testng.internal.annotations org.testng.internal.invokers org.testng.internal.thread 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, 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)
ITestNGMethod
IMethodInstance. getMethod()
ITestNGMethod
ITestResult. getMethod()
ITestNGMethod
DependencyMap. getMethodDependingOn(java.lang.String methodName, ITestNGMethod fromMethod)
ITestNGMethod
IInvokedMethod. 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.default java.util.Set<ITestNGMethod>
ITestNGMethod. downstreamDependencies()
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.Map<java.lang.String,java.util.Collection<ITestNGMethod>>
ISuite. getMethodsByGroups()
Retrieves the map of groups and their associated test methods.java.util.Map<java.lang.String,java.util.Collection<ITestNGMethod>>
SuiteRunner. getMethodsByGroups()
java.util.List<ITestNGMethod>
DependencyMap. getMethodsThatBelongTo(java.lang.String group, ITestNGMethod fromMethod)
default java.util.List<ITestNGMethod>
ITestResult. getSkipCausedBy()
default java.util.Set<ITestNGMethod>
ITestNGMethod. upstreamDependencies()
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
TestRunner. addSkippedTest(ITestNGMethod tm, ITestResult tr)
default void
IDataProviderListener. afterDataProviderExecution(IDataProviderMethod dataProviderMethod, ITestNGMethod method, ITestContext iTestContext)
This method gets invoked just after a data provider is invoked.default void
IConfigurationListener. beforeConfiguration(ITestResult tr, ITestNGMethod tm)
Invoked before a configuration method is invoked.default void
IDataProviderListener. beforeDataProviderExecution(IDataProviderMethod dataProviderMethod, ITestNGMethod method, ITestContext iTestContext)
This method gets invoked just before a data provider is invoked.static ITestNGMethod
TestNGUtils. 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)
ITestNGMethod
DependencyMap. 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)
boolean
IMethodSelector. includeMethod(IMethodSelectorContext context, ITestNGMethod method, boolean isTestMethod)
java.util.Iterator<java.lang.Object[]>
IDataProviderInterceptor. intercept(java.util.Iterator<java.lang.Object[]> original, IDataProviderMethod dataProviderMethod, ITestNGMethod method, ITestContext iTestContext)
default void
IConfigurationListener. onConfigurationFailure(ITestResult tr, ITestNGMethod tm)
Invoked whenever a configuration method failed.default void
IConfigurationListener. onConfigurationSkip(ITestResult tr, ITestNGMethod tm)
Invoked whenever a configuration method was skipped.default void
IConfigurationListener. onConfigurationSuccess(ITestResult tr, ITestNGMethod tm)
Invoked whenever a configuration method succeeded.default void
IDataProviderListener. onDataProviderFailure(ITestNGMethod method, ITestContext ctx, java.lang.RuntimeException t)
This method gets invoked when the data provider encounters an exceptionboolean
ClassMethodMap. removeAndCheckIfLast(ITestNGMethod m, java.lang.Object instance)
Remove the method from this map.void
IResultMap. 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.void
TestListenerAdapter. setAllTestMethods(java.util.List<ITestNGMethod> allTestMethods)
void
IMethodSelector. 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 ConfigurationNotInvokedException(ITestNGMethod tm)
DependencyMap(ITestNGMethod[] methods)
TestNotInvokedException(ITestNGMethod tm)
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, 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> invokedMethodListener, org.testng.SuiteRunner.TestListenersContainer container, java.util.Collection<IClassListener> classListeners, DataProviderHolder holder, java.util.Comparator<ITestNGMethod> comparator)
SuiteRunner(IConfiguration configuration, XmlSuite suite, java.lang.String outputDir, ITestRunnerFactory runnerFactory, java.util.Comparator<ITestNGMethod> comparator)
TestRunner(IConfiguration configuration, ISuite suite, XmlTest test, boolean skipFailedInvocationCounts, java.util.Collection<IInvokedMethodListener> invokedMethodListeners, java.util.List<IClassListener> classListeners, java.util.Comparator<ITestNGMethod> comparator, ISuiteRunnerListener suiteRunner)
TestRunner(IConfiguration configuration, ISuite suite, XmlTest test, java.lang.String outputDirectory, IAnnotationFinder finder, boolean skipFailedInvocationCounts, java.util.Collection<IInvokedMethodListener> invokedMethodListeners, java.util.List<IClassListener> classListeners, java.util.Comparator<ITestNGMethod> comparator, DataProviderHolder otherHolder, ISuiteRunnerListener suiteRunner)
-
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
LiteWeightTestNGMethod
class
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_beforeGroupsMethods
protected ITestNGMethod[]
NoOpTestClass. m_testMethods
Fields in org.testng.internal with type parameters of type ITestNGMethod Modifier and Type Field Description protected java.util.List<ITestNGMethod>
NoOpTestClass. m_afterClassMethods
protected java.util.List<ITestNGMethod>
NoOpTestClass. m_afterGroupsMethods
protected java.util.List<ITestNGMethod>
NoOpTestClass. m_afterSuiteMethods
protected java.util.List<ITestNGMethod>
NoOpTestClass. m_afterTestConfMethods
protected java.util.List<ITestNGMethod>
NoOpTestClass. m_afterTestMethods
protected java.util.List<ITestNGMethod>
NoOpTestClass. m_beforeClassMethods
protected java.util.List<ITestNGMethod>
NoOpTestClass. m_beforeSuiteMethods
protected java.util.List<ITestNGMethod>
NoOpTestClass. m_beforeTestConfMethods
protected java.util.List<ITestNGMethod>
NoOpTestClass. m_beforeTestMethods
Methods in org.testng.internal that return ITestNGMethod Modifier and Type Method Description abstract ITestNGMethod
BaseTestMethod. clone()
ITestNGMethod
FactoryMethod. clone()
ITestNGMethod
LiteWeightTestNGMethod. clone()
ITestNGMethod
WrappedTestNGMethod. 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. createBeforeConfigurationMethods(ITestObjectFactory objectFactory, ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, IObject.IdentifiableObject instance)
protected static ITestNGMethod[]
MethodHelper. findDependedUponMethods(ITestNGMethod m, java.util.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 uponprotected static ITestNGMethod[]
MethodGroupsHelper. findMethodsThatBelongToGroup(ITestNGMethod[] methods, java.lang.String groupRegexp)
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[]
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)
ITestNGMethod[]
TestMethodContainer. getItems()
ITestNGMethod
MethodInstance. getMethod()
ITestNGMethod
TestResult. getMethod()
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 java.util.List<ITestNGMethod>
ITestClassConfigInfo. allAfterClassMethods(ITestClass tc)
static java.util.List<ITestNGMethod>
ITestClassConfigInfo. allBeforeClassMethods(ITestClass tc)
static java.util.Comparator<ITestNGMethod>
MethodSorting. basedOn()
java.util.Comparator<ITestNGMethod>
IOrderMethods. comparator()
static java.util.List<ITestNGMethod>
ConfigurationMethod. createAfterConfigurationMethods(ITestObjectFactory objectFactory, ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, IObject.IdentifiableObject instance)
static java.util.List<ITestNGMethod>
ConfigurationMethod. createClassConfigurationMethods(ITestObjectFactory objectFactory, ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, XmlTest xmlTest, IObject.IdentifiableObject instance)
static DynamicGraph<ITestNGMethod>
DynamicGraphHelper. createDynamicGraph(ITestNGMethod[] methods, XmlTest xmlTest)
static java.util.List<ITestNGMethod>
ConfigurationMethod. createSuiteConfigurationMethods(ITestObjectFactory objectFactory, ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, IObject.IdentifiableObject instance)
static java.util.List<ITestNGMethod>
ConfigurationMethod. createTestConfigurationMethods(ITestObjectFactory objectFactory, ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, XmlTest xmlTest, IObject.IdentifiableObject instance)
static java.util.List<ITestNGMethod>
ConfigurationMethod. createTestMethodConfigurationMethods(ITestObjectFactory objectFactory, ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, XmlTest xmlTest, IObject.IdentifiableObject instance)
java.util.Set<ITestNGMethod>
BaseTestMethod. downstreamDependencies()
static java.util.Map<java.lang.String,java.util.List<ITestNGMethod>>
MethodGroupsHelper. findGroupsMethods(java.util.Collection<ITestClass> classes, boolean before)
java.util.List<ITestNGMethod>
ConfigurationGroupMethods. getAfterGroupMethods(ITestNGMethod testMethod)
java.util.Map<java.lang.String,java.util.List<ITestNGMethod>>
ConfigurationGroupMethods. getAfterGroupsMethods()
java.util.List<ITestNGMethod>
ITestClassConfigInfo. getAllAfterClassMethods()
java.util.List<ITestNGMethod>
ITestClassConfigInfo. getAllBeforeClassMethods()
get all before class config methodsjava.util.Collection<ITestNGMethod>
ResultMap. getAllMethods()
java.util.List<ITestNGMethod>
ConfigurationGroupMethods. getBeforeGroupMethodsForGroup(java.lang.String[] groups)
java.util.Map<java.lang.String,java.util.List<ITestNGMethod>>
ConfigurationGroupMethods. getBeforeGroupsMethods()
java.util.List<ITestNGMethod>
ITestClassConfigInfo. getInstanceAfterClassMethods(java.lang.Object instance)
java.util.List<ITestNGMethod>
ITestClassConfigInfo. getInstanceBeforeClassMethods(java.lang.Object instance)
Query the instance before class methods from config methods map.static java.util.List<ITestNGMethod>
MethodHelper. getMethodsDependedUpon(ITestNGMethod method, ITestNGMethod[] methods, java.util.Comparator<ITestNGMethod> comparator)
java.util.List<ITestNGMethod>
TestResult. getSkipCausedBy()
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 ofITestNGMethod
s.java.util.Set<ITestNGMethod>
BaseTestMethod. upstreamDependencies()
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
ITestResultNotifier. addSkippedTest(ITestNGMethod tm, ITestResult tr)
static java.lang.String
Utils. annotationFormFor(ITestNGMethod method)
Given a TestNG method, returns the corresponding annotation based on the method typeprotected static java.lang.String
MethodHelper. calculateMethodCanonicalName(ITestNGMethod m)
static long
MethodHelper. calculateTimeOut(ITestNGMethod tm)
int
TestMethodComparator. compare(ITestNGMethod o1, ITestNGMethod o2)
static int
TestMethodComparator. compareStatic(ITestNGMethod o1, ITestNGMethod o2)
static java.util.List<ITestNGMethod>
ConfigurationMethod. createAfterConfigurationMethods(ITestObjectFactory objectFactory, ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, IObject.IdentifiableObject instance)
static ITestNGMethod[]
ConfigurationMethod. createBeforeConfigurationMethods(ITestObjectFactory objectFactory, ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, IObject.IdentifiableObject instance)
static java.util.List<ITestNGMethod>
ConfigurationMethod. createClassConfigurationMethods(ITestObjectFactory objectFactory, ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, XmlTest xmlTest, IObject.IdentifiableObject 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@Configuration
Method
.static DynamicGraph<ITestNGMethod>
DynamicGraphHelper. createDynamicGraph(ITestNGMethod[] methods, XmlTest xmlTest)
static java.util.List<ITestNGMethod>
ConfigurationMethod. createSuiteConfigurationMethods(ITestObjectFactory objectFactory, ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, IObject.IdentifiableObject instance)
static java.util.List<ITestNGMethod>
ConfigurationMethod. createTestConfigurationMethods(ITestObjectFactory objectFactory, ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, XmlTest xmlTest, IObject.IdentifiableObject instance)
static java.util.List<ITestNGMethod>
ConfigurationMethod. createTestMethodConfigurationMethods(ITestObjectFactory objectFactory, ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, XmlTest xmlTest, IObject.IdentifiableObject instance)
static java.lang.String
Utils. detailedMethodName(ITestNGMethod method)
static java.lang.String
Utils. detailedMethodName(ITestNGMethod method, boolean fqn)
static void
MethodHelper. dumpInvokedMethodInfoToConsole(ITestNGMethod[] methods, int currentVerbosity)
protected static ITestNGMethod[]
MethodHelper. findDependedUponMethods(ITestNGMethod m, java.util.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 uponprotected static ITestNGMethod[]
MethodGroupsHelper. findMethodsThatBelongToGroup(ITestNGMethod[] methods, java.lang.String groupRegexp)
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 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, java.util.List<ITestNGMethod> methodList)
java.util.List<ITestNGMethod>
ConfigurationGroupMethods. getAfterGroupMethods(ITestNGMethod testMethod)
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 ParameterHolder
Parameters. handleParameters(ITestObjectFactory objectFactory, ITestNGMethod testMethod, java.util.Map<java.lang.String,java.lang.String> allParameterNames, java.lang.Object instance, Parameters.MethodParameters methodParams, XmlSuite xmlSuite, IAnnotationFinder annotationFinder, java.lang.Object fedInstance, DataProviderHolder holder)
If the method has parameters, fill them in.static ParameterHolder
Parameters. handleParameters(ITestObjectFactory objectFactory, ITestNGMethod testMethod, java.util.Map<java.lang.String,java.lang.String> allParameterNames, java.lang.Object instance, Parameters.MethodParameters methodParams, XmlSuite xmlSuite, IAnnotationFinder annotationFinder, java.lang.Object fedInstance, DataProviderHolder holder, java.lang.String annotationName)
If the method has parameters, fill them in.boolean
RunInfo. includeMethod(ITestNGMethod tm, boolean isTestMethod)
boolean
XmlMethodSelector. includeMethod(IMethodSelectorContext context, ITestNGMethod tm, boolean isTestMethod)
static TestResult
TestResult. newContextAwareTestResult(ITestNGMethod method, ITestContext ctx)
static TestResult
TestResult. newEndTimeAwareTestResult(ITestNGMethod method, ITestContext ctx, java.lang.Throwable t, long start)
static Parameters.MethodParameters
Parameters.MethodParameters. newInstance(java.util.Map<java.lang.String,java.lang.String> params, ITestNGMethod testNGMethod, ITestContext context)
static TestResult
TestResult. newTestResultFor(ITestNGMethod method)
static TestResult
TestResult. newTestResultFrom(TestResult result, ITestNGMethod method, ITestContext ctx, long start)
static TestResult
TestResult. newTestResultWithCauseAs(ITestNGMethod method, ITestContext ctx, java.lang.Throwable t)
void
ResultMap. removeResult(ITestNGMethod m)
static void
TestListenerHelper. runPostConfigurationListeners(ITestResult tr, ITestNGMethod tm, java.util.List<IConfigurationListener> listeners, IConfigurationListener internal, ListenerComparator comparator)
static void
TestListenerHelper. runPreConfigurationListeners(ITestResult tr, ITestNGMethod tm, java.util.List<IConfigurationListener> listeners, IConfigurationListener internal, ListenerComparator comparator)
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 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 methodsprotected static ITestNGMethod[]
MethodHelper. findDependedUponMethods(ITestNGMethod m, java.util.List<ITestNGMethod> methods)
Finds TestNG methods that the specified TestNG method depends uponprotected static void
MethodGroupsHelper. findGroupTransitiveClosure(java.util.List<ITestNGMethod> includedMethods, java.util.List<ITestNGMethod> allMethods, java.lang.String[] includedGroups, java.util.Set<java.lang.String> outGroups, java.util.Set<ITestNGMethod> outMethods)
static void
MethodHelper. 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)
static java.util.List<IMethodInstance>
MethodHelper. methodsToMethodInstances(java.util.List<ITestNGMethod> sl)
void
BaseTestMethod. setDownstreamDependencies(java.util.Set<ITestNGMethod> methods)
void
MethodSelectorDescriptor. setTestMethods(java.util.List<ITestNGMethod> testMethods)
void
RunInfo. setTestMethods(java.util.List<ITestNGMethod> testMethods)
void
XmlMethodSelector. setTestMethods(java.util.List<ITestNGMethod> testMethods)
void
BaseTestMethod. setUpstreamDependencies(java.util.Set<ITestNGMethod> methods)
static java.util.List<ITestNGMethod>
MethodHelper. uniqueMethodList(java.util.Collection<java.util.List<ITestNGMethod>> methods)
Extracts the unique list ofITestNGMethod
s.Constructors in org.testng.internal with parameters of type ITestNGMethod Constructor Description ClonedMethod(ITestNGMethod method, java.lang.reflect.Method javaMethod)
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 ITestNGMethod Constructor Description ConfigurationGroupMethods(IContainer<ITestNGMethod> container, java.util.Map<java.lang.String,java.util.List<ITestNGMethod>> beforeGroupsMethods, java.util.Map<java.lang.String,java.util.List<ITestNGMethod>> afterGroupsMethods)
ConfigurationGroupMethods(IContainer<ITestNGMethod> container, java.util.Map<java.lang.String,java.util.List<ITestNGMethod>> beforeGroupsMethods, java.util.Map<java.lang.String,java.util.List<ITestNGMethod>> afterGroupsMethods)
TestNGMethodFinder(ITestObjectFactory objectFactory, 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(ITestObjectFactory objectFactory, java.lang.Class<?> rootClass, java.lang.Class<? extends IAnnotation> annotationClass, IAnnotationFinder annotationFinder, XmlTest xmlTest)
Methods in org.testng.internal.annotations with parameters of type ITestNGMethod Modifier and Type Method Description <A extends IAnnotation>
AIAnnotationFinder. findAnnotation(ITestNGMethod m, java.lang.Class<A> annotationClass)
<A extends IAnnotation>
AJDK15AnnotationFinder. findAnnotation(ITestNGMethod tm, java.lang.Class<A> annotationClass)
static ITestAnnotation
AnnotationHelper. findTest(IAnnotationFinder finder, ITestNGMethod m)
-
Uses of ITestNGMethod in org.testng.internal.invokers
Fields in org.testng.internal.invokers declared as ITestNGMethod Modifier and Type Field Description protected ITestNGMethod
ExpectedExceptionsHolder. method
protected ITestNGMethod
Arguments. tm
Methods in org.testng.internal.invokers that return ITestNGMethod Modifier and Type Method Description ITestNGMethod[]
TestMethodArguments. getAfterMethods()
ITestNGMethod[]
TestMethodArguments. getBeforeMethods()
ITestNGMethod[]
ConfigMethodArguments. getConfigMethods()
ITestNGMethod
Arguments. getTestMethod()
ITestNGMethod
InvokedMethod. getTestMethod()
Methods in org.testng.internal.invokers that return types with arguments of type ITestNGMethod Modifier and Type Method Description abstract java.util.List<IWorker<ITestNGMethod>>
AbstractParallelWorker. createWorkers(AbstractParallelWorker.Arguments arguments)
java.util.List<ITestNGMethod>
AbstractParallelWorker.Arguments. getMethods()
java.util.List<ITestNGMethod>
TestMethodWorker. getTasks()
Methods in org.testng.internal.invokers with parameters of type ITestNGMethod Modifier and Type Method Description ConfigMethodArguments.Builder
ConfigMethodArguments.Builder. forTestMethod(ITestNGMethod currentTestMethod)
GroupConfigMethodArguments.Builder
GroupConfigMethodArguments.Builder. forTestMethod(ITestNGMethod testMethod)
TestMethodArguments.Builder
TestMethodArguments.Builder. forTestMethod(ITestNGMethod tm)
boolean
IConfigInvoker. hasConfigurationFailureFor(ITestNGMethod testNGMethod, java.lang.String[] groups, IClass testClass, java.lang.Object instance)
boolean
IConfigInvoker. hasConfigurationFailureFor(ITestNGMethod configMethod, ITestNGMethod testNGMethod, java.lang.String[] groups, IClass testClass, java.lang.Object instance)
protected int
TestMethodWorker. indexOf(ITestNGMethod tm, ITestNGMethod[] allTestMethods)
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 void
MethodInvocationHelper. invokeMethodConsideringTimeout(ITestNGMethod tm, ConstructorOrMethod method, java.lang.Object targetInstance, java.lang.Object[] params, ITestResult testResult, IConfiguration config)
java.util.List<ITestResult>
ITestInvoker. invokeTestMethods(ITestNGMethod testMethod, ConfigurationGroupMethods groupMethods, java.lang.Object instance, ITestContext context)
protected void
TestMethodWorker. invokeTestMethods(ITestNGMethod tm, java.lang.Object instance)
protected static void
MethodInvocationHelper. invokeWithTimeout(IConfiguration config, 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 boolean
MethodInvocationHelper. invokeWithTimeout(IConfiguration config, ITestNGMethod tm, java.lang.Object instance, java.lang.Object[] parameterValues, ITestResult testResult, IHookable hookable)
TestException
ExpectedExceptionsHolder. noException(ITestNGMethod testMethod)
default ITestResult
ITestInvoker. registerSkippedTestResult(ITestNGMethod testMethod, long start, java.lang.Throwable throwable)
ITestResult
ITestInvoker. registerSkippedTestResult(ITestNGMethod testMethod, long start, java.lang.Throwable throwable, ITestResult source)
TestMethodArguments.Builder
TestMethodArguments.Builder. usingAfterMethods(ITestNGMethod[] afterMethods)
TestMethodArguments.Builder
TestMethodArguments.Builder. usingBeforeMethods(ITestNGMethod[] beforeMethods)
ConfigMethodArguments.Builder
ConfigMethodArguments.Builder. usingConfigMethodsAs(ITestNGMethod[] allMethods)
Method parameters in org.testng.internal.invokers with type arguments of type ITestNGMethod Modifier and Type Method Description int
TestMethodWorker. compareTo(IWorker<ITestNGMethod> other)
AbstractParallelWorker.Arguments.Builder
AbstractParallelWorker.Arguments.Builder. methods(java.util.List<ITestNGMethod> methods)
ConfigMethodArguments.Builder
ConfigMethodArguments.Builder. usingConfigMethodsAs(java.util.Collection<ITestNGMethod> allMethods)
Constructors in org.testng.internal.invokers with parameters of type ITestNGMethod Constructor Description Arguments(java.lang.Object instance, ITestNGMethod tm, java.util.Map<java.lang.String,java.lang.String> params)
ExpectedExceptionsHolder(IAnnotationFinder finder, ITestNGMethod method, IExpectedExceptionsHolder holder)
InvokeMethodRunnable(ITestNGMethod thisMethod, java.lang.Object instance, java.lang.Object[] parameters, IHookable hookable, ITestResult testResult)
MethodArguments(java.lang.Object instance, ITestNGMethod tm, java.util.Map<java.lang.String,java.lang.String> params, java.lang.Object[] parameterValues)
TestMethodWithDataProviderMethodWorker(ITestInvoker testInvoker, ITestNGMethod testMethod, int parameterIndex, java.lang.Object[] parameterValues, java.lang.Object instance, java.util.Map<java.lang.String,java.lang.String> parameters, ITestClass testClass, ITestNGMethod[] beforeMethods, ITestNGMethod[] afterMethods, ConfigurationGroupMethods groupMethods, ITestContext testContext, boolean skipFailedInvocationCounts, int invocationCount, int failureCount, ITestResultNotifier notifier)
-
Uses of ITestNGMethod in org.testng.internal.thread
Constructors in org.testng.internal.thread with parameters of type ITestNGMethod Constructor Description ThreadTimeoutException(ITestNGMethod tm, long timeout)
-
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. getTestNGInfrastructure(java.lang.StackTraceElement[] stack, ITestNGMethod method)
static int
StackTraceTools. getTestRoot(java.lang.StackTraceElement[] stack, ITestNGMethod method)
-