Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for testForStringIPv4Input (0.36 seconds)

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

      public void test3ff31() {
        assertThrows(IllegalArgumentException.class, () -> InetAddresses.forString("3ffe:::1"));
        assertFalse(InetAddresses.isInetAddress("016.016.016.016"));
      }
    
      public void testForStringIPv4Input() throws UnknownHostException {
        String ipStr = "192.168.0.1";
        // Shouldn't hit DNS, because it's an IP string literal.
        InetAddress ipv4Addr = InetAddress.getByName(ipStr);
    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