- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for testFromHost (0.16 sec)
-
android/guava-tests/test/com/google/common/net/HostAndPortTest.java
assertThrows(IllegalArgumentException.class, () -> HostAndPort.fromParts("gmail.com:80", 81)); assertThrows(IllegalArgumentException.class, () -> HostAndPort.fromParts("gmail.com", -1)); } public void testFromHost() { HostAndPort hp = HostAndPort.fromHost("gmail.com"); assertEquals("gmail.com", hp.getHost()); assertFalse(hp.hasPort()); hp = HostAndPort.fromHost("[::1]");
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 9.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/net/HostAndPortTest.java
assertThrows(IllegalArgumentException.class, () -> HostAndPort.fromParts("gmail.com:80", 81)); assertThrows(IllegalArgumentException.class, () -> HostAndPort.fromParts("gmail.com", -1)); } public void testFromHost() { HostAndPort hp = HostAndPort.fromHost("gmail.com"); assertEquals("gmail.com", hp.getHost()); assertFalse(hp.hasPort()); hp = HostAndPort.fromHost("[::1]");
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 9.8K bytes - Viewed (0)