You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by je...@apache.org on 2002/10/29 10:44:22 UTC

cvs commit: jakarta-commons/httpclient/src/test/org/apache/commons/httpclient TestWebappMethods.java

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:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>