Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for testToUriStringIPv6 (0.07 seconds)

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

      public void testToUriStringIPv4() {
        String ipStr = "1.2.3.4";
        InetAddress ip = InetAddresses.forString(ipStr);
        assertThat(InetAddresses.toUriString(ip)).isEqualTo("1.2.3.4");
      }
    
      public void testToUriStringIPv6() {
        // Unfortunately the InetAddress.toString() method for IPv6 addresses
        // does not collapse contiguous shorts of zeroes with the :: abbreviation.
        String ipStr = "3ffe::1";
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 23 16:38:16 GMT 2026
    - 36.3K bytes
    - Click Count (0)
Back to Top