commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From oglu...@apache.org
Subject cvs commit: jakarta-commons/httpclient/src/test/org/apache/commons/httpclient TestPostMethod.java
Date Fri, 10 Dec 2004 16:23:39 GMT
oglueck     2004/12/10 08:23:39

  Modified:    httpclient/src/test/org/apache/commons/httpclient
                        TestPostMethod.java
  Log:
  added test
  
  Revision  Changes    Path
  1.4       +8 -4      jakarta-commons/httpclient/src/test/org/apache/commons/httpclient/TestPostMethod.java
  
  Index: TestPostMethod.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/httpclient/src/test/org/apache/commons/httpclient/TestPostMethod.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- TestPostMethod.java	1 Nov 2004 02:21:15 -0000	1.3
  +++ TestPostMethod.java	10 Dec 2004 16:23:39 -0000	1.4
  @@ -94,6 +94,10 @@
           assertEquals("name=value&name1=value1&name2=value2&hasSpace=a+b+c+d",
               getRequestAsString(post.getRequestEntity()));
   
  +        post.setRequestBody(new NameValuePair[]{ new NameValuePair("escaping", ",.-!+@#*&()=?:;}{[]$")
});
  +        assertEquals("escaping=%2C.-%F6%E4%FC%21%2B%40%23*%26%28%29%3D%3F%3A%3B%7D%7B%5B%5D%24",
  +            getRequestAsString(post.getRequestEntity()));
  +        
       }
   
       public void testPostSetRequestBody() throws Exception {
  
  
  

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


Mime
View raw message