Package org.testng

Class 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.
    Author:
    Alex Popescu
    • Method Detail

      • removeAndCheckIfLast

        public boolean removeAndCheckIfLast​(ITestNGMethod m,
                                            Object instance)
        Remove the method from this map and returns true if it is the last of its class.
      • clear

        public void clear()