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
/** * 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. * * <p>Created on Jan 3, 2007 * * @author <a href="mailto:cedric@beust.com">Cedric Beust</a> */
public interface IMethodSelectorContext {
Returns:true if no more Method Selectors should be invoked after the current one.
/** @return true if no more Method Selectors should be invoked after the current one. */
boolean isStopped();
Indicate that no other Method Selectors should be invoked after the current one if stopped is false.
Params:
  • stopped – The value
/** * Indicate that no other Method Selectors should be invoked after the current one if stopped is * false. * * @param stopped The value */
void setStopped(boolean stopped);
Returns:a Map that can be freely manipulated by the Method Selector. This can be used to share information among several Method Selectors.
/** * @return a Map that can be freely manipulated by the Method Selector. This can be used to share * information among several Method Selectors. */
Map<Object, Object> getUserData(); }