Home
last modified time | relevance | path

Searched refs:sampleValues (Results 1 – 25 of 33) sorted by relevance

12

/external/guava/guava-testlib/src/com/google/common/collect/testing/google/
DMultimapPutIterableTester.java49 return Lists.newArrayList(sampleValues().e3, sampleValues().e4).iterator(); 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()
68 return Lists.newArrayList(sampleValues().e3, sampleValues().e4).iterator(); 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 …]
DListMultimapAsMapTester.java70 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()
90 (Collection<V>) Lists.newArrayList(sampleValues().e0, sampleValues().e3))); in testEntrySetEquals()
93 (Collection<V>) Lists.newArrayList(sampleValues().e0))); in testEntrySetEquals()
[all …]
DSetMultimapAsMapTester.java70 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()
90 (Collection<V>) Sets.newHashSet(sampleValues().e0, sampleValues().e3))); in testEntrySetEquals()
93 (Collection<V>) Sets.newHashSet(sampleValues().e0))); in testEntrySetEquals()
[all …]
DMultimapReplaceValuesTester.java52 List<V> values = Arrays.asList(sampleValues().e0, null, sampleValues().e3); in testReplaceValuesWithNullValue()
62 List<V> values = Arrays.asList(sampleValues().e0, sampleValues().e2, sampleValues().e3); in testReplaceValuesWithNullKey()
72 List<V> values = Arrays.asList(sampleValues().e0, sampleValues().e2, sampleValues().e3); in testReplaceEmptyValues()
96 sampleValues().e0, in testReplaceValuesWithDuplicates()
97 sampleValues().e3, in testReplaceValuesWithDuplicates()
98 sampleValues().e0); in testReplaceValuesWithDuplicates()
111 List<V> values = Arrays.asList(sampleValues().e0, sampleValues().e2, sampleValues().e3); in testReplaceNonEmptyValues()
129 List<V> values = Arrays.asList(sampleValues().e0, sampleValues().e2, sampleValues().e3); in testReplaceValuesPropagatesToGet()
132 sampleValues().e0, sampleValues().e2, sampleValues().e3); in testReplaceValuesPropagatesToGet()
138 List<V> values = Collections.singletonList(sampleValues().e3); in testReplaceValuesRemoveNotSupported()
[all …]
DMultimapGetTester.java54 assertContentsAnyOrder(result, sampleValues().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()
64 sampleValues().e0, in testGetMultiple()
65 sampleValues().e1, in testGetMultiple()
66 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()
[all …]
DMultimapPutTester.java48 multimap().put(sampleKeys().e3, sampleValues().e3); in testPutUnsupported()
58 V value = sampleValues().e3; in testPutEmpty()
74 V oldValue = sampleValues().e0; in testPutPresent()
75 V newValue = sampleValues().e3; in testPutPresent()
90 V v1 = sampleValues().e3; in testPutTwoElements()
91 V v2 = sampleValues().e4; in testPutTwoElements()
130 multimap().put(null, sampleValues().e3); in testPutNullKey()
132 assertGet(null, sampleValues().e3); in testPutNullKey()
141 multimap().put(sampleKeys().e3, sampleValues().e3); in testPutNotPresentKeyPropagatesToGet()
142 assertThat(collection).has().item(sampleValues().e3); in testPutNotPresentKeyPropagatesToGet()
[all …]
DMultimapAsMapTester.java89 assertThat(multimap().asMap().remove(sampleKeys().e0)).iteratesAs(sampleValues().e0); in testAsMapRemove()
98 Helpers.mapEntry(sampleKeys().e0, sampleValues().e0), in testAsMapEntrySetReflectsPutSameKey()
99 Helpers.mapEntry(sampleKeys().e0, sampleValues().e3)); in testAsMapEntrySetReflectsPutSameKey()
104 .has().exactly(sampleValues().e0, sampleValues().e3); in testAsMapEntrySetReflectsPutSameKey()
105 assertTrue(multimap().put(sampleKeys().e0, sampleValues().e4)); in testAsMapEntrySetReflectsPutSameKey()
107 .has().exactly(sampleValues().e0, sampleValues().e3, 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 …]
DMultimapPutAllMultimapTester.java43 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()
76 Helpers.mapEntry(null, sampleValues().e0)); in testPutAllWithNullKey()
78 assertTrue(multimap().containsEntry(null, sampleValues().e0)); in testPutAllWithNullKey()
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()
[all …]
DMultimapAsMapGetTester.java47 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()
51 assertTrue(result.remove(sampleValues().e0)); in testPropagatesRemoveToMultimap()
52 assertFalse(multimap().containsEntry(sampleKeys().e0, sampleValues().e0)); in testPropagatesRemoveToMultimap()
60 assertTrue(result.remove(sampleValues().e0)); in testPropagatesRemoveLastElementToMultimap()
102 result.add(sampleValues().e3); in testPropagatesAddToMultimap()
104 .has().exactly(sampleValues().e0, sampleValues().e3); in testPropagatesAddToMultimap()
113 V v0 = sampleValues().e0; in testPropagatesRemoveThenAddToMultimap()
122 V v1 = sampleValues().e1; in testPropagatesRemoveThenAddToMultimap()
[all …]
DMultimapEntriesTester.java59 assertFalse(multimap().entries().contains(Helpers.mapEntry(null, sampleValues().e0))); in testContainsEntryWithNullKeyAbsent()
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 …]
DMultimapKeysTester.java46 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()
112 assertTrue(multimap().containsEntry(sampleKeys().e1, sampleValues().e0)); in testKeysEntrySetRemove()
DListMultimapEqualsTester.java35 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()
DSetMultimapEqualsTester.java36 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()
DMultimapRemoveAllTester.java51 .has().exactly(sampleValues().e0).inOrder(); in testRemoveAllPresentKey()
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()
75 .has().exactly(sampleValues().e0, sampleValues().e1, sampleValues().e2); in testRemoveAllMultipleValues()
DListMultimapRemoveTester.java45 V v0 = sampleValues().e0; in testMultimapRemoveDeletesFirstOccurrence()
46 V v1 = sampleValues().e2; in testMultimapRemoveDeletesFirstOccurrence()
59 V v0 = sampleValues().e0; in testRemoveAtIndexFromGetPropagates()
60 V v1 = sampleValues().e2; in testRemoveAtIndexFromGetPropagates()
79 V v0 = sampleValues().e0; in testRemoveAtIndexFromAsMapPropagates()
80 V v1 = sampleValues().e2; in testRemoveAtIndexFromAsMapPropagates()
100 V v0 = sampleValues().e0; in testRemoveAtIndexFromAsMapEntrySetPropagates()
101 V v1 = sampleValues().e2; in testRemoveAtIndexFromAsMapEntrySetPropagates()
DMultimapContainsEntryTester.java40 assertTrue(multimap().containsEntry(sampleKeys().e0, sampleValues().e0)); in testContainsEntryYes()
44 assertFalse(multimap().containsEntry(sampleKeys().e3, sampleValues().e3)); in testContainsEntryNo()
49 for (V v : sampleValues()) { in testContainsEntryAgreesWithGet()
71 multimap().containsEntry(null, sampleValues().e3); in testContainsEntryNullDisallowedBecauseKeyQueriesDisallowed()
DListMultimapReplaceValuesTester.java38 sampleValues().e3, in testReplaceValuesPreservesOrder()
39 sampleValues().e1, in testReplaceValuesPreservesOrder()
40 sampleValues().e4); in testReplaceValuesPreservesOrder()
DListMultimapPutAllTester.java38 sampleValues().e3, in testPutAllAddsAtEndInOrder()
39 sampleValues().e1, in testPutAllAddsAtEndInOrder()
40 sampleValues().e4); in testPutAllAddsAtEndInOrder()
DMultimapRemoveEntryTester.java48 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()
87 assertFalse(multimap().remove(null, sampleValues().e0)); in testRemoveNullKeyAbsent()
111 multimap().remove(null, sampleValues().e0); in testRemoveNullKeyForbidden()
DMultimapSizeTester.java96 mapEntry(sampleKeys().e0, sampleValues().e0), in testSizeMultipleValues()
97 mapEntry(sampleKeys().e0, sampleValues().e1), in testSizeMultipleValues()
98 mapEntry(sampleKeys().e0, sampleValues().e2)); in testSizeMultipleValues()
DMultimapTestSuiteBuilder.java332 SampleElements<V> sampleValues = in samples() local
333 ((TestMultimapGenerator<K, V, M>) multimapGenerator.getInnerGenerator()).sampleValues(); 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()
442 ((TestMultimapGenerator<K, V, M>) multimapGenerator.getInnerGenerator()).sampleValues(); in samples()
522 .getInnerGenerator()).sampleValues().iterator(); in sampleValuesIterator()
561 .sampleValues(); in samples()
[all …]
DSetMultimapReplaceValuesTester.java38 V v0 = sampleValues().e3; in testReplaceValuesHandlesDuplicates()
39 V v1 = sampleValues().e2; in testReplaceValuesHandlesDuplicates()
DSetMultimapPutAllTester.java39 V v0 = sampleValues().e3; in testPutAllHandlesDuplicates()
40 V v1 = sampleValues().e2; in testPutAllHandlesDuplicates()
DMultimapContainsValueTester.java38 assertTrue(multimap().containsValue(sampleValues().e0)); in testContainsValueYes()
42 assertFalse(multimap().containsValue(sampleValues().e3)); in testContainsValueNo()
DAbstractMultimapTester.java116 protected SampleElements<V> sampleValues() { in sampleValues() method in AbstractMultimapTester
118 .getInnerGenerator()).sampleValues(); in sampleValues()

12