summaryrefslogtreecommitdiff
path: root/tests/tests/net/src/android/net/cts/UriTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tests/net/src/android/net/cts/UriTest.java')
-rw-r--r--tests/tests/net/src/android/net/cts/UriTest.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/tests/net/src/android/net/cts/UriTest.java b/tests/tests/net/src/android/net/cts/UriTest.java
index ab337d01837..05e826a2c45 100644
--- a/tests/tests/net/src/android/net/cts/UriTest.java
+++ b/tests/tests/net/src/android/net/cts/UriTest.java
@@ -109,6 +109,11 @@ public class UriTest extends AndroidTestCase {
uri = Uri.parse("http://localhost");
assertEquals("localhost", uri.getHost());
assertEquals(-1, uri.getPort());
+
+ uri = Uri.parse("http://a:a@example.com:a@example2.com/path");
+ assertEquals("a:a@example.com:a@example2.com", uri.getAuthority());
+ assertEquals("example2.com", uri.getHost());
+ assertEquals(-1, uri.getPort());
}
public void testCompareTo() {