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)
Collects and orders test or configuration methods
|
protected static java.util.Iterator<java.lang.Object[]> |
createArrayIterator(java.lang.Object[][] objects) |
protected static ITestNGMethod[] |
findDependedUponMethods(ITestNGMethod m,
ITestNGMethod[] methods)
Finds TestNG methods that the specified TestNG method depends upon
|
static java.util.List<ITestNGMethod> |
getMethodsDependedUpon(ITestNGMethod method,
ITestNGMethod[] methods) |
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> |
uniqueMethodList(java.util.Collection<java.util.List<ITestNGMethod>> methods)
Extracts the unique list of
ITestNGMethods. |
public static ITestNGMethod[] collectAndOrderMethods(java.util.List<ITestNGMethod> methods, boolean forTests, RunInfo runInfo, IAnnotationFinder finder, boolean unique, java.util.List<ITestNGMethod> outExcludedMethods)
methods - methods to be worked onforTests - true for test methods, false for configuration methodsrunInfo - finder - annotation finderunique - true for unique methods, false otherwiseoutExcludedMethods - protected 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)
ITestNGMethods.protected static java.lang.String calculateMethodCanonicalName(ITestNGMethod m)
public static java.util.List<ITestNGMethod> getMethodsDependedUpon(ITestNGMethod method, ITestNGMethod[] methods)
protected static java.util.Iterator<java.lang.Object[]> createArrayIterator(java.lang.Object[][] objects)
protected static java.lang.String calculateMethodCanonicalName(java.lang.Class<?> methodClass,
java.lang.String methodName)
protected static long calculateTimeOut(ITestNGMethod tm)