Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testForStringIPv4NonAsciiInput (0.16 sec)

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

        InetAddress ipv4Addr = InetAddress.getByName(ipStr);
        assertEquals(ipv4Addr, InetAddresses.forString(ipStr));
        assertTrue(InetAddresses.isInetAddress(ipStr));
      }
    
      public void testForStringIPv4NonAsciiInput() throws UnknownHostException {
        String ipStr = "૧૯૨.૧૬૮.૦.૧"; // 192.168.0.1 in Gujarati digits
        // Shouldn't hit DNS, because it's an IP string literal.
        InetAddress ipv4Addr;
        try {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 24 16:44:05 UTC 2024
    - 35.3K bytes
    - Viewed (0)
Back to top