version 1.1.1.2, 1999/09/09 16:30:15 |
version 1.1.1.3, 1999/09/09 16:32:32 |
|
|
|
assert("General exceptions should not occur.",false); |
assert("General exceptions should not occur.",false); |
} |
} |
} |
} |
|
/** |
|
* Exercise the PageSaver |
|
* Send a request and check the response contains the expected String. |
|
*/ |
|
public void testSaving() |
|
{ |
|
|
|
try { |
|
String result = "Myknowninput"; |
|
|
|
String servletName = PageSaver.class.getName(); |
|
getServerResponse("http://127.0.0.1:"+PORT_STRING+"/servlet/"+servletName+"?save="+result); |
|
|
|
String actualResponse = getServerResponse("http://127.0.0.1:"+PORT_STRING+"/servlet/"+servletName); |
|
assert(actualResponse.equals(result)); |
|
} |
|
catch (Exception exception) { |
|
exception.printStackTrace(); |
|
assert("General exceptions should not occur.",false); |
|
} |
|
} |
} |
} |