/external/guava/guava-testlib/src/com/google/common/collect/testing/google/ |
D | MultimapKeysTester.java | 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() 50 assertEquals(2, keys.count(sampleKeys().e0)); in testKeys() 51 assertEquals(1, keys.count(sampleKeys().e1)); in testKeys() 53 assertThat(keys).has().allOf(sampleKeys().e0, sampleKeys().e1); in testKeys() 55 Multisets.immutableEntry(sampleKeys().e0, 2), in testKeys() 56 Multisets.immutableEntry(sampleKeys().e1, 1)); in testKeys() 70 Helpers.mapEntry(sampleKeys().e1, sampleValues().e0)); in testKeysWithNullKey() 73 assertEquals(1, keys.count(sampleKeys().e1)); in testKeysWithNullKey() [all …]
|
D | MultimapPutIterableTester.java | 46 assertTrue(multimap().putAll(sampleKeys().e0, new Iterable<V>() { in testPutAllNonEmptyIterableOnPresentKey() 52 assertGet(sampleKeys().e0, sampleValues().e0, sampleValues().e3, sampleValues().e4); in testPutAllNonEmptyIterableOnPresentKey() 59 sampleKeys().e0, Lists.newArrayList(sampleValues().e3, sampleValues().e4))); in testPutAllNonEmptyCollectionOnPresentKey() 60 assertGet(sampleKeys().e0, sampleValues().e0, sampleValues().e3, sampleValues().e4); in testPutAllNonEmptyCollectionOnPresentKey() 65 assertTrue(multimap().putAll(sampleKeys().e3, new Iterable<V>() { in testPutAllNonEmptyIterableOnAbsentKey() 71 assertGet(sampleKeys().e3, sampleValues().e3, sampleValues().e4); in testPutAllNonEmptyIterableOnAbsentKey() 77 sampleKeys().e3, Lists.newArrayList(sampleValues().e3, sampleValues().e4))); in testPutAllNonEmptyCollectionOnAbsentKey() 78 assertGet(sampleKeys().e3, sampleValues().e3, sampleValues().e4); in testPutAllNonEmptyCollectionOnAbsentKey() 84 assertTrue(multimap().putAll(sampleKeys().e0, Lists.newArrayList(sampleValues().e3, null))); in testPutAllNullValueOnPresentKey_supported() 85 assertGet(sampleKeys().e0, sampleValues().e0, sampleValues().e3, null); in testPutAllNullValueOnPresentKey_supported() [all …]
|
D | MultimapGetTester.java | 45 Collection<V> result = multimap().get(sampleKeys().e3); in testGetEmpty() 52 Collection<V> result = multimap().get(sampleKeys().e0); in testGetNonEmpty() 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() 63 assertGet(sampleKeys().e0, in testGetMultiple() 70 assertGet(sampleKeys().e4); in testGetAbsentKey() 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() [all …]
|
D | MultimapAsMapGetTester.java | 47 Helpers.mapEntry(sampleKeys().e0, sampleValues().e0), in testPropagatesRemoveToMultimap() 48 Helpers.mapEntry(sampleKeys().e0, sampleValues().e3), in testPropagatesRemoveToMultimap() 49 Helpers.mapEntry(sampleKeys().e0, sampleValues().e2)); in testPropagatesRemoveToMultimap() 50 Collection<V> result = multimap().asMap().get(sampleKeys().e0); in testPropagatesRemoveToMultimap() 52 assertFalse(multimap().containsEntry(sampleKeys().e0, sampleValues().e0)); in testPropagatesRemoveToMultimap() 59 Collection<V> result = multimap().asMap().get(sampleKeys().e0); in testPropagatesRemoveLastElementToMultimap() 61 assertGet(sampleKeys().e0); in testPropagatesRemoveLastElementToMultimap() 67 Collection<V> result = multimap().asMap().get(sampleKeys().e0); in testPropagatesClearToMultimap() 69 assertGet(sampleKeys().e0); in testPropagatesClearToMultimap() 76 Collection<V> result = multimap().asMap().get(sampleKeys().e0); in testAddNullValue() [all …]
|
D | ListMultimapAsMapTester.java | 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() 74 expected.put(sampleKeys().e0, Lists.newArrayList(sampleValues().e0, sampleValues().e3)); in testEquals() 75 expected.put(sampleKeys().e1, Lists.newArrayList(sampleValues().e0)); 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() 89 sampleKeys().e0, in testEntrySetEquals() 92 sampleKeys().e1, in testEntrySetEquals() [all …]
|
D | SetMultimapAsMapTester.java | 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() 74 expected.put(sampleKeys().e0, Sets.newHashSet(sampleValues().e0, sampleValues().e3)); in testEquals() 75 expected.put(sampleKeys().e1, Sets.newHashSet(sampleValues().e0)); 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() 89 sampleKeys().e0, in testEntrySetEquals() 92 sampleKeys().e1, in testEntrySetEquals() [all …]
|
D | MultimapAsMapTester.java | 49 for (K key : sampleKeys()) { in testAsMapGet() 89 assertThat(multimap().asMap().remove(sampleKeys().e0)).iteratesAs(sampleValues().e0); in testAsMapRemove() 90 assertGet(sampleKeys().e0); in testAsMapRemove() 98 Helpers.mapEntry(sampleKeys().e0, sampleValues().e0), in testAsMapEntrySetReflectsPutSameKey() 99 Helpers.mapEntry(sampleKeys().e0, sampleValues().e3)); in testAsMapEntrySetReflectsPutSameKey() 105 assertTrue(multimap().put(sampleKeys().e0, sampleValues().e4)); in testAsMapEntrySetReflectsPutSameKey() 114 Helpers.mapEntry(sampleKeys().e0, sampleValues().e0), in testAsMapEntrySetReflectsPutDifferentKey() 115 Helpers.mapEntry(sampleKeys().e0, sampleValues().e3)); in testAsMapEntrySetReflectsPutDifferentKey() 118 assertTrue(multimap().put(sampleKeys().e1, sampleValues().e4)); in testAsMapEntrySetReflectsPutDifferentKey() 126 Helpers.mapEntry(sampleKeys().e0, sampleValues().e0), in testAsMapEntrySetRemovePropagatesToMultimap() [all …]
|
D | MultimapPutAllMultimapTester.java | 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() 61 assertTrue(multimap().containsEntry(sampleKeys().e0, sampleValues().e3)); in testPutAll() 62 assertTrue(multimap().containsEntry(sampleKeys().e3, sampleValues().e3)); in testPutAll() 68 Helpers.mapEntry(sampleKeys().e0, null)); in testPutAllWithNullValue() 70 assertTrue(multimap().containsEntry(sampleKeys().e0, null)); in testPutAllWithNullValue() 84 Helpers.mapEntry(sampleKeys().e0, null)); in testPutAllRejectsNullValue() 106 Helpers.mapEntry(sampleKeys().e0, sampleValues().e3), in testPutAllPropagatesToGet() 107 Helpers.mapEntry(sampleKeys().e3, sampleValues().e3)); in testPutAllPropagatesToGet() [all …]
|
D | MultimapPutTester.java | 48 multimap().put(sampleKeys().e3, sampleValues().e3); in testPutUnsupported() 57 K key = sampleKeys().e3; in testPutEmpty() 73 K key = sampleKeys().e0; in testPutPresent() 89 K key = sampleKeys().e0; in testPutTwoElements() 109 multimap().put(sampleKeys().e3, null); in testPutNullValue_supported() 111 assertGet(sampleKeys().e3, Lists.newArrayList((V) null)); // ImmutableList.of can't take null. in testPutNullValue_supported() 118 multimap().put(sampleKeys().e1, null); in testPutNullValue_unsupported() 139 Collection<V> collection = multimap().get(sampleKeys().e3); in testPutNotPresentKeyPropagatesToGet() 141 multimap().put(sampleKeys().e3, sampleValues().e3); in testPutNotPresentKeyPropagatesToGet() 149 assertFalse(entries.contains(Helpers.mapEntry(sampleKeys().e3, sampleValues().e3))); in testPutNotPresentKeyPropagatesToEntries() [all …]
|
D | MultimapEntriesTester.java | 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() 83 assertFalse(multimap().containsEntry(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() 93 assertFalse(multimap().containsEntry(sampleKeys().e0, sampleValues().e0)); in testRemoveAllPropagatesToMultimap() 100 Collections.singleton(Helpers.mapEntry(sampleKeys().e0, sampleValues().e0))); in testRetainAllPropagatesToMultimap() 102 getSubjectGenerator().create(Helpers.mapEntry(sampleKeys().e0, sampleValues().e0)), in testRetainAllPropagatesToMultimap() 105 assertTrue(multimap().containsEntry(sampleKeys().e0, sampleValues().e0)); in testRetainAllPropagatesToMultimap() [all …]
|
D | MultimapRemoveAllTester.java | 43 assertThat(multimap().removeAll(sampleKeys().e3)).isEmpty(); in testRemoveAllAbsentKey() 50 assertThat(multimap().removeAll(sampleKeys().e0)) in testRemoveAllPresentKey() 58 Collection<V> getResult = multimap().get(sampleKeys().e0); in testRemoveAllPropagatesToGet() 60 multimap().removeAll(sampleKeys().e0); in testRemoveAllPropagatesToGet() 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() 74 assertThat(multimap().removeAll(sampleKeys().e0)) in testRemoveAllMultipleValues()
|
D | SetMultimapEqualsTester.java | 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 | 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 | MultimapKeySetTester.java | 59 int key0Count = multimap().get(sampleKeys().e0).size(); in testKeySetRemovePropagatesToMultimap() 60 assertEquals(key0Count > 0, multimap().keySet().remove(sampleKeys().e0)); in testKeySetRemovePropagatesToMultimap() 62 assertGet(sampleKeys().e0); in testKeySetRemovePropagatesToMultimap() 68 int key0Count = multimap().get(sampleKeys().e0).size(); in testKeySetIteratorRemove() 71 if (keyItr.next().equals(sampleKeys().e0)) { in testKeySetIteratorRemove() 76 assertGet(sampleKeys().e0); in testKeySetIteratorRemove()
|
D | MultimapContainsKeyTester.java | 38 assertTrue(multimap().containsKey(sampleKeys().e0)); in testContainsKeyYes() 42 assertFalse(multimap().containsKey(sampleKeys().e3)); in testContainsKeyNo() 52 for (K k : sampleKeys()) { in testContainsKeyAgreesWithGet() 58 for (K k : sampleKeys()) { in testContainsKeyAgreesWithAsMap() 64 for (K k : sampleKeys()) { in testContainsKeyAgreesWithKeySet()
|
D | MultimapReplaceValuesTester.java | 50 K key = sampleKeys().e0; in testReplaceValuesWithNullValue() 70 K key = sampleKeys().e3; in testReplaceEmptyValues() 81 K key = sampleKeys().e0; in testReplaceValuesWithEmpty() 93 K key = sampleKeys().e0; in testReplaceValuesWithDuplicates() 126 K key = sampleKeys().e0; in testReplaceValuesPropagatesToGet() 140 multimap().replaceValues(sampleKeys().e0, values); in testReplaceValuesRemoveNotSupported() 151 multimap().replaceValues(sampleKeys().e0, values); in testReplaceValuesPutNotSupported()
|
D | MultimapContainsEntryTester.java | 40 assertTrue(multimap().containsEntry(sampleKeys().e0, sampleValues().e0)); in testContainsEntryYes() 44 assertFalse(multimap().containsEntry(sampleKeys().e3, sampleValues().e3)); in testContainsEntryNo() 48 for (K k : sampleKeys()) { in testContainsEntryAgreesWithGet() 85 multimap().containsEntry(sampleKeys().e3, null); in testContainsEntryNullDisallowedBecauseValueQueriesDisallowed()
|
D | MultimapRemoveEntryTester.java | 48 assertFalse(multimap().remove(sampleKeys().e0, sampleValues().e1)); in testRemoveAbsent() 55 assertTrue(multimap().remove(sampleKeys().e0, sampleValues().e0)); in testRemovePresent() 57 assertFalse(multimap().containsEntry(sampleKeys().e0, sampleValues().e0)); in testRemovePresent() 60 assertGet(sampleKeys().e0, ImmutableList.<V>of()); in testRemovePresent() 93 assertFalse(multimap().remove(sampleKeys().e0, null)); in testRemoveNullValueAbsent() 100 multimap().remove(sampleKeys().e0, null); in testRemoveNullValueForbidden()
|
D | MultimapTestSuiteBuilder.java | 330 SampleElements<K> sampleKeys = in samples() local 331 ((TestMultimapGenerator<K, V, M>) multimapGenerator.getInnerGenerator()).sampleKeys(); in samples() 335 mapEntry(sampleKeys.e0, createCollection(sampleValues.e0)), in samples() 336 mapEntry(sampleKeys.e1, createCollection(sampleValues.e1)), in samples() 337 mapEntry(sampleKeys.e2, createCollection(sampleValues.e2)), in samples() 338 mapEntry(sampleKeys.e3, createCollection(sampleValues.e3)), in samples() 339 mapEntry(sampleKeys.e4, createCollection(sampleValues.e4))); in samples() 448 ((TestMultimapGenerator<K, V, M>) multimapGenerator.getInnerGenerator()).sampleKeys().e0; in create() 466 ((TestMultimapGenerator<K, V, M>) multimapGenerator.getInnerGenerator()).sampleKeys().e0; in order() 496 return ((TestMultimapGenerator<K, V, M>) multimapGenerator.getInnerGenerator()).sampleKeys(); in samples() [all …]
|
D | ListMultimapRemoveTester.java | 44 K k = sampleKeys().e0; in testMultimapRemoveDeletesFirstOccurrence() 58 K k = sampleKeys().e0; in testRemoveAtIndexFromGetPropagates() 78 K k = sampleKeys().e0; in testRemoveAtIndexFromAsMapPropagates() 99 K k = sampleKeys().e0; in testRemoveAtIndexFromAsMapEntrySetPropagates()
|
D | MultimapSizeTester.java | 96 mapEntry(sampleKeys().e0, sampleValues().e0), in testSizeMultipleValues() 97 mapEntry(sampleKeys().e0, sampleValues().e1), in testSizeMultipleValues() 98 mapEntry(sampleKeys().e0, sampleValues().e2)); in testSizeMultipleValues()
|
D | MultimapClearTester.java | 57 for (K key : sampleKeys()) { in assertCleared() 101 for (K key : sampleKeys()) { in testClearPropagatesToGet() 112 for (K key : sampleKeys()) { in testClearPropagatesToAsMapGet()
|
D | AbstractMultimapTester.java | 111 protected SampleElements<K> sampleKeys() { in sampleKeys() method in AbstractMultimapTester 113 .getInnerGenerator()).sampleKeys(); in sampleKeys()
|
D | SortedSetMultimapGetTester.java | 33 multimap().get(sampleKeys().e0).comparator()); in testValueComparator()
|
D | TestMultimapGenerator.java | 40 SampleElements<K> sampleKeys(); in sampleKeys() method
|