endRedirect(WebResponse theResponse) Verify that we can assert HTTP status code when it is a redirect and
that the client side of Cactus does not follow the redirect.
Verify that a test case can get the request body by calling
HttpServletRequest.getReader(). In other words, verify that
internal parameters that Cactus passes from its client side to the
server do not affect this ability.
Parameters: theRequest - the request object that serves to initialize theHTTP connection to the server redirector.
Verify that the getTextAsArray() method
works with output text sent on multiple lines. We also verify that
we can call it several times with the same result.
Parameters: theResponse - the response from the server side. exception: IOException - on test failure
Verify that the WebResponse.getText() method works.
Parameters: theResponse - the response from the server side. exception: IOException - on test failure
Verify that we can assert HTTP status code when it is a redirect and
that the client side of Cactus does not follow the redirect.
Parameters: theResponse - the response from the server side. exception: IOException - on test failure
Verify that we can assert HTTP status code when it is an error
status code (> 400).
Note: HttpURLConnection will return a FileNotFoundException if the
status code is > 400 and the request does not end with a "/" !
Parameters: theResponse - the response from the server side. exception: IOException - on test failure
Verify that it is possible to write to the servlet output stream.
Parameters: theResponse - the response from the server side. exception: IOException - on test failure
Verify that a test case can get the request body by calling
HttpServletRequest.getReader(). In other words, verify that
internal parameters that Cactus passes from its client side to the
server do not affect this ability.
exception: Exception - on test failure
testGetResponseAsStringArrayMultiLines
public void testGetResponseAsStringArrayMultiLines() throws IOException(Code)
Verify that the getTextAsArray() method
works with output text sent on multiple lines. We also verify that
we can call it several times with the same result.
exception: IOException - on test failure
Verify that we can assert HTTP status code when it is a redirect and
that the client side of Cactus does not follow the redirect.
exception: IOException - on test failure
Verify that we can assert HTTP status code when it is an error
status code (> 400).
Note: HttpURLConnection will return a FileNotFoundException if the
status code is > 400 and the request does not end with a "/" !