Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 963 for what (0.14 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/MinimalIterable.java

     * iterator} method only once, and should be tested using this class. Exceptions to this rule should
     * be clearly documented.
     *
     * <p>Note that although your APIs should be liberal in what they accept, your methods which
     * <i>return</i> iterables should make every attempt to return ones of the robust variety.
     *
     * <p>This testing utility is not thread-safe.
     *
     * @author Kevin Bourrillion
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 3.2K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/base/AndroidIncompatible.java

    import java.lang.annotation.Target;
    
    /**
     * Signifies that a test should not be run under Android. This annotation is respected only by our
     * Google-internal Android suite generators. Note that those generators also suppress any test
     * annotated with LargeTest.
     *
     * <p>Why use a custom annotation instead of {@code android.test.suitebuilder.annotation.Suppress}?
     * I'm not completely sure that this is the right choice, but it has various advantages:
     *
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Jul 07 15:40:13 GMT 2023
    - 3.9K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/testers/CollectionAddAllTester.java

      }
    
      /**
       * Returns the {@link Method} instance for {@link #testAddAll_unsupportedNonePresent()} so that
       * tests can suppress it with {@code FeatureSpecificTestSuiteBuilder.suppressing()} while we
       * figure out what to do with <a href="http://goo.gl/qJBruX">{@code ConcurrentHashMap} support for
       * {@code entrySet().add()}</a>.
       */
      @J2ktIncompatible
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/testers/AbstractListTester.java

       *
       * <p>The {@code AbstractListTester} implementation overrides {@link
       * AbstractCollectionTester#expectContents(Collection)} to verify that the order of the elements
       * in the list under test matches what is expected.
       */
      @Override
      protected void expectContents(Collection<E> expectedCollection) {
        List<E> expectedList = Helpers.copyToList(expectedCollection);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/testing/ClusterException.java

       * <ul>
       *   <li>If {@code exceptions} has a single exception and that exception is a {@link
       *       RuntimeException}, return it
       *   <li>If {@code exceptions} has a single exceptions and that exceptions is not a
       *       {@link RuntimeException}, return a simple {@code RuntimeException} that wraps it
       *   <li>Otherwise, return an instance of {@link ClusterException} that wraps the first exception
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 26 20:07:17 GMT 2023
    - 4K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/base/AndroidIncompatible.java

    import java.lang.annotation.Target;
    
    /**
     * Signifies that a test should not be run under Android. This annotation is respected only by our
     * Google-internal Android suite generators. Note that those generators also suppress any test
     * annotated with LargeTest.
     *
     * <p>Why use a custom annotation instead of {@code android.test.suitebuilder.annotation.Suppress}?
     * I'm not completely sure that this is the right choice, but it has various advantages:
     *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Jul 07 15:40:13 GMT 2023
    - 3.9K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/SafeTreeSet.java

      }
    
      @Override
      public <T> T[] toArray(T[] a) {
        return delegate.toArray(a);
      }
    
      @CanIgnoreReturnValue
      private <T> T checkValid(T t) {
        // a ClassCastException is what's supposed to happen!
        @SuppressWarnings("unchecked")
        E e = (E) t;
        int unused = comparator().compare(e, e);
        return t;
      }
    
      @Override
      public boolean equals(@Nullable Object obj) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  8. android/guava-tests/benchmark/com/google/common/base/JoinerBenchmark.java

      int joinerWithCharacterDelimiter(int reps) {
        int dummy = 0;
        for (int i = 0; i < reps; i++) {
          dummy ^= JOINER_ON_CHARACTER.join(components).length();
        }
        return dummy;
      }
    
      /**
       * Mimics what the {@link Joiner} class does internally when no extra options like ignoring {@code
       * null} values are used.
       */
      @Benchmark
      int joinerInlined(int reps) {
        int dummy = 0;
        for (int i = 0; i < reps; i++) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.9K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionAddAllTester.java

      }
    
      /**
       * Returns the {@link Method} instance for {@link #testAddAll_unsupportedNonePresent()} so that
       * tests can suppress it with {@code FeatureSpecificTestSuiteBuilder.suppressing()} while we
       * figure out what to do with <a href="http://goo.gl/qJBruX">{@code ConcurrentHashMap} support for
       * {@code entrySet().add()}</a>.
       */
      @J2ktIncompatible
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/reflect/ImmutableTypeToInstanceMapTest.java

        suite.addTestSuite(ImmutableTypeToInstanceMapTest.class);
    
        suite.addTest(
            MapTestSuiteBuilder.using(
                    new TestTypeToInstanceMapGenerator() {
                      // Other tests will verify what real, warning-free usage looks like
                      // but here we have to do some serious fudging
                      @Override
                      @SuppressWarnings({"unchecked", "rawtypes"})
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 6.8K bytes
    - Viewed (0)
Back to top