FileDocCategorySizeDatePackage
WebAddressTest.javaAPI DocAndroid 5.1 API1381Thu Mar 12 22:22:12 GMT 2015android.net

WebAddressTest

public class WebAddressTest extends TestCase

Fields Summary
Constructors Summary
Methods Summary
public voidtestHostWithTrailingDot()

        WebAddress webAddress = new WebAddress("http://google.com./b/c/g");
        assertEquals("google.com.", webAddress.getHost());
        assertEquals("/b/c/g", webAddress.getPath());
    
public voidtestPathWithoutLeadingSlash()

        WebAddress webAddress = new WebAddress("http://www.myspace.com?si=1");
        assertEquals("www.myspace.com", webAddress.getHost());
        assertEquals("/?si=1", webAddress.getPath());