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.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<ITestClass,
Set<Object>> private final Map<ITestClass,
Set<Object>> private final Map<Object,
Collection<ITestNGMethod>> -
Constructor Summary
ConstructorsConstructorDescriptionClassMethodMap
(List<ITestNGMethod> methods, XmlMethodSelector xmlMethodSelector) -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
boolean
removeAndCheckIfLast
(ITestNGMethod m, Object instance) Remove the method from this map.
-
Field Details
-
classMap
-
beforeClassMethods
-
afterClassMethods
-
-
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()
-