1 package org.seasar.cubby.util; 2 3 import junit.framework.TestCase; 4 5 public class UriTest extends TestCase { 6 7 public void testGetQueryString() throws Exception { 8 9 Uri uri = new Uri(); 10 uri.setParam("p1", "v1"); 11 uri.setParam("p2", null); 12 uri.setParam("p3", new String[] {"v2", "v3"}); 13 assertEquals("p1=v1&p2=&p3=v2&p3=v3", uri.getQueryString()); 14 15 } 16 17 18 }