baseURL = "http://localhost:" + server.getPort() + "/";
client = new HTTPClient();
}
public void testPut() throws IOException {
Form form = new Form();
form.put("first", "primary");
form.put("second", "secondary");
Document result = client.post(baseURL + "action", form);
assertEquals("200", result.getHeader(HTTPClient.HTTP_RESPONSE_CODE));
assertEquals("action(primary,secondary)", result.getContentAsString());
}