- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for CollectorTester (0.06 sec)
-
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(
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Sep 16 22:01:32 UTC 2025 - 6.8K bytes - Viewed (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(
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 24.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ImmutableSortedSetTest.java
assertThat(set).containsExactly("a", "in", "the", "over", "quick", "jumped").inOrder(); assertSame(STRING_LENGTH, set.comparator()); } // TODO(b/172823566): Use mainline testToImmutableSortedSet once CollectorTester is usable. public void testToImmutableSortedSet_java7() { // Note that a Collector should generally enforce consistent comparator between builders ImmutableSortedSet.Builder<String> zis =
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 45.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ImmutableListMultimapTest.java
import com.google.common.collect.testing.google.TestStringListMultimapGenerator; import com.google.common.collect.testing.google.UnmodifiableCollectionTests; import com.google.common.primitives.Chars; import com.google.common.testing.CollectorTester; import com.google.common.testing.EqualsTester; import com.google.common.testing.NullPointerTester; import com.google.common.testing.SerializableTester; import java.util.Arrays; import java.util.Collection;
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Nov 17 22:50:48 UTC 2025 - 25.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ImmutableSortedSetTest.java
import com.google.common.collect.testing.google.SetGenerators.ImmutableSortedSetUnhashableGenerator; import com.google.common.collect.testing.testers.SetHashCodeTester; import com.google.common.testing.CollectorTester; import com.google.common.testing.NullPointerTester; import com.google.common.testing.SerializableTester; import java.util.Collection; import java.util.Collections; import java.util.Comparator;
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 46.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ImmutableListTest.java
import com.google.common.collect.testing.google.ListGenerators.UnhashableElementsImmutableListGenerator; import com.google.common.collect.testing.testers.ListHashCodeTester; import com.google.common.testing.CollectorTester; import com.google.common.testing.NullPointerTester; import com.google.common.testing.SerializableTester; import java.util.Arrays; import java.util.Collection; import java.util.Iterator; import java.util.List;
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 23.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ImmutableSetTest.java
ImmutableSet<String> copy = ImmutableSet.copyOf(sortedSet); assertNotSame(sortedSet, copy); } // 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");
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 14.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ImmutableMapTest.java
assertMapEquals(copy, "one", 1, "two", 2, "three", 3); assertSame(copy, ImmutableMap.copyOf(copy)); } // TODO(b/172823566): Use mainline testToImmutableMap once CollectorTester is usable to java7. public void testToImmutableMap_java7_combine() { ImmutableMap.Builder<String, Integer> zis = ImmutableMap.<String, Integer>builder().put("one", 1);
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 16:03:47 UTC 2025 - 36.7K bytes - Viewed (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);Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 24K bytes - Viewed (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");Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 24.2K bytes - Viewed (0)