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.
|
public ClassMethodMap(List<ITestNGMethod> methods, XmlMethodSelector xmlMethodSelector)
public boolean removeAndCheckIfLast(ITestNGMethod m, Object instance)
m - The test methodinstance - The test instancepublic Map<ITestClass,Set<Object>> getInvokedBeforeClassMethods()
public Map<ITestClass,Set<Object>> getInvokedAfterClassMethods()
public void clear()
Copyright © 2025. All rights reserved.