All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.testng.IMethodSelectorContext Maven / Gradle / Ivy

There is a newer version: 7.10.2
Show newest version
package org.testng;

import java.util.Map;

/**
 * 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
 * @author Cedric Beust
 */
public interface IMethodSelectorContext {

  /**
   * @return true if no more Method Selectors should be invoked after
   * the current one.
   */
  public boolean isStopped();

  /**
   * Indicate that no other Method Selectors should be invoked after the
   * current one if stopped is false.
   * @param stopped
   */
  public void setStopped(boolean stopped);

  /**
   * @return a Map that can be freely manipulated by the Method Selector.
   * This can be used to share information among several Method Selectors.
   */
  public Map getUserData();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy