/external/guava/guava-testlib/src/com/google/common/collect/testing/google/ |
D | ListMultimapRemoveTester.java | 19 import static com.google.common.collect.testing.Helpers.mapEntry; 45 resetContainer(mapEntry(k0(), v0()), mapEntry(k0(), v1()), mapEntry(k0(), v0())); in testMultimapRemoveDeletesFirstOccurrence() 59 resetContainer(mapEntry(k0(), v0()), mapEntry(k0(), v1()), mapEntry(k0(), v0())); in testRemoveAtIndexFromGetPropagates() 76 resetContainer(mapEntry(k0(), v0()), mapEntry(k0(), v1()), mapEntry(k0(), v0())); in testRemoveAtIndexFromAsMapPropagates() 94 resetContainer(mapEntry(k0(), v0()), mapEntry(k0(), v1()), mapEntry(k0(), v0())); in testRemoveAtIndexFromAsMapEntrySetPropagates()
|
D | ListMultimapAsMapTester.java | 71 Helpers.mapEntry(k0(), v0()), Helpers.mapEntry(k1(), v0()), Helpers.mapEntry(k0(), v3())); in testEquals() 81 Helpers.mapEntry(k0(), v0()), Helpers.mapEntry(k1(), v0()), Helpers.mapEntry(k0(), v3())); in testEntrySetEquals() 83 expected.add(Helpers.mapEntry(k0(), (Collection<V>) Lists.newArrayList(v0(), v3()))); in testEntrySetEquals() 84 expected.add(Helpers.mapEntry(k1(), (Collection<V>) Lists.newArrayList(v0()))); in testEntrySetEquals() 92 Helpers.mapEntry(k0(), v0()), Helpers.mapEntry(k1(), v0()), Helpers.mapEntry(k0(), v3())); in testValuesRemove()
|
D | SetMultimapAsMapTester.java | 71 Helpers.mapEntry(k0(), v0()), Helpers.mapEntry(k1(), v0()), Helpers.mapEntry(k0(), v3())); in testEquals() 81 Helpers.mapEntry(k0(), v0()), Helpers.mapEntry(k1(), v0()), Helpers.mapEntry(k0(), v3())); in testEntrySetEquals() 83 expected.add(Helpers.mapEntry(k0(), (Collection<V>) Sets.newHashSet(v0(), v3()))); in testEntrySetEquals() 84 expected.add(Helpers.mapEntry(k1(), (Collection<V>) Sets.newHashSet(v0()))); in testEntrySetEquals() 92 Helpers.mapEntry(k0(), v0()), Helpers.mapEntry(k1(), v0()), Helpers.mapEntry(k0(), v3())); in testValuesRemove()
|
D | MultimapEntriesTester.java | 55 assertContains(multimap().entries(), Helpers.mapEntry((K) null, getValueForNullKey())); in testContainsEntryWithNullKeyPresent() 60 assertFalse(multimap().entries().contains(Helpers.mapEntry(null, v0()))); in testContainsEntryWithNullKeyAbsent() 67 assertContains(multimap().entries(), Helpers.mapEntry(getKeyForNullValue(), (V) null)); in testContainsEntryWithNullValuePresent() 72 assertFalse(multimap().entries().contains(Helpers.mapEntry(k0(), null))); in testContainsEntryWithNullValueAbsent() 78 assertTrue(multimap().entries().remove(Helpers.mapEntry(k0(), v0()))); in testRemovePropagatesToMultimap() 79 expectMissing(Helpers.mapEntry(k0(), v0())); in testRemovePropagatesToMultimap() 87 assertTrue(multimap().entries().removeAll(Collections.singleton(Helpers.mapEntry(k0(), v0())))); in testRemoveAllPropagatesToMultimap() 88 expectMissing(Helpers.mapEntry(k0(), v0())); in testRemoveAllPropagatesToMultimap() 96 multimap().entries().retainAll(Collections.singleton(Helpers.mapEntry(k0(), v0()))); in testRetainAllPropagatesToMultimap() 97 assertEquals(getSubjectGenerator().create(Helpers.mapEntry(k0(), v0())), multimap()); in testRetainAllPropagatesToMultimap() [all …]
|
D | ListMultimapEqualsTester.java | 39 Helpers.mapEntry(k0(), v0()), in testOrderingAffectsEqualsComparisons() 40 Helpers.mapEntry(k0(), v1()), in testOrderingAffectsEqualsComparisons() 41 Helpers.mapEntry(k0(), v0())); in testOrderingAffectsEqualsComparisons() 45 Helpers.mapEntry(k0(), v1()), in testOrderingAffectsEqualsComparisons() 46 Helpers.mapEntry(k0(), v0()), in testOrderingAffectsEqualsComparisons() 47 Helpers.mapEntry(k0(), v0())); in testOrderingAffectsEqualsComparisons()
|
D | SetMultimapEqualsTester.java | 39 Helpers.mapEntry(k0(), v0()), in testOrderingDoesntAffectEqualsComparisons() 40 Helpers.mapEntry(k0(), v1()), in testOrderingDoesntAffectEqualsComparisons() 41 Helpers.mapEntry(k0(), v4())); in testOrderingDoesntAffectEqualsComparisons() 45 Helpers.mapEntry(k0(), v1()), in testOrderingDoesntAffectEqualsComparisons() 46 Helpers.mapEntry(k0(), v0()), in testOrderingDoesntAffectEqualsComparisons() 47 Helpers.mapEntry(k0(), v4())); in testOrderingDoesntAffectEqualsComparisons()
|
D | MultimapPutAllMultimapTester.java | 43 multimap().putAll(getSubjectGenerator().create(Helpers.mapEntry(k3(), v3()))); in testPutUnsupported() 59 getSubjectGenerator().create(Helpers.mapEntry(k0(), v3()), Helpers.mapEntry(k3(), v3())); in testPutAll() 67 Multimap<K, V> source = getSubjectGenerator().create(Helpers.mapEntry(k0(), null)); in testPutAllWithNullValue() 74 Multimap<K, V> source = getSubjectGenerator().create(Helpers.mapEntry(null, v0())); in testPutAllWithNullKey() 81 Multimap<K, V> source = getSubjectGenerator().create(Helpers.mapEntry(k0(), null)); in testPutAllRejectsNullValue() 92 Multimap<K, V> source = getSubjectGenerator().create(Helpers.mapEntry(null, v0())); in testPutAllRejectsNullKey() 104 getSubjectGenerator().create(Helpers.mapEntry(k0(), v3()), Helpers.mapEntry(k3(), v3())); in testPutAllPropagatesToGet()
|
D | MultimapKeysTester.java | 47 Helpers.mapEntry(k0(), v0()), Helpers.mapEntry(k0(), v1()), Helpers.mapEntry(k1(), v0())); in testKeys() 66 Helpers.mapEntry((K) null, v0()), in testKeysWithNullKey() 67 Helpers.mapEntry((K) null, v1()), in testKeysWithNullKey() 68 Helpers.mapEntry(k1(), v0())); in testKeysWithNullKey() 102 Helpers.mapEntry(k0(), v0()), Helpers.mapEntry(k0(), v1()), Helpers.mapEntry(k1(), v0())); in testKeysEntrySetRemove()
|
D | MapGenerators.java | 19 import static com.google.common.collect.testing.Helpers.mapEntry; 121 mapEntry("foo", 5), in samples() 122 mapEntry("bar", 3), in samples() 123 mapEntry("baz", 17), in samples() 124 mapEntry("quux", 1), in samples() 125 mapEntry("toaster", -2)); in samples() 191 mapEntry("one", collectionOf(10000)), 192 mapEntry("two", collectionOf(-2000)), 193 mapEntry("three", collectionOf(300)), 194 mapEntry("four", collectionOf(-40)), [all …]
|
D | TestStringBiMapGenerator.java | 40 Helpers.mapEntry("one", "January"), in samples() 41 Helpers.mapEntry("two", "February"), in samples() 42 Helpers.mapEntry("three", "March"), in samples() 43 Helpers.mapEntry("four", "April"), in samples() 44 Helpers.mapEntry("five", "May")); in samples()
|
/external/guava/android/guava-testlib/src/com/google/common/collect/testing/google/ |
D | ListMultimapRemoveTester.java | 19 import static com.google.common.collect.testing.Helpers.mapEntry; 45 resetContainer(mapEntry(k0(), v0()), mapEntry(k0(), v1()), mapEntry(k0(), v0())); in testMultimapRemoveDeletesFirstOccurrence() 59 resetContainer(mapEntry(k0(), v0()), mapEntry(k0(), v1()), mapEntry(k0(), v0())); in testRemoveAtIndexFromGetPropagates() 76 resetContainer(mapEntry(k0(), v0()), mapEntry(k0(), v1()), mapEntry(k0(), v0())); in testRemoveAtIndexFromAsMapPropagates() 94 resetContainer(mapEntry(k0(), v0()), mapEntry(k0(), v1()), mapEntry(k0(), v0())); in testRemoveAtIndexFromAsMapEntrySetPropagates()
|
D | ListMultimapAsMapTester.java | 71 Helpers.mapEntry(k0(), v0()), Helpers.mapEntry(k1(), v0()), Helpers.mapEntry(k0(), v3())); in testEquals() 81 Helpers.mapEntry(k0(), v0()), Helpers.mapEntry(k1(), v0()), Helpers.mapEntry(k0(), v3())); in testEntrySetEquals() 83 expected.add(Helpers.mapEntry(k0(), (Collection<V>) Lists.newArrayList(v0(), v3()))); in testEntrySetEquals() 84 expected.add(Helpers.mapEntry(k1(), (Collection<V>) Lists.newArrayList(v0()))); in testEntrySetEquals() 92 Helpers.mapEntry(k0(), v0()), Helpers.mapEntry(k1(), v0()), Helpers.mapEntry(k0(), v3())); in testValuesRemove()
|
D | SetMultimapAsMapTester.java | 71 Helpers.mapEntry(k0(), v0()), Helpers.mapEntry(k1(), v0()), Helpers.mapEntry(k0(), v3())); in testEquals() 81 Helpers.mapEntry(k0(), v0()), Helpers.mapEntry(k1(), v0()), Helpers.mapEntry(k0(), v3())); in testEntrySetEquals() 83 expected.add(Helpers.mapEntry(k0(), (Collection<V>) Sets.newHashSet(v0(), v3()))); in testEntrySetEquals() 84 expected.add(Helpers.mapEntry(k1(), (Collection<V>) Sets.newHashSet(v0()))); in testEntrySetEquals() 92 Helpers.mapEntry(k0(), v0()), Helpers.mapEntry(k1(), v0()), Helpers.mapEntry(k0(), v3())); in testValuesRemove()
|
D | MultimapEntriesTester.java | 55 assertContains(multimap().entries(), Helpers.mapEntry((K) null, getValueForNullKey())); in testContainsEntryWithNullKeyPresent() 60 assertFalse(multimap().entries().contains(Helpers.mapEntry(null, v0()))); in testContainsEntryWithNullKeyAbsent() 67 assertContains(multimap().entries(), Helpers.mapEntry(getKeyForNullValue(), (V) null)); in testContainsEntryWithNullValuePresent() 72 assertFalse(multimap().entries().contains(Helpers.mapEntry(k0(), null))); in testContainsEntryWithNullValueAbsent() 78 assertTrue(multimap().entries().remove(Helpers.mapEntry(k0(), v0()))); in testRemovePropagatesToMultimap() 79 expectMissing(Helpers.mapEntry(k0(), v0())); in testRemovePropagatesToMultimap() 87 assertTrue(multimap().entries().removeAll(Collections.singleton(Helpers.mapEntry(k0(), v0())))); in testRemoveAllPropagatesToMultimap() 88 expectMissing(Helpers.mapEntry(k0(), v0())); in testRemoveAllPropagatesToMultimap() 96 multimap().entries().retainAll(Collections.singleton(Helpers.mapEntry(k0(), v0()))); in testRetainAllPropagatesToMultimap() 97 assertEquals(getSubjectGenerator().create(Helpers.mapEntry(k0(), v0())), multimap()); in testRetainAllPropagatesToMultimap() [all …]
|
D | ListMultimapEqualsTester.java | 39 Helpers.mapEntry(k0(), v0()), in testOrderingAffectsEqualsComparisons() 40 Helpers.mapEntry(k0(), v1()), in testOrderingAffectsEqualsComparisons() 41 Helpers.mapEntry(k0(), v0())); in testOrderingAffectsEqualsComparisons() 45 Helpers.mapEntry(k0(), v1()), in testOrderingAffectsEqualsComparisons() 46 Helpers.mapEntry(k0(), v0()), in testOrderingAffectsEqualsComparisons() 47 Helpers.mapEntry(k0(), v0())); in testOrderingAffectsEqualsComparisons()
|
D | SetMultimapEqualsTester.java | 39 Helpers.mapEntry(k0(), v0()), in testOrderingDoesntAffectEqualsComparisons() 40 Helpers.mapEntry(k0(), v1()), in testOrderingDoesntAffectEqualsComparisons() 41 Helpers.mapEntry(k0(), v4())); in testOrderingDoesntAffectEqualsComparisons() 45 Helpers.mapEntry(k0(), v1()), in testOrderingDoesntAffectEqualsComparisons() 46 Helpers.mapEntry(k0(), v0()), in testOrderingDoesntAffectEqualsComparisons() 47 Helpers.mapEntry(k0(), v4())); in testOrderingDoesntAffectEqualsComparisons()
|
D | MultimapPutAllMultimapTester.java | 43 multimap().putAll(getSubjectGenerator().create(Helpers.mapEntry(k3(), v3()))); in testPutUnsupported() 59 getSubjectGenerator().create(Helpers.mapEntry(k0(), v3()), Helpers.mapEntry(k3(), v3())); in testPutAll() 67 Multimap<K, V> source = getSubjectGenerator().create(Helpers.mapEntry(k0(), null)); in testPutAllWithNullValue() 74 Multimap<K, V> source = getSubjectGenerator().create(Helpers.mapEntry(null, v0())); in testPutAllWithNullKey() 81 Multimap<K, V> source = getSubjectGenerator().create(Helpers.mapEntry(k0(), null)); in testPutAllRejectsNullValue() 92 Multimap<K, V> source = getSubjectGenerator().create(Helpers.mapEntry(null, v0())); in testPutAllRejectsNullKey() 104 getSubjectGenerator().create(Helpers.mapEntry(k0(), v3()), Helpers.mapEntry(k3(), v3())); in testPutAllPropagatesToGet()
|
D | MultimapKeysTester.java | 47 Helpers.mapEntry(k0(), v0()), Helpers.mapEntry(k0(), v1()), Helpers.mapEntry(k1(), v0())); in testKeys() 66 Helpers.mapEntry((K) null, v0()), in testKeysWithNullKey() 67 Helpers.mapEntry((K) null, v1()), in testKeysWithNullKey() 68 Helpers.mapEntry(k1(), v0())); in testKeysWithNullKey() 102 Helpers.mapEntry(k0(), v0()), Helpers.mapEntry(k0(), v1()), Helpers.mapEntry(k1(), v0())); in testKeysEntrySetRemove()
|
D | MapGenerators.java | 19 import static com.google.common.collect.testing.Helpers.mapEntry; 121 mapEntry("foo", 5), in samples() 122 mapEntry("bar", 3), in samples() 123 mapEntry("baz", 17), in samples() 124 mapEntry("quux", 1), in samples() 125 mapEntry("toaster", -2)); in samples() 191 mapEntry("one", collectionOf(10000)), 192 mapEntry("two", collectionOf(-2000)), 193 mapEntry("three", collectionOf(300)), 194 mapEntry("four", collectionOf(-40)), [all …]
|
D | TestStringBiMapGenerator.java | 40 Helpers.mapEntry("one", "January"), in samples() 41 Helpers.mapEntry("two", "February"), in samples() 42 Helpers.mapEntry("three", "March"), in samples() 43 Helpers.mapEntry("four", "April"), in samples() 44 Helpers.mapEntry("five", "May")); in samples()
|
/external/guava/guava-tests/test/com/google/common/collect/ |
D | ImmutableEnumMapTest.java | 20 import static com.google.common.collect.testing.Helpers.mapEntry; 88 assertThat(copy.entrySet()).containsExactly(Helpers.mapEntry(AnEnum.A, AnEnum.A)); in testIteratesOnce() 102 Helpers.mapEntry(AnEnum.A, "a"), in testImmutableEnumMapOrdering() 103 Helpers.mapEntry(AnEnum.C, "c"), in testImmutableEnumMapOrdering() 104 Helpers.mapEntry(AnEnum.E, "e")) in testImmutableEnumMapOrdering() 116 mapEntry(AnEnum.A, 1), in testToImmutableEnumMap() 117 mapEntry(AnEnum.C, 2), in testToImmutableEnumMap() 118 mapEntry(AnEnum.E, 3)); in testToImmutableEnumMap() 125 Stream.of(mapEntry(AnEnum.A, 1), mapEntry(AnEnum.A, 11)).collect(collector); in testToImmutableMap_exceptionOnDuplicateKey() 139 mapEntry(AnEnum.A, 1), in testToImmutableMapMerging() [all …]
|
/external/guava/android/guava-testlib/src/com/google/common/collect/testing/ |
D | TestStringMapGenerator.java | 37 Helpers.mapEntry("one", "January"), in samples() 38 Helpers.mapEntry("two", "February"), in samples() 39 Helpers.mapEntry("three", "March"), in samples() 40 Helpers.mapEntry("four", "April"), in samples() 41 Helpers.mapEntry("five", "May")); in samples()
|
D | TestEnumMapGenerator.java | 37 Helpers.mapEntry(AnEnum.A, "January"), in samples() 38 Helpers.mapEntry(AnEnum.B, "February"), in samples() 39 Helpers.mapEntry(AnEnum.C, "March"), in samples() 40 Helpers.mapEntry(AnEnum.D, "April"), in samples() 41 Helpers.mapEntry(AnEnum.E, "May")); in samples()
|
/external/guava/guava-testlib/src/com/google/common/collect/testing/ |
D | TestStringMapGenerator.java | 37 Helpers.mapEntry("one", "January"), in samples() 38 Helpers.mapEntry("two", "February"), in samples() 39 Helpers.mapEntry("three", "March"), in samples() 40 Helpers.mapEntry("four", "April"), in samples() 41 Helpers.mapEntry("five", "May")); in samples()
|
D | TestEnumMapGenerator.java | 37 Helpers.mapEntry(AnEnum.A, "January"), in samples() 38 Helpers.mapEntry(AnEnum.B, "February"), in samples() 39 Helpers.mapEntry(AnEnum.C, "March"), in samples() 40 Helpers.mapEntry(AnEnum.D, "April"), in samples() 41 Helpers.mapEntry(AnEnum.E, "May")); in samples()
|