Package org.testng

Interface IMethodSelectorContext


  • public interface IMethodSelectorContext
    An implementation of this interface is passed to all the Method Selectors when their includeMethod() is invoked. Method selectors can invoke any method of this context at that time.

    Created on Jan 3, 2007

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.Map<java.lang.Object,​java.lang.Object> getUserData()  
      boolean isStopped()  
      void setStopped​(boolean stopped)
      Indicate that no other Method Selectors should be invoked after the current one if stopped is false.
    • Method Detail

      • isStopped

        boolean isStopped()
        Returns:
        true if no more Method Selectors should be invoked after the current one.
      • setStopped

        void setStopped​(boolean stopped)
        Indicate that no other Method Selectors should be invoked after the current one if stopped is false.
        Parameters:
        stopped - The value
      • getUserData

        java.util.Map<java.lang.Object,​java.lang.Object> getUserData()
        Returns:
        a Map that can be freely manipulated by the Method Selector. This can be used to share information among several Method Selectors.