@@ -0,0 +1,1043 @@
+package cgeo.geocaching.test;%0A%0Aimport static cgeo.geocaching.cgBase.buildURI;%0A%0Aimport android.test.AndroidTestCase;%0A%0Aimport java.net.URI;%0A%0Aimport junit.framework.Assert;%0A%0Apublic class URITest extends AndroidTestCase %7B%0A%0A    public void testBasicURI() %7B%0A        Assert.assertEquals(%22http://www.example.com/foo/bar%22,%0A                buildURI(false, %22www.example.com%22, %22/foo/bar%22).toString());%0A    %7D%0A%0A    public void testSecureURI() %7B%0A        Assert.assertEquals(%22https://www.example.com/foo/bar%22,%0A                buildURI(true, %22www.example.com%22, %22/foo/bar%22).toString());%0A    %7D%0A%0A    public void testWithPath() %7B%0A        Assert.assertEquals(%22http://www.example.com/foo/bar?a=b&c=d%22,%0A                buildURI(false, %22www.example.com%22, %22/foo/bar%22, %22a=b&c=d%22).toString());%0A    %7D%0A%0A    public void testWithSplitPath() %7B%0A        final URI uri = buildURI(false, %22www.example.com%22, %22/foo/bar?a=b&c=d%22);%0A        Assert.assertEquals(%22http://www.example.com/foo/bar?a=b&c=d%22, uri.toString());%0A        Assert.assertEquals(%22a=b&c=d%22, uri.getQuery());%0A    %7D%0A%0A%7D%0A

Add test for buildURI()