Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 211 - 220 of 237 for testBar (0.04 seconds)

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

    import java.util.List;
    import java.util.Objects;
    import java.util.function.BiPredicate;
    import java.util.stream.Collector;
    import org.jspecify.annotations.NullMarked;
    import org.jspecify.annotations.Nullable;
    
    /**
     * Tester for {@code Collector} implementations.
     *
     * <p>Example usage:
     *
     * <pre>
     * CollectorTester.of(Collectors.summingInt(Integer::parseInt))
     *     .expectCollects(3, "1", "2")
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Sep 16 22:01:32 GMT 2025
    - 6.8K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/collect/OrderingTest.java

      @J2ktIncompatible
      @GwtIncompatible // NullPointerTester
      public void testNullPointerExceptions() {
        NullPointerTester tester = new NullPointerTester();
        tester.testAllPublicStaticMethods(Ordering.class);
    
        // any Ordering<Object> instance that accepts nulls should be good enough
        tester.testAllPublicInstanceMethods(Ordering.usingToString().nullsFirst());
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 43.2K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/collect/OrderingTest.java

      @J2ktIncompatible
      @GwtIncompatible // NullPointerTester
      public void testNullPointerExceptions() {
        NullPointerTester tester = new NullPointerTester();
        tester.testAllPublicStaticMethods(Ordering.class);
    
        // any Ordering<Object> instance that accepts nulls should be good enough
        tester.testAllPublicInstanceMethods(Ordering.usingToString().nullsFirst());
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 43.2K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/primitives/CharsTest.java

            .isEqualTo(3);
      }
    
      public void testMax_noArgs() {
        assertThrows(IllegalArgumentException.class, () -> max());
      }
    
      public void testMax() {
        assertThat(max(LEAST)).isEqualTo(LEAST);
        assertThat(max(GREATEST)).isEqualTo(GREATEST);
        assertThat(max((char) 8, (char) 6, (char) 7, (char) 5, (char) 3, (char) 0, (char) 9))
            .isEqualTo((char) 9);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 01:43:32 GMT 2026
    - 26K bytes
    - Click Count (0)
  5. android/guava-tests/test/com/google/common/io/FilesTest.java

        assertThat(Files.hash(i18nFile, sha512()).toString()).isEqualTo(i18nHash);
      }
    
      public void testMap() throws IOException {
        // Test data
        int size = 1024;
        byte[] bytes = newPreFilledByteArray(size);
    
        // Setup
        File file = createTempFile();
        Files.write(bytes, file);
    
        // Test
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 22.8K bytes
    - Click Count (0)
  6. guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java

    import com.google.common.collect.testing.features.CollectionSize;
    import java.util.ArrayList;
    import java.util.Collections;
    import java.util.List;
    import java.util.NoSuchElementException;
    import org.junit.Ignore;
    
    /**
     * Tester for navigation of SortedMultisets.
     *
     * @author Louis Wasserman
     */
    @GwtCompatible
    @Ignore("test runners must not instantiate and run this directly, only via suites we build")
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Dec 19 20:14:36 GMT 2024
    - 26K bytes
    - Click Count (0)
  7. android/guava-tests/test/com/google/common/cache/CacheBuilderTest.java

      }
    
      @J2ktIncompatible
      @GwtIncompatible // NullPointerTester
      public void testNullParameters() throws Exception {
        NullPointerTester tester = new NullPointerTester();
        CacheBuilder<Object, Object> builder = CacheBuilder.newBuilder();
        tester.testAllPublicInstanceMethods(builder);
      }
    
      @J2ktIncompatible
      @GwtIncompatible // CacheTesting
      public void testSizingDefaults() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 25.7K bytes
    - Click Count (0)
  8. guava-tests/test/com/google/common/cache/CacheBuilderTest.java

      }
    
      @J2ktIncompatible
      @GwtIncompatible // NullPointerTester
      public void testNullParameters() throws Exception {
        NullPointerTester tester = new NullPointerTester();
        CacheBuilder<Object, Object> builder = CacheBuilder.newBuilder();
        tester.testAllPublicInstanceMethods(builder);
      }
    
      @J2ktIncompatible
      @GwtIncompatible // CacheTesting
      public void testSizingDefaults() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 25.6K bytes
    - Click Count (0)
  9. guava-tests/test/com/google/common/collect/IterablesTest.java

        for (@SuppressWarnings("unused") Object obj : iterable) {}
      }
    
      @J2ktIncompatible
      @GwtIncompatible // NullPointerTester
      public void testNullPointerExceptions() {
        NullPointerTester tester = new NullPointerTester();
        tester.testAllPublicStaticMethods(Iterables.class);
      }
    
      // More exhaustive tests are in IteratorsTest.
      public void testElementsEqual() throws Exception {
        Iterable<?> a;
        Iterable<?> b;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 47.5K bytes
    - Click Count (0)
  10. android/guava-tests/test/com/google/common/collect/MapMakerInternalMapTest.java

        return ImmutableList.of(
            createMapMaker().weakValues(), createMapMaker().weakKeys().weakValues());
      }
    
      public void testNullParameters() throws Exception {
        NullPointerTester tester = new NullPointerTester();
        tester.testAllPublicInstanceMethods(makeMap(createMapMaker()));
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 36K bytes
    - Click Count (0)
Back to Top