Exemplo n.º 1
0
 public void test_return404_exceptionReturningError() {
   response.sendErrorException = true;
   StaticServlet.return404(response);
   assertEquals(
       "log4j log output",
       "I/O error sending 404 error in StaticServlet.return404: " + "exception in sendError",
       log4jLog.log.toString());
 }
Exemplo n.º 2
0
 public void test_return404() {
   StaticServlet.return404(response);
   assertEquals("log output", "sendError(404)", response.log.toString());
 }