Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testFromParts (0.37 sec)

  1. android/guava-tests/test/com/google/common/net/HostAndPortTest.java

            // Make sure we expected this to fail.
            assertEquals(-1, expectPort);
          }
          assertEquals(expectHost, hp2.getHost());
        }
      }
    
      public void testFromParts() {
        HostAndPort hp = HostAndPort.fromParts("gmail.com", 81);
        assertEquals("gmail.com", hp.getHost());
        assertTrue(hp.hasPort());
        assertEquals(81, hp.getPort());
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 15:41:36 UTC 2024
    - 9.4K bytes
    - Viewed (0)
Back to top