Package org.testng

Class ClassMethodMap

java.lang.Object
org.testng.ClassMethodMap

public class ClassMethodMap extends Object
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 Details

    • ClassMethodMap

      public ClassMethodMap(List<ITestNGMethod> methods, org.testng.internal.XmlMethodSelector xmlMethodSelector)
  • Method Details

    • removeAndCheckIfLast

      public boolean removeAndCheckIfLast(ITestNGMethod m, Object instance)
      Remove the method from this map.
      Parameters:
      m - The test method
      instance - The test instance
      Returns:
      true if it is the last of its class
    • getInvokedBeforeClassMethods

      public Map<ITestClass,Set<Object>> getInvokedBeforeClassMethods()
    • getInvokedAfterClassMethods

      public Map<ITestClass,Set<Object>> getInvokedAfterClassMethods()
    • clear

      public void clear()