Search in sources :

Example 26 with WebAddress

use of android.net.WebAddress in project android_frameworks_base by crdroidandroid.

the class WebAddressTest method testPathWithoutLeadingSlash.

// http://b/1011602
@SmallTest
public void testPathWithoutLeadingSlash() {
    WebAddress webAddress = new WebAddress("http://www.myspace.com?si=1");
    assertEquals("www.myspace.com", webAddress.getHost());
    assertEquals("/?si=1", webAddress.getPath());
}
Also used : WebAddress(android.net.WebAddress) SmallTest(android.test.suitebuilder.annotation.SmallTest)

Aggregations

WebAddress (android.net.WebAddress)26 ParseException (android.net.ParseException)14 SmallTest (android.test.suitebuilder.annotation.SmallTest)12