public class ClassMethodMap
extends java.lang.Object
<Class, List<ITestNGMethod>>
. It is used by TestWorkers to
determine if the method they just ran is the last of its class, in which case it's time to invoke
all the afterClass methods.Constructor and Description |
---|
ClassMethodMap(java.util.List<ITestNGMethod> methods,
XmlMethodSelector xmlMethodSelector) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
java.util.Map<ITestClass,java.util.Set<java.lang.Object>> |
getInvokedAfterClassMethods() |
java.util.Map<ITestClass,java.util.Set<java.lang.Object>> |
getInvokedBeforeClassMethods() |
boolean |
removeAndCheckIfLast(ITestNGMethod m,
java.lang.Object instance)
Remove the method from this map and returns true if it is the last of its class.
|
public ClassMethodMap(java.util.List<ITestNGMethod> methods, XmlMethodSelector xmlMethodSelector)
public boolean removeAndCheckIfLast(ITestNGMethod m, java.lang.Object instance)
public java.util.Map<ITestClass,java.util.Set<java.lang.Object>> getInvokedBeforeClassMethods()
public java.util.Map<ITestClass,java.util.Set<java.lang.Object>> getInvokedAfterClassMethods()
public void clear()