1 package org.testng.internal; 2 3 import org.testng.IMethodSelectorContext; 4 import org.testng.collections.Maps; 5 6 import java.util.Map; 7 8 /** 9 * Simple implementation of IMethodSelectorContext 10 * 11 * Created on Jan 3, 2007 12 * @author <a href="mailto:cedric@beust.com">Cedric Beust</a> 13 */ 14 public class DefaultMethodSelectorContext implements IMethodSelectorContext { 15 private Map<Object, Object> m_userData = Maps.newHashMap(); 16 private boolean m_isStopped = false; 17 18 @Override getUserData()19 public Map<Object, Object> getUserData() { 20 return m_userData; 21 } 22 23 @Override isStopped()24 public boolean isStopped() { 25 return m_isStopped; 26 } 27 28 @Override setStopped(boolean stopped)29 public void setStopped(boolean stopped) { 30 m_isStopped = stopped; 31 } 32 33 } 34