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:
parent
9db01c3144
commit
1505d6dca6
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue