Fix up query test cases so they are actually queries

Add extra encoded & to path tests

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1353266 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sebastian Bazley 2012-06-24 13:58:11 +00:00
parent 9db01c3144
commit 1505d6dca6
1 changed files with 4 additions and 4 deletions

View File

@ -104,12 +104,12 @@ public class TestUriEscapes extends BasicServerTestBase {
@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 BasicServerTestBase {
@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