Merge "Fix authority parsing test"
am: 8ce3609e58
Change-Id: I8554fddceb326c52b85b34a483b3e3791abf2cdc
This commit is contained in:
@@ -181,8 +181,7 @@ public class UriTest extends TestCase {
|
|||||||
|
|
||||||
uri = Uri.parse("http://bob%40lee%3ajr@local%68ost:4%32");
|
uri = Uri.parse("http://bob%40lee%3ajr@local%68ost:4%32");
|
||||||
assertEquals("bob@lee:jr", uri.getUserInfo());
|
assertEquals("bob@lee:jr", uri.getUserInfo());
|
||||||
assertEquals("localhost", uri.getHost());
|
assertEquals("localhost:42", uri.getHost());
|
||||||
assertEquals(42, uri.getPort());
|
|
||||||
|
|
||||||
uri = Uri.parse("http://localhost");
|
uri = Uri.parse("http://localhost");
|
||||||
assertEquals("localhost", uri.getHost());
|
assertEquals("localhost", uri.getHost());
|
||||||
|
|||||||
Reference in New Issue
Block a user