assertEquals(200, response.getResponseCode());
assertEquals("Hello, World.", response.getText());
}
public void testHttpPostWithParameter() throws Exception {
WebConversation conversation = new WebConversation();
WebRequest request = new PostMethodWebRequest(baseUrl + "/post_with_parameter");
request.setParameter("name", "World");
WebResponse response = conversation.getResponse(request);
assertEquals(200, response.getResponseCode());
assertEquals("Hello, World.", response.getText());
}