olegk 2004/12/12 02:02:38
Modified: httpclient/src/test/org/apache/commons/httpclient
TestPostMethod.java
Log:
Umlauts in string literals do not correctly compile when the source code is
assumed to be in ASCII (for instance in Ant compile task)
Revision Changes Path
1.5 +8 -11
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.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- TestPostMethod.java 10 Dec 2004 16:23:39 -0000 1.4
+++ TestPostMethod.java 12 Dec 2004 10:02:38 -0000 1.5
@@ -24,8 +24,6 @@
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*
- * [Additional notices, if required by prior licensing conditions]
- *
*/
package org.apache.commons.httpclient;
@@ -34,6 +32,7 @@
import java.io.IOException;
import junit.framework.Test;
+import junit.framework.TestCase;
import junit.framework.TestSuite;
import org.apache.commons.httpclient.methods.PostMethod;
@@ -48,7 +47,7 @@
*
* @version $Id$
*/
-public class TestPostMethod extends HttpClientTestBase {
+public class TestPostMethod extends TestCase {
static final String NAME = "name", VALUE = "value";
static final String NAME0 = "name0", VALUE0 = "value0";
@@ -65,9 +64,7 @@
}
public static Test suite() {
- TestSuite suite = new TestSuite(TestPostMethod.class);
- ProxyTestDecorator.addTests(suite);
- return suite;
+ return new TestSuite(TestPostMethod.class);
}
public static void main(String args[]) {
@@ -94,7 +91,7 @@
assertEquals("name=value&name1=value1&name2=value2&hasSpace=a+b+c+d",
getRequestAsString(post.getRequestEntity()));
- post.setRequestBody(new NameValuePair[]{ new
NameValuePair("escaping", ",[EMAIL PROTECTED]&()=?:;}{[]$") });
+ post.setRequestBody(new NameValuePair[]{ new
NameValuePair("escaping", ",[EMAIL PROTECTED]&()=?:;}{[]$") });
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()));
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]