* Test <tt>crud()</tt> method.
*/
@Test
public void test_crud() {
try {
HTTPResponse response = null;
String id = "100";
Map data = new HashMap();
data.put("id", id);
String addURI = "/entries/add";
response = fireHttpGetRequest(addURI);
assertSuccess(response);
log.debug("add response: " + response.getContentAsString());
String createURI = "/entries";
response = fireHttpPostRequest(createURI, data);
assertRedirectSuccess(response);
log.debug("create response: " + response.getContentAsString());
String showURI = "/entries/" +id;
response = fireHttpGetRequest(showURI);
assertSuccess(response);
log.debug("show response: " + response.getContentAsString());
String editURI = "/entries/" +id + "/edit";
response = fireHttpGetRequest(editURI);
assertSuccess(response);
log.debug("edit response: " + response.getContentAsString());
String updateURI = "/entries/" +id;
response = fireHttpPutRequest(updateURI, data);
assertRedirectSuccess(response);
log.debug("update response: " + response.getContentAsString());
String deleteURI = "/entries/" +id;
response = fireHttpDeleteRequest(deleteURI);
assertRedirectSuccess(response);
log.debug("delete response: " + response.getContentAsString());
} catch(Exception ex) {
ex.printStackTrace();
}
}