hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1353266 - /httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/client/protocol/TestUriEscapes.java
Date Sun, 24 Jun 2012 13:58:12 GMT
Author: sebb
Date: Sun Jun 24 13:58:11 2012
New Revision: 1353266

URL: http://svn.apache.org/viewvc?rev=1353266&view=rev
Log:
Fix up query test cases so they are actually queries
Add extra encoded & to path tests

Modified:
    httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/client/protocol/TestUriEscapes.java

Modified: httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/client/protocol/TestUriEscapes.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/client/protocol/TestUriEscapes.java?rev=1353266&r1=1353265&r2=1353266&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/client/protocol/TestUriEscapes.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/client/protocol/TestUriEscapes.java
Sun Jun 24 13:58:11 2012
@@ -104,12 +104,12 @@ public class TestUriEscapes extends Basi
 
     @Test
     public void testEscapedAmpersandInQueryAbsolute() throws Exception {
-        doTest("/path/a=b&c=%26d", false);
+        doTest("/path?a=b&c=%26d", false);
     }
 
     @Test
     public void testEscapedAmpersandInQueryRelative() throws Exception {
-        doTest("/path/a=b&c=%26d", true);
+        doTest("/path?a=b&c=%26d", true);
     }
 
     @Test
@@ -134,12 +134,12 @@ public class TestUriEscapes extends Basi
 
     @Test
     public void testEscapedAmpersandInPathAbsolute() throws Exception {
-        doTest("/this%26that?a=b&c=d", false);
+        doTest("/this%26that?a=b&c=%26d", false);
     }
 
     @Test
     public void testEscapedAmpersandInPathRelative() throws Exception {
-        doTest("/this%26that?a=b&c=d", true);
+        doTest("/this%26that?a=b&c=%26d", true);
     }
 
     @Test



Mime
View raw message