Package org.testng.internal
Class DefaultMethodSelectorContext
- java.lang.Object
-
- org.testng.internal.DefaultMethodSelectorContext
-
- All Implemented Interfaces:
IMethodSelectorContext
public class DefaultMethodSelectorContext extends java.lang.Object implements IMethodSelectorContext
Simple implementation of IMethodSelectorContextCreated on Jan 3, 2007
-
-
Field Summary
Fields Modifier and Type Field Description private booleanm_isStoppedprivate java.util.Map<java.lang.Object,java.lang.Object>m_userData
-
Constructor Summary
Constructors Constructor Description DefaultMethodSelectorContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.Object,java.lang.Object>getUserData()booleanisStopped()voidsetStopped(boolean stopped)Indicate that no other Method Selectors should be invoked after the current one if stopped is false.
-
-
-
Method Detail
-
getUserData
public java.util.Map<java.lang.Object,java.lang.Object> getUserData()
- Specified by:
getUserDatain interfaceIMethodSelectorContext- Returns:
- a Map that can be freely manipulated by the Method Selector. This can be used to share information among several Method Selectors.
-
isStopped
public boolean isStopped()
- Specified by:
isStoppedin interfaceIMethodSelectorContext- Returns:
- true if no more Method Selectors should be invoked after the current one.
-
setStopped
public void setStopped(boolean stopped)
Description copied from interface:IMethodSelectorContextIndicate that no other Method Selectors should be invoked after the current one if stopped is false.- Specified by:
setStoppedin interfaceIMethodSelectorContext- Parameters:
stopped- The value
-
-