org.testng
Class ClassMethodMap

java.lang.Object
  extended by org.testng.ClassMethodMap

public class ClassMethodMap
extends Object

This class maintains a map of >. 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
ClassMethodMap(List<ITestNGMethod> methods, org.testng.internal.XmlMethodSelector xmlMethodSelector)
           
 
Method Summary
 void clear()
           
 Map<ITestClass,Set<Object>> getInvokedAfterClassMethods()
           
 Map<ITestClass,Set<Object>> getInvokedBeforeClassMethods()
           
 boolean removeAndCheckIfLast(ITestNGMethod m, Object instance)
          Remove the method from this map and returns true if it is the last of its class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassMethodMap

public ClassMethodMap(List<ITestNGMethod> methods,
                      org.testng.internal.XmlMethodSelector xmlMethodSelector)
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.


getInvokedBeforeClassMethods

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

getInvokedAfterClassMethods

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

clear

public void clear()


Copyright © 2015. All Rights Reserved.