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/HttpServletResponseWrapper HttpServletResponseWrapperEncodeURLTestServlet.java HttpServletResponseWrapperEncodeRedirectURLTestServlet.java
Date Fri, 04 Jan 2002 22:03:41 GMT
rlubke      02/01/04 14:03:41

  Modified:    src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet_http/HttpServletResponseWrapper
                        HttpServletResponseWrapperEncodeURLTestServlet.java
                        HttpServletResponseWrapperEncodeRedirectURLTestServlet.java
  Log:
   - Some container implementations may return an encoded URL after a call
     to response.encodeURL() or response.encodeRedirectURL() even if the
     client doesn't participate in a session.
     Test logic has been adjusted accordingly.
  
  Revision  Changes    Path
  1.3       +4 -4      jakarta-watchdog-4.0/src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet_http/HttpServletResponseWrapper/HttpServletResponseWrapperEncodeURLTestServlet.java
  
  Index: HttpServletResponseWrapperEncodeURLTestServlet.java
  ===================================================================
  RCS file: /home/cvs/jakarta-watchdog-4.0/src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet_http/HttpServletResponseWrapper/HttpServletResponseWrapperEncodeURLTestServlet.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- HttpServletResponseWrapperEncodeURLTestServlet.java	20 Dec 2001 15:53:01 -0000	1.2
  +++ HttpServletResponseWrapperEncodeURLTestServlet.java	4 Jan 2002 22:03:41 -0000	1.3
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-watchdog-4.0/src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet_http/HttpServletResponseWrapper/HttpServletResponseWrapperEncodeURLTestServlet.java,v
1.2 2001/12/20 15:53:01 rlubke Exp $ 
  - * $Revision: 1.2 $
  - * $Date: 2001/12/20 15:53:01 $
  + * $Header: /home/cvs/jakarta-watchdog-4.0/src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet_http/HttpServletResponseWrapper/HttpServletResponseWrapperEncodeURLTestServlet.java,v
1.3 2002/01/04 22:03:41 rlubke Exp $ 
  + * $Revision: 1.3 $
  + * $Date: 2002/01/04 22:03:41 $
    *
    * ====================================================================
    * The Apache Software License, Version 1.1
  @@ -76,7 +76,7 @@
           out.println( "in HttpServletResponseWrapperEncodeURLTest servlet<BR>" );
           String result = null;
           result = response.encodeURL( expectedResult );
  -        if ( result.equals( expectedResult ) ) {
  +        if ( result.indexOf( expectedResult ) > -1 ) {
               out.println( "HttpServletResponseWrapperEncodeURLTest test PASSED<BR>"
);
           } else {
               out.println( "HttpServletResponseWrapperEncodeURLTest test FAILED<BR>"
);
  
  
  
  1.3       +4 -4      jakarta-watchdog-4.0/src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet_http/HttpServletResponseWrapper/HttpServletResponseWrapperEncodeRedirectURLTestServlet.java
  
  Index: HttpServletResponseWrapperEncodeRedirectURLTestServlet.java
  ===================================================================
  RCS file: /home/cvs/jakarta-watchdog-4.0/src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet_http/HttpServletResponseWrapper/HttpServletResponseWrapperEncodeRedirectURLTestServlet.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- HttpServletResponseWrapperEncodeRedirectURLTestServlet.java	20 Dec 2001 15:49:18 -0000
1.2
  +++ HttpServletResponseWrapperEncodeRedirectURLTestServlet.java	4 Jan 2002 22:03:41 -0000
1.3
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-watchdog-4.0/src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet_http/HttpServletResponseWrapper/HttpServletResponseWrapperEncodeRedirectURLTestServlet.java,v
1.2 2001/12/20 15:49:18 rlubke Exp $ 
  - * $Revision: 1.2 $
  - * $Date: 2001/12/20 15:49:18 $
  + * $Header: /home/cvs/jakarta-watchdog-4.0/src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet_http/HttpServletResponseWrapper/HttpServletResponseWrapperEncodeRedirectURLTestServlet.java,v
1.3 2002/01/04 22:03:41 rlubke Exp $ 
  + * $Revision: 1.3 $
  + * $Date: 2002/01/04 22:03:41 $
    *
    * ====================================================================
    * The Apache Software License, Version 1.1
  @@ -78,7 +78,7 @@
           String result = null;
           result = response.encodeRedirectURL( expectedResult );
   
  -        if ( result.equals( expectedResult ) ) {
  +        if ( result.indexOf( expectedResult ) > -1 ) {
               out.println( "HttpServletResponseWrapperEncodeRedirectURLTest test PASSED<BR>"
);
           } else {
               out.println( "HttpServletResponseWrapperEncodeRedirectURLTest test FAILED<BR>"
);
  
  
  

--
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