public class ClassMethodMap extends 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(List<ITestNGMethod> methods,
XmlMethodSelector xmlMethodSelector) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
Map<ITestClass,Set<Object>> |
getInvokedAfterClassMethods() |
Map<ITestClass,Set<Object>> |
getInvokedBeforeClassMethods() |
boolean |
removeAndCheckIfLast(ITestNGMethod m,
Object instance)
Remove the method from this map and returns true if it is the last
of its class.
|
public ClassMethodMap(List<ITestNGMethod> methods, XmlMethodSelector xmlMethodSelector)
public boolean removeAndCheckIfLast(ITestNGMethod m, Object instance)
public Map<ITestClass,Set<Object>> getInvokedBeforeClassMethods()
public Map<ITestClass,Set<Object>> getInvokedAfterClassMethods()
public void clear()
Copyright © 2024. All rights reserved.