Package org.testng
Class DependencyMap
- java.lang.Object
-
- org.testng.DependencyMap
-
public class DependencyMap extends java.lang.Object
Helper class to keep track of dependencies.
-
-
Field Summary
Fields Modifier and Type Field Description private ListMultiMap<java.lang.String,ITestNGMethod>
m_dependencies
private ListMultiMap<java.lang.String,ITestNGMethod>
m_groups
-
Constructor Summary
Constructors Constructor Description DependencyMap(ITestNGMethod[] methods)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static boolean
belongToDifferentClassHierarchy(ITestNGMethod baseClassMethod, ITestNGMethod derivedClassMethod)
private static java.lang.String
constructMethodNameUsingTestClass(java.lang.String currentMethodName, ITestNGMethod m)
ITestNGMethod
getMethodDependingOn(java.lang.String methodName, ITestNGMethod fromMethod)
java.util.List<ITestNGMethod>
getMethodsThatBelongTo(java.lang.String group, ITestNGMethod fromMethod)
private static boolean
hasInstance(ITestNGMethod baseClassMethod, ITestNGMethod derivedClassMethod)
private static boolean
isSameInstance(ITestNGMethod baseClassMethod, ITestNGMethod derivedClassMethod)
-
-
-
Field Detail
-
m_dependencies
private ListMultiMap<java.lang.String,ITestNGMethod> m_dependencies
-
m_groups
private ListMultiMap<java.lang.String,ITestNGMethod> m_groups
-
-
Constructor Detail
-
DependencyMap
public DependencyMap(ITestNGMethod[] methods)
-
-
Method Detail
-
getMethodsThatBelongTo
public java.util.List<ITestNGMethod> getMethodsThatBelongTo(java.lang.String group, ITestNGMethod fromMethod)
-
getMethodDependingOn
public ITestNGMethod getMethodDependingOn(java.lang.String methodName, ITestNGMethod fromMethod)
-
belongToDifferentClassHierarchy
private static boolean belongToDifferentClassHierarchy(ITestNGMethod baseClassMethod, ITestNGMethod derivedClassMethod)
-
hasInstance
private static boolean hasInstance(ITestNGMethod baseClassMethod, ITestNGMethod derivedClassMethod)
-
isSameInstance
private static boolean isSameInstance(ITestNGMethod baseClassMethod, ITestNGMethod derivedClassMethod)
-
constructMethodNameUsingTestClass
private static java.lang.String constructMethodNameUsingTestClass(java.lang.String currentMethodName, ITestNGMethod m)
-
-