jakarta-watchdog-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rlu...@apache.org
Subject cvs commit: jakarta-watchdog-4.0/src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet_http/HttpServletRequest GetMethod_HEADTestServlet.java
Date Tue, 15 Jan 2002 16:19:16 GMT
rlubke      02/01/15 08:19:16

  Modified:    src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet_http/HttpServletRequest
                        GetMethod_HEADTestServlet.java
  Log:
   - Modifed GetMethod_HEADTestServlet to set a header indicating
     test success or failure instead of using sendError(int,String).
  
  Revision  Changes    Path
  1.4       +5 -5      jakarta-watchdog-4.0/src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet_http/HttpServletRequest/GetMethod_HEADTestServlet.java
  
  Index: GetMethod_HEADTestServlet.java
  ===================================================================
  RCS file: /home/cvs/jakarta-watchdog-4.0/src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet_http/HttpServletRequest/GetMethod_HEADTestServlet.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- GetMethod_HEADTestServlet.java	11 Jan 2002 22:29:14 -0000	1.3
  +++ GetMethod_HEADTestServlet.java	15 Jan 2002 16:19:16 -0000	1.4
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-watchdog-4.0/src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet_http/HttpServletRequest/GetMethod_HEADTestServlet.java,v
1.3 2002/01/11 22:29:14 rlubke Exp $ 
  - * $Revision: 1.3 $
  - * $Date: 2002/01/11 22:29:14 $
  + * $Header: /home/cvs/jakarta-watchdog-4.0/src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet_http/HttpServletRequest/GetMethod_HEADTestServlet.java,v
1.4 2002/01/15 16:19:16 rlubke Exp $ 
  + * $Revision: 1.4 $
  + * $Date: 2002/01/15 16:19:16 $
    *
    * ====================================================================
    * The Apache Software License, Version 1.1
  @@ -86,9 +86,9 @@
   
           if ( result != null ) {
               if ( result.equalsIgnoreCase( expectedResult ) ) {
  -                response.sendError( HttpServletResponse.SC_OK, "GetMethod_HEADTest PASSED"
);
  +                response.addHeader( "status", "GetMethod_HEADTest PASSED" );
               } else {
  -                response.sendError( HttpServletResponse.SC_INTERNAL_SERVER_ERROR, "GetMethod_HEADTest
FAILED" );
  +                response.addHeader( "status", "GetMethod_HEADTest FAILED" );
               }
           } 
       }
  
  
  

--
To unsubscribe, e-mail:   <mailto:watchdog-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:watchdog-dev-help@jakarta.apache.org>


Mime
View raw message