• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package org.testng;
2 
3 import java.util.Map;
4 
5 /**
6  * An implementation of this interface is passed to all the Method Selectors
7  * when their includeMethod() is invoked.  Method selectors can invoke
8  * any method of this context at that time.
9  *
10  * Created on Jan 3, 2007
11  * @author <a href="mailto:cedric@beust.com">Cedric Beust</a>
12  */
13 public interface IMethodSelectorContext {
14 
15   /**
16    * @return true if no more Method Selectors should be invoked after
17    * the current one.
18    */
isStopped()19   public boolean isStopped();
20 
21   /**
22    * Indicate that no other Method Selectors should be invoked after the
23    * current one if stopped is false.
24    * @param stopped
25    */
setStopped(boolean stopped)26   public void setStopped(boolean stopped);
27 
28   /**
29    * @return a Map that can be freely manipulated by the Method Selector.
30    * This can be used to share information among several Method Selectors.
31    */
getUserData()32   public Map<Object, Object> getUserData();
33 }
34