public class MethodHelper
extends java.lang.Object
Constructor and Description |
---|
MethodHelper() |
Modifier and Type | Method and Description |
---|---|
protected static java.lang.String |
calculateMethodCanonicalName(java.lang.Class<?> methodClass,
java.lang.String methodName) |
protected static java.lang.String |
calculateMethodCanonicalName(ITestNGMethod m) |
protected static long |
calculateTimeOut(ITestNGMethod tm) |
static ITestNGMethod[] |
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 methods
|
static void |
dumpInvokedMethodsInfoToConsole(java.util.Collection<IInvokedMethod> iInvokedMethods,
int currentVerbosity) |
protected static ITestNGMethod[] |
findDependedUponMethods(ITestNGMethod m,
ITestNGMethod[] methods)
Finds TestNG methods that the specified TestNG method depends upon
|
protected static ITestNGMethod[] |
findDependedUponMethods(ITestNGMethod m,
java.util.List<ITestNGMethod> methods)
Finds TestNG methods that the specified TestNG method depends upon
|
static void |
fixMethodsWithClass(ITestNGMethod[] methods,
ITestClass testCls,
java.util.List<ITestNGMethod> methodList) |
static java.util.List<ITestNGMethod> |
getMethodsDependedUpon(ITestNGMethod method,
ITestNGMethod[] methods,
java.util.Comparator<ITestNGMethod> comparator) |
static java.util.List<ITestNGMethod> |
invokedMethodsToMethods(java.util.Collection<IInvokedMethod> invokedMethods) |
protected static boolean |
isEnabled(java.lang.Class<?> objectClass,
IAnnotationFinder finder) |
protected static boolean |
isEnabled(ITestOrConfiguration test) |
protected static boolean |
isEnabled(java.lang.reflect.Method m,
IAnnotationFinder finder) |
static java.util.List<ITestNGMethod> |
methodInstancesToMethods(java.util.List<IMethodInstance> methodInstances) |
static java.util.List<IMethodInstance> |
methodsToMethodInstances(java.util.List<ITestNGMethod> sl) |
static java.util.List<ITestNGMethod> |
uniqueMethodList(java.util.Collection<java.util.List<ITestNGMethod>> methods)
Extracts the unique list of
ITestNGMethod s. |
public static ITestNGMethod[] collectAndOrderMethods(java.util.List<ITestNGMethod> methods, boolean forTests, RunInfo runInfo, IAnnotationFinder finder, boolean unique, java.util.List<ITestNGMethod> outExcludedMethods, java.util.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, java.util.List<ITestNGMethod> methods)
m
- TestNG methodmethods
- list of methods to search for depended upon methodsprotected static ITestNGMethod[] findDependedUponMethods(ITestNGMethod m, ITestNGMethod[] methods)
m
- TestNG methodmethods
- list of methods to search for depended upon methodsprotected static boolean isEnabled(java.lang.Class<?> objectClass, IAnnotationFinder finder)
protected static boolean isEnabled(java.lang.reflect.Method m, IAnnotationFinder finder)
protected static boolean isEnabled(ITestOrConfiguration test)
public static java.util.List<ITestNGMethod> uniqueMethodList(java.util.Collection<java.util.List<ITestNGMethod>> methods)
ITestNGMethod
s.protected static java.lang.String calculateMethodCanonicalName(ITestNGMethod m)
public static java.util.List<ITestNGMethod> getMethodsDependedUpon(ITestNGMethod method, ITestNGMethod[] methods, java.util.Comparator<ITestNGMethod> comparator)
public static void fixMethodsWithClass(ITestNGMethod[] methods, ITestClass testCls, java.util.List<ITestNGMethod> methodList)
public static java.util.List<ITestNGMethod> invokedMethodsToMethods(java.util.Collection<IInvokedMethod> invokedMethods)
public static java.util.List<IMethodInstance> methodsToMethodInstances(java.util.List<ITestNGMethod> sl)
public static java.util.List<ITestNGMethod> methodInstancesToMethods(java.util.List<IMethodInstance> methodInstances)
public static void dumpInvokedMethodsInfoToConsole(java.util.Collection<IInvokedMethod> iInvokedMethods, int currentVerbosity)
protected static java.lang.String calculateMethodCanonicalName(java.lang.Class<?> methodClass, java.lang.String methodName)
protected static long calculateTimeOut(ITestNGMethod tm)