).
| Method from org.apache.cactus.sample.servlet.unit.TestSetURLSpecific Detail: |
public void beginSimulatedURLGetRequestURLWhenNotNull(WebRequest theRequest) {
theRequest.setURL("jakarta.apache.org", "/catalog", "/lawn",
"/index.html", null);
}
Verify that when setURL() is called with a not null
pathinfo parameter, the call to getRequestURL works
properly. |
public void beginSimulatedURLGetRequestURLWhenNull(WebRequest theRequest) {
theRequest.setURL("jakarta.apache.org", "", "/test/test.jsp", null,
null);
}
Verify that when setURL() is called with a null
pathinfo parameter, the call to getRequestURL works
properly. |
public void testSimulatedURLGetRequestURLWhenNotNull() {
assertEquals("http://jakarta.apache.org:80/catalog/lawn/index.html",
request.getRequestURL().toString());
}
Verify that when setURL() is called with a not null
pathinfo parameter, the call to getRequestURL works
properly. |
public void testSimulatedURLGetRequestURLWhenNull() {
assertEquals("http://jakarta.apache.org:80/test/test.jsp",
request.getRequestURL().toString());
}
Verify that when setURL() is called with a null
pathinfo parameter, the call to getRequestURL works
properly. |