*/
public class TestServletRequestConfiguration extends TestAbstractConfiguration
{
protected AbstractConfiguration getConfiguration()
{
final Configuration configuration = new BaseConfiguration();
configuration.setProperty("key1", "value1");
configuration.setProperty("key2", "value2");
configuration.addProperty("list", "value1");
configuration.addProperty("list", "value2");
ServletRequest request = new MockHttpServletRequest()
{
public String[] getParameterValues(String key)
{
return configuration.getStringArray(key);
}
public Enumeration getParameterNames()
{
return new IteratorEnumeration(configuration.getKeys());
}
};
return new ServletRequestConfiguration(request);
}