Searched refs:u1 (Results 1 – 2 of 2) sorted by relevance
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
D | URLTest.java | 47 URL u1; field in URLTest 78 u1 = new URL("http://www.yahoo2.com:9999"); in test_ConstructorLjava_lang_String() 79 assertEquals("u1 returns a wrong protocol", "http", u1.getProtocol()); in test_ConstructorLjava_lang_String() 80 assertEquals("u1 returns a wrong host", "www.yahoo2.com", u1.getHost()); in test_ConstructorLjava_lang_String() 81 assertEquals("u1 returns a wrong port", 9999, u1.getPort()); in test_ConstructorLjava_lang_String() 82 assertTrue("u1 returns a wrong file", u1.getFile().equals("")); in test_ConstructorLjava_lang_String() 83 assertNull("u1 returns a wrong anchor", u1.getRef()); in test_ConstructorLjava_lang_String() 240 URL u1 = null; in test_ConstructorLjava_lang_String() local 243 u1 = new URL("file:/some/path"); in test_ConstructorLjava_lang_String() 244 assertEquals("5 got wrong file length1", 10, u1.getFile().length()); in test_ConstructorLjava_lang_String() [all …]
|
/libcore/luni/src/test/java/libcore/java/net/ |
D | OldURLTest.java | 199 u1 = new URL(u, "somefile.java"); in testURLURLString() 561 URL u1; field in OldURLTest 731 u1 = new URL(u, "file.java", new MyHandler()); in testURLURLStringURLStreamHandler() 732 assertEquals("1 returns a wrong protocol", "http", u1.getProtocol()); in testURLURLStringURLStreamHandler() 733 assertEquals("1 returns a wrong host", "www.yahoo.com", u1.getHost()); in testURLURLStringURLStreamHandler() 734 assertEquals("1 returns a wrong port", -1, u1.getPort()); in testURLURLStringURLStreamHandler() 735 assertEquals("1 returns a wrong file", "/file.java", u1.getFile()); in testURLURLStringURLStreamHandler() 736 assertNull("1 returns a wrong anchor", u1.getRef()); in testURLURLStringURLStreamHandler() 738 u1 = new URL(u, "systemresource:/+/FILE0/test.java", new MyHandler()); in testURLURLStringURLStreamHandler() 739 assertEquals("2 returns a wrong protocol", "systemresource", u1 in testURLURLStringURLStreamHandler() [all …]
|