Class ClassMethodMap
java.lang.Object
org.testng.ClassMethodMap
This class maintains a map of
<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.- Author:
- Alex Popescu
-
Constructor Summary
ConstructorsConstructorDescriptionClassMethodMap(List<ITestNGMethod> methods, XmlMethodSelector xmlMethodSelector) -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Map<ITestClass, Set<Object>> Map<ITestClass, Set<Object>> booleanremoveAndCheckIfLast(ITestNGMethod m, Object instance) Remove the method from this map.
-
Constructor Details
-
ClassMethodMap
-
-
Method Details
-
removeAndCheckIfLast
Remove the method from this map.- Parameters:
m- The test methodinstance- The test instance- Returns:
- true if it is the last of its class
-
getInvokedBeforeClassMethods
-
getInvokedAfterClassMethods
-
clear
public void clear()
-