More tests
This commit is contained in:
parent
6d0fb256c6
commit
800fcd0ca2
@ -64,6 +64,13 @@ public class QueryStringDecoderTest {
|
||||
Assert.assertEquals("1", d.getParameters().get("a").get(0));
|
||||
Assert.assertEquals("", d.getParameters().get("a").get(1));
|
||||
Assert.assertEquals("", d.getParameters().get("a").get(2));
|
||||
|
||||
d = new QueryStringDecoder("/foo?a=1=&a==2");
|
||||
Assert.assertEquals("/foo", d.getPath());
|
||||
Assert.assertEquals(1, d.getParameters().size());
|
||||
Assert.assertEquals(2, d.getParameters().get("a").size());
|
||||
Assert.assertEquals("1=", d.getParameters().get("a").get(0));
|
||||
Assert.assertEquals("=2", d.getParameters().get("a").get(1));
|
||||
}
|
||||
@Test
|
||||
public void testExotic() throws Exception {
|
||||
|
Loading…
Reference in New Issue
Block a user