jakarta-watchdog-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From craig...@locus.apache.org
Subject cvs commit: jakarta-watchdog-4.0/src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet_http/HttpServletRequest GetDateHeaderTestServlet.java
Date Tue, 05 Dec 2000 23:32:47 GMT
craigmcc    00/12/05 15:32:46

  Modified:    src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet_http/HttpServletRequest
                        GetDateHeaderTestServlet.java
  Log:
  The date conversion specified in the original test will not work correctly
  in any time zone west of GMT, because the converted date will end up sometime
  on 12/31/1999.  Change to test for the absolute value that the
  getDateHeader() method should be returning.
  
  Revision  Changes    Path
  1.3       +3 -3      jakarta-watchdog-4.0/src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet_http/HttpServletRequest/GetDateHeaderTestServlet.java
  
  Index: GetDateHeaderTestServlet.java
  ===================================================================
  RCS file: /home/cvs/jakarta-watchdog-4.0/src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet_http/HttpServletRequest/GetDateHeaderTestServlet.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- GetDateHeaderTestServlet.java	2000/11/06 21:32:47	1.2
  +++ GetDateHeaderTestServlet.java	2000/12/05 23:32:46	1.3
  @@ -1,6 +1,6 @@
   /*
  - * $Header: /home/cvs/jakarta-watchdog-4.0/src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet_http/HttpServletRequest/GetDateHeaderTestServlet.java,v
1.2 2000/11/06 21:32:47 santosh Exp $
  - * $Date: 2000/11/06 21:32:47 $
  + * $Header: /home/cvs/jakarta-watchdog-4.0/src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet_http/HttpServletRequest/GetDateHeaderTestServlet.java,v
1.3 2000/12/05 23:32:46 craigmcc Exp $
  + * $Date: 2000/12/05 23:32:46 $
    *
    * The Apache Software License, Version 1.1
    *
  @@ -86,7 +86,7 @@
   	   {
   		long date = request.getDateHeader("If-Modified-Since");
   
  -		if  ( ( new Date(date)).getDay()==6  ) {
  +                if (date == 946684801000L) {
   			out.println("GetDateHeaderTest test PASSED");
   		}
   		else
  
  
  

Mime
View raw message