Home
last modified time | relevance | path

Searched refs:Helpers (Results 1 – 25 of 367) sorted by relevance

12345678910>>...15

/external/guava/android/guava-testlib/test/com/google/common/collect/testing/
DHelpersTest.java19 import static com.google.common.collect.testing.Helpers.NullsBeforeB;
20 import static com.google.common.collect.testing.Helpers.testComparator;
46 Helpers.assertEmpty(list); in testIsEmpty_iterable()
47 Helpers.assertEmpty( in testIsEmpty_iterable()
57 Helpers.assertEmpty(list); in testIsEmpty_iterable()
62 Helpers.assertEmpty( in testIsEmpty_iterable()
76 Helpers.assertEmpty(map); in testIsEmpty_map()
80 Helpers.assertEmpty(map); in testIsEmpty_map()
88 Helpers.assertEqualInOrder(list, list); in testAssertEqualInOrder()
92 Helpers.assertEqualInOrder(list, fewer); in testAssertEqualInOrder()
[all …]
/external/guava/guava-testlib/test/com/google/common/collect/testing/
DHelpersTest.java19 import static com.google.common.collect.testing.Helpers.NullsBeforeB;
20 import static com.google.common.collect.testing.Helpers.testComparator;
46 Helpers.assertEmpty(list); in testIsEmpty_iterable()
47 Helpers.assertEmpty( in testIsEmpty_iterable()
57 Helpers.assertEmpty(list); in testIsEmpty_iterable()
62 Helpers.assertEmpty( in testIsEmpty_iterable()
76 Helpers.assertEmpty(map); in testIsEmpty_map()
80 Helpers.assertEmpty(map); in testIsEmpty_map()
88 Helpers.assertEqualInOrder(list, list); in testAssertEqualInOrder()
92 Helpers.assertEqualInOrder(list, fewer); in testAssertEqualInOrder()
[all …]
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/
DMultimapEntriesTester.java17 import static com.google.common.collect.testing.Helpers.assertContains;
18 import static com.google.common.collect.testing.Helpers.assertEqualIgnoringOrder;
30 import com.google.common.collect.testing.Helpers;
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()
[all …]
DListMultimapAsMapTester.java24 import com.google.common.collect.testing.Helpers;
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()
DSetMultimapAsMapTester.java24 import com.google.common.collect.testing.Helpers;
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()
DMultimapPutAllMultimapTester.java19 import static com.google.common.collect.testing.Helpers.assertContains;
26 import com.google.common.collect.testing.Helpers;
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()
DSetMultimapEqualsTester.java21 import com.google.common.collect.testing.Helpers;
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()
DListMultimapEqualsTester.java21 import com.google.common.collect.testing.Helpers;
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()
DMultimapPutTester.java19 import static com.google.common.collect.testing.Helpers.assertContains;
20 import static com.google.common.collect.testing.Helpers.assertEmpty;
21 import static com.google.common.collect.testing.Helpers.assertEqualIgnoringOrder;
31 import com.google.common.collect.testing.Helpers;
86 List<V> values = Helpers.copyToList(multimap().get(k0())); in testPutTwoElements()
142 assertFalse(entries.contains(Helpers.mapEntry(k3(), v3()))); in testPutNotPresentKeyPropagatesToEntries()
144 assertContains(entries, Helpers.mapEntry(k3(), v3())); in testPutNotPresentKeyPropagatesToEntries()
151 assertFalse(entries.contains(Helpers.mapEntry(k0(), v3()))); in testPutPresentKeyPropagatesToEntries()
153 assertContains(entries, Helpers.mapEntry(k0(), v3())); in testPutPresentKeyPropagatesToEntries()
159 List<K> keys = Helpers.copyToList(multimap().keySet()); in testPutPresentKeyPropagatesToGet()
[all …]
DMultimapKeysTester.java17 import static com.google.common.collect.testing.Helpers.assertContainsAllOf;
29 import com.google.common.collect.testing.Helpers;
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()
DMultimapAsMapTester.java17 import static com.google.common.collect.testing.Helpers.assertContentsAnyOrder;
18 import static com.google.common.collect.testing.Helpers.assertContentsInOrder;
19 import static com.google.common.collect.testing.Helpers.assertEqualIgnoringOrder;
31 import com.google.common.collect.testing.Helpers;
101 resetContainer(Helpers.mapEntry(k0(), v0()), Helpers.mapEntry(k0(), v3())); in testAsMapEntrySetReflectsPutSameKey()
113 resetContainer(Helpers.mapEntry(k0(), v0()), Helpers.mapEntry(k0(), v3())); in testAsMapEntrySetReflectsPutDifferentKey()
123 resetContainer(Helpers.mapEntry(k0(), v0()), Helpers.mapEntry(k0(), v3())); in testAsMapEntrySetRemovePropagatesToMultimap()
135 resetContainer(Helpers.mapEntry(k0(), v0()), Helpers.mapEntry(k0(), v3())); in testAsMapEntrySetIteratorRemovePropagatesToMultimap()
DTestStringListMultimapGenerator.java21 import com.google.common.collect.testing.Helpers;
39 Helpers.mapEntry("one", "January"), in samples()
40 Helpers.mapEntry("two", "February"), in samples()
41 Helpers.mapEntry("three", "March"), in samples()
42 Helpers.mapEntry("four", "April"), in samples()
43 Helpers.mapEntry("five", "May")); in samples()
58 return Helpers.copyToList(values); in createCollection()
DTestStringSetMultimapGenerator.java20 import com.google.common.collect.testing.Helpers;
38 Helpers.mapEntry("one", "January"), in samples()
39 Helpers.mapEntry("two", "February"), in samples()
40 Helpers.mapEntry("three", "March"), in samples()
41 Helpers.mapEntry("four", "April"), in samples()
42 Helpers.mapEntry("five", "May")); in samples()
57 return Helpers.copyToSet(values); in createCollection()
/external/guava/android/guava-testlib/src/com/google/common/collect/testing/google/
DMultimapEntriesTester.java17 import static com.google.common.collect.testing.Helpers.assertContains;
18 import static com.google.common.collect.testing.Helpers.assertEqualIgnoringOrder;
30 import com.google.common.collect.testing.Helpers;
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()
[all …]
DListMultimapAsMapTester.java24 import com.google.common.collect.testing.Helpers;
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()
DSetMultimapAsMapTester.java24 import com.google.common.collect.testing.Helpers;
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()
DMultimapPutAllMultimapTester.java19 import static com.google.common.collect.testing.Helpers.assertContains;
26 import com.google.common.collect.testing.Helpers;
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()
DSetMultimapEqualsTester.java21 import com.google.common.collect.testing.Helpers;
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()
DListMultimapEqualsTester.java21 import com.google.common.collect.testing.Helpers;
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()
DMultimapPutTester.java19 import static com.google.common.collect.testing.Helpers.assertContains;
20 import static com.google.common.collect.testing.Helpers.assertEmpty;
21 import static com.google.common.collect.testing.Helpers.assertEqualIgnoringOrder;
31 import com.google.common.collect.testing.Helpers;
86 List<V> values = Helpers.copyToList(multimap().get(k0())); in testPutTwoElements()
142 assertFalse(entries.contains(Helpers.mapEntry(k3(), v3()))); in testPutNotPresentKeyPropagatesToEntries()
144 assertContains(entries, Helpers.mapEntry(k3(), v3())); in testPutNotPresentKeyPropagatesToEntries()
151 assertFalse(entries.contains(Helpers.mapEntry(k0(), v3()))); in testPutPresentKeyPropagatesToEntries()
153 assertContains(entries, Helpers.mapEntry(k0(), v3())); in testPutPresentKeyPropagatesToEntries()
159 List<K> keys = Helpers.copyToList(multimap().keySet()); in testPutPresentKeyPropagatesToGet()
[all …]
DMultimapKeysTester.java17 import static com.google.common.collect.testing.Helpers.assertContainsAllOf;
29 import com.google.common.collect.testing.Helpers;
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()
DMultimapAsMapTester.java17 import static com.google.common.collect.testing.Helpers.assertContentsAnyOrder;
18 import static com.google.common.collect.testing.Helpers.assertContentsInOrder;
19 import static com.google.common.collect.testing.Helpers.assertEqualIgnoringOrder;
31 import com.google.common.collect.testing.Helpers;
101 resetContainer(Helpers.mapEntry(k0(), v0()), Helpers.mapEntry(k0(), v3())); in testAsMapEntrySetReflectsPutSameKey()
113 resetContainer(Helpers.mapEntry(k0(), v0()), Helpers.mapEntry(k0(), v3())); in testAsMapEntrySetReflectsPutDifferentKey()
123 resetContainer(Helpers.mapEntry(k0(), v0()), Helpers.mapEntry(k0(), v3())); in testAsMapEntrySetRemovePropagatesToMultimap()
135 resetContainer(Helpers.mapEntry(k0(), v0()), Helpers.mapEntry(k0(), v3())); in testAsMapEntrySetIteratorRemovePropagatesToMultimap()
DTestStringListMultimapGenerator.java21 import com.google.common.collect.testing.Helpers;
39 Helpers.mapEntry("one", "January"), in samples()
40 Helpers.mapEntry("two", "February"), in samples()
41 Helpers.mapEntry("three", "March"), in samples()
42 Helpers.mapEntry("four", "April"), in samples()
43 Helpers.mapEntry("five", "May")); in samples()
58 return Helpers.copyToList(values); in createCollection()
/external/guava/guava-testlib/src/com/google/common/collect/testing/testers/
DMapEntrySetTester.java31 import com.google.common.collect.testing.Helpers;
68 assertFalse(getMap().entrySet().contains(Helpers.mapEntry(IncomparableType.INSTANCE, v0()))); in testContainsEntryWithIncomparableKey()
76 assertFalse(getMap().entrySet().contains(Helpers.mapEntry(k0(), IncomparableType.INSTANCE))); in testContainsEntryWithIncomparableValue()
84 assertFalse(getMap().entrySet().contains(Helpers.mapEntry(null, v0()))); in testContainsEntryWithNullKeyAbsent()
91 assertTrue(getMap().entrySet().contains(Helpers.mapEntry(null, getValueForNullKey()))); in testContainsEntryWithNullKeyPresent()
96 assertFalse(getMap().entrySet().contains(Helpers.mapEntry(k0(), null))); in testContainsEntryWithNullValueAbsent()
103 assertTrue(getMap().entrySet().contains(Helpers.mapEntry(getKeyForNullValue(), null))); in testContainsEntryWithNullValuePresent()
146 return Helpers.getMethod(MapEntrySetTester.class, "testContainsEntryWithIncomparableKey"); in getContainsEntryWithIncomparableKeyMethod()
151 return Helpers.getMethod(MapEntrySetTester.class, "testContainsEntryWithIncomparableValue"); in getContainsEntryWithIncomparableValueMethod()
156 return Helpers.getMethod(MapEntrySetTester.class, "testSetValue"); in getSetValueMethod()
[all …]
/external/guava/android/guava-testlib/src/com/google/common/collect/testing/testers/
DMapEntrySetTester.java31 import com.google.common.collect.testing.Helpers;
68 assertFalse(getMap().entrySet().contains(Helpers.mapEntry(IncomparableType.INSTANCE, v0()))); in testContainsEntryWithIncomparableKey()
76 assertFalse(getMap().entrySet().contains(Helpers.mapEntry(k0(), IncomparableType.INSTANCE))); in testContainsEntryWithIncomparableValue()
84 assertFalse(getMap().entrySet().contains(Helpers.mapEntry(null, v0()))); in testContainsEntryWithNullKeyAbsent()
91 assertTrue(getMap().entrySet().contains(Helpers.mapEntry(null, getValueForNullKey()))); in testContainsEntryWithNullKeyPresent()
96 assertFalse(getMap().entrySet().contains(Helpers.mapEntry(k0(), null))); in testContainsEntryWithNullValueAbsent()
103 assertTrue(getMap().entrySet().contains(Helpers.mapEntry(getKeyForNullValue(), null))); in testContainsEntryWithNullValuePresent()
146 return Helpers.getMethod(MapEntrySetTester.class, "testContainsEntryWithIncomparableKey"); in getContainsEntryWithIncomparableKeyMethod()
151 return Helpers.getMethod(MapEntrySetTester.class, "testContainsEntryWithIncomparableValue"); in getContainsEntryWithIncomparableValueMethod()
156 return Helpers.getMethod(MapEntrySetTester.class, "testSetValue"); in getSetValueMethod()
[all …]

12345678910>>...15