{
}
//
String url = resp.renderURL("/", null, null);
return new InvokeGetResponse(url);
}
else if (getRequestCount() == 1)
{
assertEquals("/", req.getWebRequestPath());
assertEquals(new HashMap<String, String[]>(), req.getQueryParameterMap());
//
String url = resp.renderURL("/", new HashMap<String, String[]>(), null);
return new InvokeGetResponse(url);
}
else if (getRequestCount() == 2)
{
assertEquals("/", req.getWebRequestPath());
assertEquals(new HashMap<String, String[]>(), req.getQueryParameterMap());
//
Map<String, String[]> parameters = new HashMap<String, String[]>();
parameters.put("foo", new String[]{"foo_value"});
parameters.put("bar", new String[]{"bar_value_1", "bar_value_2"});
parameters.put("juu", new String[0]);
String url = resp.renderURL("/", parameters, null);
return new InvokeGetResponse(url);
}
else if (getRequestCount() == 3)
{
assertEquals("/", req.getWebRequestPath());
Map<String, String[]> parameters = assertNotNull(req.getQueryParameterMap());
assertEquals(2, parameters.size());
assertEquals(Tools.toSet("foo", "bar"), parameters.keySet());
assertEquals(new String[]{"foo_value"}, parameters.get("foo"));
assertEquals(new String[]{"bar_value_1","bar_value_2"}, parameters.get("bar"));
//
String url = resp.renderURL("/blah", null, null);
return new InvokeGetResponse(url);
}
else if (getRequestCount() == 4)
{
assertEquals("/blah", req.getWebRequestPath());
assertEquals(new HashMap<String, String[]>(), req.getQueryParameterMap());
//
String url = resp.renderURL("/blah", new HashMap<String, String[]>(), null);
return new InvokeGetResponse(url);
}
else if (getRequestCount() == 5)
{
assertEquals("/blah", req.getWebRequestPath());
assertEquals(new HashMap<String, String[]>(), req.getQueryParameterMap());
//
Map<String, String[]> parameters = new HashMap<String, String[]>();
parameters.put("foo", new String[]{"foo_value"});
parameters.put("bar", new String[]{"bar_value_1", "bar_value_2"});
parameters.put("juu", new String[0]);
String url = resp.renderURL("/blah", parameters, null);
return new InvokeGetResponse(url);
}
else if (getRequestCount() == 6)
{
assertEquals("/blah", req.getWebRequestPath());
Map<String, String[]> parameters = assertNotNull(req.getQueryParameterMap());