- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 17 for CollectorTester (0.19 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
android/guava-testlib/src/com/google/common/testing/CollectorTester.java
CollectorTester<T, A, R> of( Collector<T, A, R> collector, BiPredicate<? super R, ? super R> equivalence) { return new CollectorTester<>(collector, equivalence); } private final Collector<T, A, R> collector; private final BiPredicate<? super R, ? super R> equivalence; private CollectorTester(
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) -
guava-testlib/src/com/google/common/testing/CollectorTester.java
* Collector} will be compared to the expected value using the specified {@code equivalence}. */ public static <T extends @Nullable Object, A extends @Nullable Object, R extends @Nullable Object> CollectorTester<T, A, R> of( Collector<T, A, R> collector, BiPredicate<? super R, ? super R> equivalence) {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu May 15 21:47:56 GMT 2025 - 6.6K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/ImmutableBiMapTest.java
assertThrows(IllegalArgumentException.class, () -> ImmutableBiMap.copyOf(map)); assertThat(expected).hasMessageThat().containsMatch("1|2"); } // TODO(b/172823566): Use mainline testToImmutableBiMap once CollectorTester is usable to java7. public void testToImmutableBiMap_java7_combine() { ImmutableBiMap.Builder<String, Integer> zis = ImmutableBiMap.<String, Integer>builder().put("one", 1);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 21.4K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/ImmutableRangeMapTest.java
} SerializableTester.reserializeAndAssert(test.keySet()); SerializableTester.reserializeAndAssert(nonEmptyRangeMap); } // TODO(b/172823566): Use mainline testToImmutableRangeMap once CollectorTester is usable to java7 public void testToImmutableRangeMap() { Range<Integer> rangeOne = Range.closedOpen(1, 5); Range<Integer> rangeTwo = Range.openClosed(6, 7);Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue May 13 18:46:00 GMT 2025 - 9.7K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/ImmutableSetTest.java
ImmutableSet<String> copy = ImmutableSet.copyOf(sortedSet); assertThat(copy).isNotSameInstanceAs(sortedSet); } // TODO(b/172823566): Use mainline testToImmutableSet once CollectorTester is usable to java7. public void testToImmutableSet_java7() { ImmutableSet.Builder<String> zis = ImmutableSet.<String>builder().add("a", "b", "a");
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 14.1K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/ImmutableListMultimapTest.java
NullPointerException.class, () -> ImmutableListMultimap.copyOf((ArrayListMultimap<String, Integer>) input)); } // TODO(b/172823566): Use mainline testToImmutableListMultimap once CollectorTester is usable. public void testToImmutableListMultimap_java7_combine() { ImmutableListMultimap.Builder<String, Integer> zis = ImmutableListMultimap.<String, Integer>builder().put("a", 1).put("b", 2);Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 24.2K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/ImmutableListTest.java
NullPointerException.class, () -> ImmutableList.sortedCopyOf(String.CASE_INSENSITIVE_ORDER, (Collection<String>) c)); } // TODO(b/172823566): Use mainline testToImmutableList once CollectorTester is usable to java7. public void testToImmutableList_java7_combine() { ImmutableList.Builder<String> zis = ImmutableList.<String>builder().add("a", "b");Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 24.4K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/ImmutableMultisetTest.java
TypeWithDuplicates c = new TypeWithDuplicates(3, 1); CollectorTester.of(collector, equivalence) .expectCollects( ImmutableMultiset.<TypeWithDuplicates>builder().add(a).addCopies(b1, 2).add(c).build(), a, b1, c, b2); collector = toImmutableMultiset(e -> e, e -> 1); CollectorTester.of(collector, equivalence) .expectCollects(
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 24.9K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/ImmutableEnumMapTest.java
import com.google.common.collect.testing.MapTestSuiteBuilder; import com.google.common.collect.testing.TestEnumMapGenerator; import com.google.common.collect.testing.features.CollectionSize; import com.google.common.testing.CollectorTester; import com.google.common.truth.Truth; import java.util.HashMap; import java.util.Map; import java.util.Map.Entry; import java.util.Spliterator; import java.util.stream.Collector; import java.util.stream.Stream;
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Dec 26 20:08:09 GMT 2025 - 6.7K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/ImmutableRangeMapTest.java
import static com.google.common.collect.Maps.immutableEntry; import static org.junit.Assert.assertThrows; import com.google.common.annotations.GwtIncompatible; import com.google.common.testing.CollectorTester; import com.google.common.testing.SerializableTester; import java.util.Map.Entry; import java.util.NoSuchElementException; import junit.framework.TestCase; import org.jspecify.annotations.NullUnmarked; /**
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue May 13 18:46:00 GMT 2025 - 9.4K bytes - Click Count (0)