blob: e2f7fd69a821d0a8d29620d333f0d3b17acb3108 [file] [log] [blame]
package org.apache.commons.chain2.testutils;
import java.util.HashMap;
import java.util.concurrent.ConcurrentHashMap;
import org.apache.commons.chain2.Context;
/**
* Since we can not import classes from modules that depend on test utils (eg chain2-base)
* we have to implement a test context here.
*
* @version $Id$
*/
public class TestContext<K, V> extends HashMap<K,V> implements Context<K, V> {
@Override
public <T extends V> T retrieve(K key) {
return (T) get(key);
}
}