public class MethodHelper extends Object
| Constructor and Description |
|---|
MethodHelper() |
| Modifier and Type | Method and Description |
|---|---|
protected static String |
calculateMethodCanonicalName(Class<?> methodClass,
String methodName) |
protected static String |
calculateMethodCanonicalName(ITestNGMethod m) |
static long |
calculateTimeOut(ITestNGMethod tm) |
static void |
clear(Stream<Method> methods) |
static ITestNGMethod[] |
collectAndOrderMethods(List<ITestNGMethod> methods,
boolean forTests,
RunInfo runInfo,
IAnnotationFinder finder,
boolean unique,
List<ITestNGMethod> outExcludedMethods,
Comparator<ITestNGMethod> comparator)
Collects and orders test or configuration methods
|
static void |
dumpInvokedMethodInfoToConsole(ITestNGMethod[] methods,
int currentVerbosity) |
static ITestNGMethod[] |
findDependedUponMethods(ITestNGMethod m,
ITestNGMethod[] methods)
Finds TestNG methods that the specified TestNG method depends upon
|
protected static ITestNGMethod[] |
findDependedUponMethods(ITestNGMethod m,
List<ITestNGMethod> methods)
Finds TestNG methods that the specified TestNG method depends upon
|
static void |
fixMethodsWithClass(ITestNGMethod[] methods,
ITestClass testCls,
List<ITestNGMethod> methodList) |
static List<ITestNGMethod> |
getMethodsDependedUpon(ITestNGMethod method,
ITestNGMethod[] methods,
Comparator<ITestNGMethod> comparator) |
static boolean |
isAlwaysRun(IConfigurationAnnotation configurationAnnotation) |
static boolean |
isEnabled(Class<?> objectClass,
IAnnotationFinder finder) |
static boolean |
isEnabled(ITestOrConfiguration test) |
static boolean |
isEnabled(Method m,
IAnnotationFinder finder) |
static List<ITestNGMethod> |
methodInstancesToMethods(List<IMethodInstance> methodInstances) |
static List<IMethodInstance> |
methodsToMethodInstances(List<ITestNGMethod> sl) |
static List<ITestNGMethod> |
uniqueMethodList(Collection<List<ITestNGMethod>> methods)
Extracts the unique list of
ITestNGMethods. |
public static ITestNGMethod[] collectAndOrderMethods(List<ITestNGMethod> methods, boolean forTests, RunInfo runInfo, IAnnotationFinder finder, boolean unique, List<ITestNGMethod> outExcludedMethods, Comparator<ITestNGMethod> comparator)
methods - methods to be worked onforTests - true for test methods, false for configuration methodsrunInfo - - RunInfo object.finder - annotation finderunique - true for unique methods, false otherwiseoutExcludedMethods - - A List of excluded ITestNGMethod methods.protected static ITestNGMethod[] findDependedUponMethods(ITestNGMethod m, List<ITestNGMethod> methods)
m - TestNG methodmethods - list of methods to search for depended upon methodspublic static ITestNGMethod[] findDependedUponMethods(ITestNGMethod m, ITestNGMethod[] methods)
m - TestNG methodmethods - list of methods to search for depended upon methodspublic static boolean isEnabled(Class<?> objectClass, IAnnotationFinder finder)
public static boolean isEnabled(Method m, IAnnotationFinder finder)
public static boolean isEnabled(ITestOrConfiguration test)
public static boolean isAlwaysRun(IConfigurationAnnotation configurationAnnotation)
public static List<ITestNGMethod> uniqueMethodList(Collection<List<ITestNGMethod>> methods)
ITestNGMethods.protected static String calculateMethodCanonicalName(ITestNGMethod m)
public static List<ITestNGMethod> getMethodsDependedUpon(ITestNGMethod method, ITestNGMethod[] methods, Comparator<ITestNGMethod> comparator)
public static void fixMethodsWithClass(ITestNGMethod[] methods, ITestClass testCls, List<ITestNGMethod> methodList)
public static List<IMethodInstance> methodsToMethodInstances(List<ITestNGMethod> sl)
public static List<ITestNGMethod> methodInstancesToMethods(List<IMethodInstance> methodInstances)
public static void dumpInvokedMethodInfoToConsole(ITestNGMethod[] methods, int currentVerbosity)
protected static String calculateMethodCanonicalName(Class<?> methodClass, String methodName)
public static long calculateTimeOut(ITestNGMethod tm)
Copyright © 2025. All rights reserved.