commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jeri...@apache.org
Subject cvs commit: jakarta-commons/httpclient/src/test/org/apache/commons/httpclient TestWebappMethods.java
Date Tue, 29 Oct 2002 09:44:22 GMT
jericho     2002/10/29 01:44:22

  Modified:    httpclient/src/test/org/apache/commons/httpclient
                        TestWebappMethods.java
  Log:
  - Fix a wrong example of testPostBodyNVP in TestWebappMethods
    The "," sign should be escaped within a query to support the multi-values.
  
  Reported by Odi, ortwin.glueck@nose.ch
  
  Revision  Changes    Path
  1.7       +5 -5      jakarta-commons/httpclient/src/test/org/apache/commons/httpclient/TestWebappMethods.java
  
  Index: TestWebappMethods.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/httpclient/src/test/org/apache/commons/httpclient/TestWebappMethods.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- TestWebappMethods.java	21 Oct 2002 14:03:07 -0000	1.6
  +++ TestWebappMethods.java	29 Oct 2002 09:44:22 -0000	1.7
  @@ -306,7 +306,7 @@
               fail("Unable to execute method : " + t.toString());
           }
           assertEquals(200,method.getStatusCode());
  -        assertTrue(method.getResponseBodyAsString().indexOf("<tt>quote=It%20was%20the%20best%20of%20times,%20it%20was%20the%20worst%20of%20times.</tt>")
>= 0);
  +        assertTrue(method.getResponseBodyAsString().indexOf("<tt>quote=It%20was%20the%20best%20of%20times%2C%20it%20was%20the%20worst%20of%20times.</tt>")
>= 0);
       }
   
       public void testPostBody() throws Exception {
  
  
  

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


Mime
View raw message