More tests

This commit is contained in:
Trustin Lee 2010-06-14 11:03:14 +00:00
parent 6d0fb256c6
commit 800fcd0ca2

View File

@ -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 {