Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for withDefaultPort (0.34 sec)

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

        // Apply withDefaultPort(), yielding hp2.
        final boolean badDefaultPort = (defaultPort < 0 || defaultPort > 65535);
        HostAndPort hp2 = null;
        try {
          hp2 = hp.withDefaultPort(defaultPort);
          assertFalse(badDefaultPort);
        } catch (IllegalArgumentException e) {
          assertTrue(badDefaultPort);
        }
    
        // Check the pre-withDefaultPort() instance.
        if (expectHasExplicitPort) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 17 11:19:47 GMT 2023
    - 9.6K bytes
    - Viewed (0)
Back to top