jakarta-watchdog-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From craig...@apache.org
Subject cvs commit: jakarta-watchdog-4.0/src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet_http/HttpServletRequest GetCookies_01TestServlet.java
Date Thu, 03 May 2001 19:12:05 GMT
craigmcc    01/05/03 12:12:05

  Modified:    src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet_http/HttpServletRequest
                        GetCookies_01TestServlet.java
  Log:
  HttpServletRequest.getCookies() is supposed to return null if the request
  did not include any cookies.  The test was incorrectly accepting either
  null or a zero-length array.
  
  Revision  Changes    Path
  1.2       +3 -3      jakarta-watchdog-4.0/src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet_http/HttpServletRequest/GetCookies_01TestServlet.java
  
  Index: GetCookies_01TestServlet.java
  ===================================================================
  RCS file: /home/cvs/jakarta-watchdog-4.0/src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet_http/HttpServletRequest/GetCookies_01TestServlet.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- GetCookies_01TestServlet.java	2000/10/16 22:38:56	1.1
  +++ GetCookies_01TestServlet.java	2001/05/03 19:12:00	1.2
  @@ -1,6 +1,6 @@
   /*
  - * $Header: /home/cvs/jakarta-watchdog-4.0/src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet_http/HttpServletRequest/GetCookies_01TestServlet.java,v
1.1 2000/10/16 22:38:56 santosh Exp $
  - * $Date: 2000/10/16 22:38:56 $
  + * $Header: /home/cvs/jakarta-watchdog-4.0/src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet_http/HttpServletRequest/GetCookies_01TestServlet.java,v
1.2 2001/05/03 19:12:00 craigmcc Exp $
  + * $Date: 2001/05/03 19:12:00 $
    *
    * The Apache Software License, Version 1.1
    *
  @@ -85,7 +85,7 @@
   		PrintWriter out = response.getWriter();
   		Cookie[] cook=request.getCookies();
   
  -		if( (cook==null) || ( cook.length==0 ) ) {
  +                if( cook==null ) {
   			out.println("GetCookies_01Test test PASSED");
   		}
   		else
  
  
  

Mime
View raw message