/external/guava/guava-testlib/src/com/google/common/collect/testing/google/ |
D | ListMultimapAsMapTester.java | 24 import com.google.common.collect.testing.Helpers; 70 Helpers.mapEntry(sampleKeys().e0, sampleValues().e0), in testEquals() 71 Helpers.mapEntry(sampleKeys().e1, sampleValues().e0), in testEquals() 72 Helpers.mapEntry(sampleKeys().e0, sampleValues().e3)); in testEquals() 84 Helpers.mapEntry(sampleKeys().e0, sampleValues().e0), in testEntrySetEquals() 85 Helpers.mapEntry(sampleKeys().e1, sampleValues().e0), in testEntrySetEquals() 86 Helpers.mapEntry(sampleKeys().e0, sampleValues().e3)); in testEntrySetEquals() 88 expected.add(Helpers.mapEntry( in testEntrySetEquals() 91 expected.add(Helpers.mapEntry( in testEntrySetEquals() 103 Helpers.mapEntry(sampleKeys().e0, sampleValues().e0), in testValuesRemove() [all …]
|
D | SetMultimapAsMapTester.java | 24 import com.google.common.collect.testing.Helpers; 70 Helpers.mapEntry(sampleKeys().e0, sampleValues().e0), in testEquals() 71 Helpers.mapEntry(sampleKeys().e1, sampleValues().e0), in testEquals() 72 Helpers.mapEntry(sampleKeys().e0, sampleValues().e3)); in testEquals() 84 Helpers.mapEntry(sampleKeys().e0, sampleValues().e0), in testEntrySetEquals() 85 Helpers.mapEntry(sampleKeys().e1, sampleValues().e0), in testEntrySetEquals() 86 Helpers.mapEntry(sampleKeys().e0, sampleValues().e3)); in testEntrySetEquals() 88 expected.add(Helpers.mapEntry( in testEntrySetEquals() 91 expected.add(Helpers.mapEntry( in testEntrySetEquals() 103 Helpers.mapEntry(sampleKeys().e0, sampleValues().e0), in testValuesRemove() [all …]
|
D | SetMultimapEqualsTester.java | 21 import com.google.common.collect.testing.Helpers; 36 Helpers.mapEntry(sampleKeys().e0, sampleValues().e0), in testOrderingDoesntAffectEqualsComparisons() 37 Helpers.mapEntry(sampleKeys().e0, sampleValues().e1), in testOrderingDoesntAffectEqualsComparisons() 38 Helpers.mapEntry(sampleKeys().e0, sampleValues().e4)); in testOrderingDoesntAffectEqualsComparisons() 40 Helpers.mapEntry(sampleKeys().e0, sampleValues().e1), in testOrderingDoesntAffectEqualsComparisons() 41 Helpers.mapEntry(sampleKeys().e0, sampleValues().e0), in testOrderingDoesntAffectEqualsComparisons() 42 Helpers.mapEntry(sampleKeys().e0, sampleValues().e4)); in testOrderingDoesntAffectEqualsComparisons()
|
D | ListMultimapEqualsTester.java | 21 import com.google.common.collect.testing.Helpers; 35 Helpers.mapEntry(sampleKeys().e0, sampleValues().e0), in testOrderingAffectsEqualsComparisons() 36 Helpers.mapEntry(sampleKeys().e0, sampleValues().e1), in testOrderingAffectsEqualsComparisons() 37 Helpers.mapEntry(sampleKeys().e0, sampleValues().e0)); in testOrderingAffectsEqualsComparisons() 39 Helpers.mapEntry(sampleKeys().e0, sampleValues().e1), in testOrderingAffectsEqualsComparisons() 40 Helpers.mapEntry(sampleKeys().e0, sampleValues().e0), in testOrderingAffectsEqualsComparisons() 41 Helpers.mapEntry(sampleKeys().e0, sampleValues().e0)); in testOrderingAffectsEqualsComparisons()
|
D | MultimapEntriesTester.java | 29 import com.google.common.collect.testing.Helpers; 54 Helpers.mapEntry((K) null, getValueForNullKey())); in testContainsEntryWithNullKeyPresent() 59 assertFalse(multimap().entries().contains(Helpers.mapEntry(null, sampleValues().e0))); in testContainsEntryWithNullKeyAbsent() 67 Helpers.mapEntry(getKeyForNullValue(), (V) null)); in testContainsEntryWithNullValuePresent() 73 Helpers.mapEntry(sampleKeys().e0, null))); in testContainsEntryWithNullValueAbsent() 80 Helpers.mapEntry(sampleKeys().e0, sampleValues().e0))); in testRemovePropagatesToMultimap() 81 expectMissing(Helpers.mapEntry(sampleKeys().e0, sampleValues().e0)); in testRemovePropagatesToMultimap() 90 Collections.singleton(Helpers.mapEntry(sampleKeys().e0, sampleValues().e0)))); in testRemoveAllPropagatesToMultimap() 91 expectMissing(Helpers.mapEntry(sampleKeys().e0, sampleValues().e0)); in testRemoveAllPropagatesToMultimap() 100 Collections.singleton(Helpers.mapEntry(sampleKeys().e0, sampleValues().e0))); in testRetainAllPropagatesToMultimap() [all …]
|
D | MultimapPutAllMultimapTester.java | 26 import com.google.common.collect.testing.Helpers; 43 Helpers.mapEntry(sampleKeys().e3, sampleValues().e3))); in testPutUnsupported() 58 Helpers.mapEntry(sampleKeys().e0, sampleValues().e3), in testPutAll() 59 Helpers.mapEntry(sampleKeys().e3, sampleValues().e3)); in testPutAll() 68 Helpers.mapEntry(sampleKeys().e0, null)); in testPutAllWithNullValue() 76 Helpers.mapEntry(null, sampleValues().e0)); in testPutAllWithNullKey() 84 Helpers.mapEntry(sampleKeys().e0, null)); in testPutAllRejectsNullValue() 95 Helpers.mapEntry(null, sampleValues().e0)); in testPutAllRejectsNullKey() 106 Helpers.mapEntry(sampleKeys().e0, sampleValues().e3), in testPutAllPropagatesToGet() 107 Helpers.mapEntry(sampleKeys().e3, sampleValues().e3)); in testPutAllPropagatesToGet()
|
D | TestStringListMultimapGenerator.java | 21 import com.google.common.collect.testing.Helpers; 41 Helpers.mapEntry("one", "January"), in samples() 42 Helpers.mapEntry("two", "February"), in samples() 43 Helpers.mapEntry("three", "March"), in samples() 44 Helpers.mapEntry("four", "April"), in samples() 45 Helpers.mapEntry("five", "May")); in samples() 60 return Helpers.copyToList(values); in createCollection()
|
D | TestStringSetMultimapGenerator.java | 20 import com.google.common.collect.testing.Helpers; 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() 59 return Helpers.copyToSet(values); in createCollection()
|
D | MultimapKeysTester.java | 29 import com.google.common.collect.testing.Helpers; 46 Helpers.mapEntry(sampleKeys().e0, sampleValues().e0), in testKeys() 47 Helpers.mapEntry(sampleKeys().e0, sampleValues().e1), in testKeys() 48 Helpers.mapEntry(sampleKeys().e1, sampleValues().e0)); in testKeys() 68 Helpers.mapEntry((K) null, sampleValues().e0), in testKeysWithNullKey() 69 Helpers.mapEntry((K) null, sampleValues().e1), in testKeysWithNullKey() 70 Helpers.mapEntry(sampleKeys().e1, sampleValues().e0)); in testKeysWithNullKey() 106 Helpers.mapEntry(sampleKeys().e0, sampleValues().e0), in testKeysEntrySetRemove() 107 Helpers.mapEntry(sampleKeys().e0, sampleValues().e1), in testKeysEntrySetRemove() 108 Helpers.mapEntry(sampleKeys().e1, sampleValues().e0)); in testKeysEntrySetRemove()
|
D | TestStringBiMapGenerator.java | 21 import com.google.common.collect.testing.Helpers; 44 Helpers.mapEntry("one", "January"), in samples() 45 Helpers.mapEntry("two", "February"), in samples() 46 Helpers.mapEntry("three", "March"), in samples() 47 Helpers.mapEntry("four", "April"), in samples() 48 Helpers.mapEntry("five", "May") in samples()
|
D | MultimapPutTester.java | 29 import com.google.common.collect.testing.Helpers; 93 List<V> values = Helpers.copyToList(multimap().get(key)); in testPutTwoElements() 149 assertFalse(entries.contains(Helpers.mapEntry(sampleKeys().e3, sampleValues().e3))); in testPutNotPresentKeyPropagatesToEntries() 151 assertThat(entries).has().allOf(Helpers.mapEntry(sampleKeys().e3, sampleValues().e3)); in testPutNotPresentKeyPropagatesToEntries() 158 assertFalse(entries.contains(Helpers.mapEntry(sampleKeys().e0, sampleValues().e3))); in testPutPresentKeyPropagatesToEntries() 160 assertThat(entries).has().allOf(Helpers.mapEntry(sampleKeys().e0, sampleValues().e3)); in testPutPresentKeyPropagatesToEntries() 166 List<K> keys = Helpers.copyToList(multimap().keySet()); in testPutPresentKeyPropagatesToGet() 173 Collection<V> expectedCollection = Helpers.copyToList(collection); in testPutPresentKeyPropagatesToGet() 185 List<K> keys = Helpers.copyToList(multimap().keySet()); in testPutPresentKeyPropagatesToAsMapGet() 193 Collection<V> expectedCollection = Helpers.copyToList(collection); in testPutPresentKeyPropagatesToAsMapGet() [all …]
|
D | MultimapAsMapTester.java | 29 import com.google.common.collect.testing.Helpers; 98 Helpers.mapEntry(sampleKeys().e0, sampleValues().e0), in testAsMapEntrySetReflectsPutSameKey() 99 Helpers.mapEntry(sampleKeys().e0, sampleValues().e3)); in testAsMapEntrySetReflectsPutSameKey() 114 Helpers.mapEntry(sampleKeys().e0, sampleValues().e0), in testAsMapEntrySetReflectsPutDifferentKey() 115 Helpers.mapEntry(sampleKeys().e0, sampleValues().e3)); in testAsMapEntrySetReflectsPutDifferentKey() 126 Helpers.mapEntry(sampleKeys().e0, sampleValues().e0), in testAsMapEntrySetRemovePropagatesToMultimap() 127 Helpers.mapEntry(sampleKeys().e0, sampleValues().e3)); in testAsMapEntrySetRemovePropagatesToMultimap() 140 Helpers.mapEntry(sampleKeys().e0, sampleValues().e0), in testAsMapEntrySetIteratorRemovePropagatesToMultimap() 141 Helpers.mapEntry(sampleKeys().e0, sampleValues().e3)); in testAsMapEntrySetIteratorRemovePropagatesToMultimap()
|
D | MultimapRemoveEntryTester.java | 30 import com.google.common.collect.testing.Helpers; 70 expectMissing(Helpers.mapEntry((K) null, getValueForNullKey())); in testRemoveNullKeyPresent() 81 expectMissing(Helpers.mapEntry(getKeyForNullValue(), (V) null)); in testRemoveNullValuePresent() 122 List<Entry<K, V>> entries = Helpers.copyToList(multimap().entries()); in testRemovePropagatesToGet() 130 Collection<V> expectedCollection = Helpers.copyToList(collection); in testRemovePropagatesToGet() 143 List<Entry<K, V>> entries = Helpers.copyToList(multimap().entries()); in testRemovePropagatesToAsMap() 151 Collection<V> expectedCollection = Helpers.copyToList(collection); in testRemovePropagatesToAsMap() 164 List<Entry<K, V>> entries = Helpers.copyToList(multimap().entries()); in testRemovePropagatesToAsMapEntrySet() 181 Collection<V> expectedCollection = Helpers.copyToList(collection); in testRemovePropagatesToAsMapEntrySet()
|
D | MultimapGetTester.java | 18 import static com.google.common.collect.testing.Helpers.assertContentsAnyOrder; 30 import com.google.common.collect.testing.Helpers; 60 Helpers.mapEntry(sampleKeys().e0, sampleValues().e0), in testGetMultiple() 61 Helpers.mapEntry(sampleKeys().e0, sampleValues().e1), in testGetMultiple() 62 Helpers.mapEntry(sampleKeys().e0, sampleValues().e2)); in testGetMultiple() 77 Helpers.mapEntry(sampleKeys().e0, sampleValues().e0), in testPropagatesRemoveToMultimap() 78 Helpers.mapEntry(sampleKeys().e0, sampleValues().e3), in testPropagatesRemoveToMultimap() 79 Helpers.mapEntry(sampleKeys().e0, sampleValues().e2)); in testPropagatesRemoveToMultimap()
|
D | MultimapRemoveAllTester.java | 28 import com.google.common.collect.testing.Helpers; 70 Helpers.mapEntry(sampleKeys().e0, sampleValues().e0), in testRemoveAllMultipleValues() 71 Helpers.mapEntry(sampleKeys().e0, sampleValues().e1), in testRemoveAllMultipleValues() 72 Helpers.mapEntry(sampleKeys().e0, sampleValues().e2)); in testRemoveAllMultipleValues() 86 expectMissing(Helpers.mapEntry((K) null, getValueForNullKey())); in testRemoveAllNullKeyPresent()
|
D | MultisetIteratorTester.java | 22 import com.google.common.collect.testing.Helpers; 101 Helpers.getMethod(MultisetIteratorTester.class, "testIteratorKnownOrder"), in getIteratorDuplicateInitializingMethods() 102 Helpers.getMethod(MultisetIteratorTester.class, "testIteratorUnknownOrder"), in getIteratorDuplicateInitializingMethods() 103 Helpers.getMethod(MultisetIteratorTester.class, "testRemovingIteratorKnownOrder"), in getIteratorDuplicateInitializingMethods() 104 Helpers.getMethod(MultisetIteratorTester.class, "testRemovingIteratorUnknownOrder")); in getIteratorDuplicateInitializingMethods()
|
/external/guava/guava-testlib/src/com/google/common/collect/testing/testers/ |
D | MapEntrySetTester.java | 30 import com.google.common.collect.testing.Helpers; 66 .entrySet().contains(Helpers.mapEntry(IncomparableType.INSTANCE, samples.e0.getValue()))); in testContainsEntryWithIncomparableKey() 71 .entrySet().contains(Helpers.mapEntry(samples.e0.getKey(), IncomparableType.INSTANCE))); in testContainsEntryWithIncomparableValue() 77 .entrySet().contains(Helpers.mapEntry(null, samples.e0.getValue()))); in testContainsEntryWithNullKeyAbsent() 85 .entrySet().contains(Helpers.mapEntry(null, getValueForNullKey()))); in testContainsEntryWithNullKeyPresent() 91 .entrySet().contains(Helpers.mapEntry(samples.e0.getKey(), null))); in testContainsEntryWithNullValueAbsent() 99 .entrySet().contains(Helpers.mapEntry(getKeyForNullValue(), null))); in testContainsEntryWithNullValuePresent() 104 return Helpers.getMethod(MapEntrySetTester.class, "testContainsEntryWithIncomparableKey"); in getContainsEntryWithIncomparableKeyMethod() 109 return Helpers.getMethod(MapEntrySetTester.class, "testContainsEntryWithIncomparableValue"); in getContainsEntryWithIncomparableValueMethod()
|
D | SortedMapNavigationTester.java | 26 import com.google.common.collect.testing.Helpers; 54 List<Entry<K, V>> entries = Helpers.copyToList(getSubjectGenerator().getSampleElements( in setUp() 56 Collections.sort(entries, Helpers.<K, V>entryComparator(navigableMap.comparator())); in setUp() 116 List<Entry<K, V>> entries = Helpers.copyToList(getSubjectGenerator().getSampleElements( in testHeadMap() 118 Collections.sort(entries, Helpers.<K, V>entryComparator(navigableMap.comparator())); in testHeadMap() 126 List<Entry<K, V>> entries = Helpers.copyToList(getSubjectGenerator().getSampleElements( in testTailMap() 128 Collections.sort(entries, Helpers.<K, V>entryComparator(navigableMap.comparator())); in testTailMap() 136 List<Entry<K, V>> entries = Helpers.copyToList(getSubjectGenerator().getSampleElements( in testSubMap() 138 Collections.sort(entries, Helpers.<K, V>entryComparator(navigableMap.comparator())); in testSubMap()
|
D | NavigableSetNavigationTester.java | 24 import com.google.common.collect.testing.Helpers; 54 values = Helpers.copyToList(getSubjectGenerator().getSampleElements( in setUp() 124 values.subList(1, values.size()), Helpers.copyToList(navigableSet)); in testPollFirst() 206 values.subList(0, values.size() - 1), Helpers.copyToList(navigableSet)); in testPollLast() 251 Helpers.getMethod(NavigableSetNavigationTester.class, "testLowerHole"), in getHoleMethods() 252 Helpers.getMethod(NavigableSetNavigationTester.class, "testFloorHole"), in getHoleMethods() 253 Helpers.getMethod(NavigableSetNavigationTester.class, "testCeilingHole"), in getHoleMethods() 254 Helpers.getMethod(NavigableSetNavigationTester.class, "testHigherHole"), in getHoleMethods()
|
/external/guava/guava-testlib/src/com/google/common/collect/testing/ |
D | TestEnumMapGenerator.java | 19 import static com.google.common.collect.testing.Helpers.orderEntriesByKey; 39 Helpers.mapEntry(AnEnum.A, "January"), in samples() 40 Helpers.mapEntry(AnEnum.B, "February"), in samples() 41 Helpers.mapEntry(AnEnum.C, "March"), in samples() 42 Helpers.mapEntry(AnEnum.D, "April"), in samples() 43 Helpers.mapEntry(AnEnum.E, "May") in samples()
|
D | TestStringSortedMapGenerator.java | 19 import static com.google.common.collect.testing.Helpers.orderEntriesByKey; 37 return Helpers.mapEntry("!! a", "below view"); in belowSamplesLesser() 42 return Helpers.mapEntry("!! b", "below view"); in belowSamplesGreater() 47 return Helpers.mapEntry("~~ a", "above view"); in aboveSamplesLesser() 52 return Helpers.mapEntry("~~ b", "above view"); in aboveSamplesGreater()
|
D | TestStringMapGenerator.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()
|
D | SampleElements.java | 95 Helpers.mapEntry(keys.e0, values.e0), in mapEntries() 96 Helpers.mapEntry(keys.e1, values.e1), in mapEntries() 97 Helpers.mapEntry(keys.e2, values.e2), in mapEntries() 98 Helpers.mapEntry(keys.e3, values.e3), in mapEntries() 99 Helpers.mapEntry(keys.e4, values.e4)); in mapEntries()
|
D | AbstractIteratorTester.java | 140 Helpers.fail(exception, message); in assertPermitted() 203 Helpers.addAll(nextElements, Helpers.reverse(expectedElements)); in MultiExceptionListIterator() 315 Helpers.addAll(elements, previousElements); in getElements() 316 Helpers.addAll(elements, Helpers.reverse(nextElements)); in getElements() 333 elementsToInsert = Helpers.cycle(elementsToInsertIterable); in AbstractIteratorTester() 334 this.features = Helpers.copyToSet(features); in AbstractIteratorTester() 335 this.expectedElements = Helpers.copyToList(expectedElements); in AbstractIteratorTester() 418 Helpers.fail(cause, in compareResultsForThisListOfStimuli() 490 Helpers.fail(e, e.getMessage()); in internalExecuteAndCompare() 495 Helpers.fail(targetException, in internalExecuteAndCompare()
|
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/ |
D | ImmutableEnumMapTest.java | 23 import com.google.common.collect.testing.Helpers; 59 Helpers.mapEntry(AnEnum.A, "a"), in testImmutableEnumMapOrdering() 60 Helpers.mapEntry(AnEnum.C, "c"), in testImmutableEnumMapOrdering() 61 Helpers.mapEntry(AnEnum.E, "e")).inOrder(); in testImmutableEnumMapOrdering()
|