Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 29 for Newport (0.2 sec)

  1. guava-testlib/test/com/google/common/testing/NullPointerTesterTest.java

          try {
            new NullPointerTester().testMethodParameter(new OneArg(), method, 0);
          } catch (AssertionFailedError expected) {
            foundProblem = true;
          }
          assertTrue("Should report error in method " + methodName, foundProblem);
        }
      }
    
      public void testNonStaticOneArgMethodsThatShouldPass() throws Exception {
        OneArg foo = new OneArg();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Nov 16 15:12:31 GMT 2023
    - 47.9K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

      private static final boolean useSecurityManager = Boolean.getBoolean("jsr166.useSecurityManager");
    
      protected static final boolean expensiveTests = Boolean.getBoolean("jsr166.expensiveTests");
    
      /**
       * If true, report on stdout all "slow" tests, that is, ones that take more than profileThreshold
       * milliseconds to execute.
       */
      private static final boolean profileTests = Boolean.getBoolean("jsr166.profileTests");
    
      /**
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 37.7K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/net/HostAndPortTest.java

        }
    
        // Check the pre-withDefaultPort() instance.
        if (expectHasExplicitPort) {
          assertTrue(hp.hasPort());
          assertEquals(expectPort, hp.getPort());
        } else {
          assertFalse(hp.hasPort());
          try {
            hp.getPort();
            fail("Expected IllegalStateException");
          } catch (IllegalStateException expected) {
          }
        }
        assertEquals(expectHost, hp.getHost());
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Apr 17 11:19:47 GMT 2023
    - 10K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/net/InetAddressesTest.java

        assertEquals(server, teredo.getServer());
    
        InetAddress client = InetAddresses.forString(clientStr);
        assertEquals(client, teredo.getClient());
    
        assertEquals(port, teredo.getPort());
        assertEquals(flags, teredo.getFlags());
      }
    
      public void testTeredoAddress_nullServer() {
        InetAddresses.TeredoInfo info = new InetAddresses.TeredoInfo(null, null, 80, 1000);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 31.9K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/CollectCollectors.java

        checkNotNull(valueFunction);
        /*
         * We will always fail if there are duplicate keys, and the keys are always sorted by
         * the Comparator, so the entries can come in an arbitrary order -- so we report UNORDERED.
         */
        return Collector.of(
            () -> new ImmutableSortedMap.Builder<K, V>(comparator),
            (builder, input) -> builder.put(keyFunction.apply(input), valueFunction.apply(input)),
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:21:40 GMT 2024
    - 17.2K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/net/InetAddresses.java

          this.flags = flags;
        }
    
        public Inet4Address getServer() {
          return server;
        }
    
        public Inet4Address getClient() {
          return client;
        }
    
        public int getPort() {
          return port;
        }
    
        public int getFlags() {
          return flags;
        }
      }
    
      /**
       * Evaluates whether the argument is a Teredo address.
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 44K bytes
    - Viewed (1)
  7. android/guava-tests/test/com/google/common/net/HostAndPortTest.java

        }
    
        // Check the pre-withDefaultPort() instance.
        if (expectHasExplicitPort) {
          assertTrue(hp.hasPort());
          assertEquals(expectPort, hp.getPort());
        } else {
          assertFalse(hp.hasPort());
          try {
            hp.getPort();
            fail("Expected IllegalStateException");
          } catch (IllegalStateException expected) {
          }
        }
        assertEquals(expectHost, hp.getHost());
    
    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)
  8. guava-tests/test/com/google/common/io/TestStreamSupplier.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package com.google.common.io;
    
    /**
     * Interface for a supplier of streams that can report whether a stream was opened and whether that
     * stream was closed. Intended for use in a test where only a single stream should be opened and
     * possibly closed.
     *
     * @author Colin Decker
     */
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 1.1K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/ImmutableSet.java

            }
          }
          return false;
        }
    
        /**
         * If more than this many consecutive positions are filled in a table of the specified size,
         * report probable hash flooding. ({@link #hashFloodingDetected} may also report hash flooding
         * if fewer consecutive positions are filled; see that method for details.)
         */
        static int maxRunBeforeFallback(int tableSize) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 35.4K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

      private static final boolean useSecurityManager = Boolean.getBoolean("jsr166.useSecurityManager");
    
      protected static final boolean expensiveTests = Boolean.getBoolean("jsr166.expensiveTests");
    
      /**
       * If true, report on stdout all "slow" tests, that is, ones that take more than profileThreshold
       * milliseconds to execute.
       */
      private static final boolean profileTests = Boolean.getBoolean("jsr166.profileTests");
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 37.2K bytes
    - Viewed (0)
Back to top