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) |
protected static long |
calculateTimeOut(ITestNGMethod tm) |
static ITestNGMethod[] |
collectAndOrderMethods(List<ITestNGMethod> methods,
boolean forTests,
RunInfo runInfo,
IAnnotationFinder finder,
boolean unique,
List<ITestNGMethod> outExcludedMethods)
Collects and orders test or configuration methods
|
protected static Iterator<Object[]> |
createArrayIterator(Object[][] objects) |
protected static ITestNGMethod[] |
findDependedUponMethods(ITestNGMethod m,
ITestNGMethod[] methods)
Finds TestNG methods that the specified TestNG method depends upon
|
static List<ITestNGMethod> |
getMethodsDependedUpon(ITestNGMethod method,
ITestNGMethod[] methods) |
protected static boolean |
isEnabled(Class<?> objectClass,
IAnnotationFinder finder) |
protected static boolean |
isEnabled(ITestOrConfiguration test) |
protected static boolean |
isEnabled(Method m,
IAnnotationFinder finder) |
static List<ITestNGMethod> |
uniqueMethodList(Collection<List<ITestNGMethod>> methods)
Extracts the unique list of
ITestNGMethod s. |
public static ITestNGMethod[] collectAndOrderMethods(List<ITestNGMethod> methods, boolean forTests, RunInfo runInfo, IAnnotationFinder finder, boolean unique, 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(Class<?> objectClass, IAnnotationFinder finder)
protected static boolean isEnabled(Method m, IAnnotationFinder finder)
protected static boolean isEnabled(ITestOrConfiguration test)
public static List<ITestNGMethod> uniqueMethodList(Collection<List<ITestNGMethod>> methods)
ITestNGMethod
s.protected static String calculateMethodCanonicalName(ITestNGMethod m)
public static List<ITestNGMethod> getMethodsDependedUpon(ITestNGMethod method, ITestNGMethod[] methods)
protected static String calculateMethodCanonicalName(Class<?> methodClass, String methodName)
protected static long calculateTimeOut(ITestNGMethod tm)
Copyright © 2017. All Rights Reserved.