Top Description Fields Constructors Methods
org.testng

public Class DependencyMap

extends Object
Class Inheritance
Imports
java.util.Arrays, .Collection, .List, .Optional, .Set, java.util.regex.Pattern, java.util.stream.Collectors, org.testng.collections.ListMultiMap, .Maps, org.testng.internal.MethodHelper, .RuntimeBehavior

Helper class to keep track of dependencies.

Field Summary

Modifier and TypeField and Description
private final ListMultiMap<String, ITestNGMethod>
private final ListMultiMap<String, ITestNGMethod>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static boolean
belongToDifferentClassHierarchy(ITestNGMethod baseClassMethod, ITestNGMethod derivedClassMethod)

private static String
public ITestNGMethod
getMethodDependingOn(String methodName, ITestNGMethod fromMethod)

public List<ITestNGMethod>
private static boolean
hasInstance(ITestNGMethod baseClassMethod, ITestNGMethod derivedClassMethod)

private static boolean
hasSameParameters(ITestNGMethod baseClassMethod, ITestNGMethod derivedClassMethod)

private static boolean
isSameInstance(ITestNGMethod baseClassMethod, ITestNGMethod derivedClassMethod)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

m_dependenciesback to summary
private final ListMultiMap<String, ITestNGMethod> m_dependencies
m_groupsback to summary
private final ListMultiMap<String, ITestNGMethod> m_groups

Constructor Detail

DependencyMapback to summary
public DependencyMap(ITestNGMethod[] methods)

Method Detail

belongToDifferentClassHierarchyback to summary
private static boolean belongToDifferentClassHierarchy(ITestNGMethod baseClassMethod, ITestNGMethod derivedClassMethod)
constructMethodNameUsingTestClassback to summary
private static String constructMethodNameUsingTestClass(String currentMethodName, ITestNGMethod m)
getMethodDependingOnback to summary
public ITestNGMethod getMethodDependingOn(String methodName, ITestNGMethod fromMethod)
getMethodsThatBelongToback to summary
public List<ITestNGMethod> getMethodsThatBelongTo(String group, ITestNGMethod fromMethod)
hasInstanceback to summary
private static boolean hasInstance(ITestNGMethod baseClassMethod, ITestNGMethod derivedClassMethod)
hasSameParametersback to summary
private static boolean hasSameParameters(ITestNGMethod baseClassMethod, ITestNGMethod derivedClassMethod)
isSameInstanceback to summary
private static boolean isSameInstance(ITestNGMethod baseClassMethod, ITestNGMethod derivedClassMethod)