Package org.testng
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.-
Constructor Summary
ConstructorsConstructorDescriptionClassMethodMap
(List<ITestNGMethod> methods, org.testng.internal.XmlMethodSelector xmlMethodSelector) -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
boolean
removeAndCheckIfLast
(ITestNGMethod m, Object instance) Remove the method from this map.
-
Constructor Details
-
ClassMethodMap
public ClassMethodMap(List<ITestNGMethod> methods, org.testng.internal.XmlMethodSelector xmlMethodSelector)
-
-
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()
-