/external/guava/guava-testlib/src/com/google/common/collect/testing/google/ |
ListMultimapEqualsTester.java | 35 Helpers.mapEntry(sampleKeys().e0, sampleValues().e0), 36 Helpers.mapEntry(sampleKeys().e0, sampleValues().e1), 37 Helpers.mapEntry(sampleKeys().e0, sampleValues().e0)); 39 Helpers.mapEntry(sampleKeys().e0, sampleValues().e1), 40 Helpers.mapEntry(sampleKeys().e0, sampleValues().e0), 41 Helpers.mapEntry(sampleKeys().e0, sampleValues().e0));
|
SetMultimapEqualsTester.java | 36 Helpers.mapEntry(sampleKeys().e0, sampleValues().e0), 37 Helpers.mapEntry(sampleKeys().e0, sampleValues().e1), 38 Helpers.mapEntry(sampleKeys().e0, sampleValues().e4)); 40 Helpers.mapEntry(sampleKeys().e0, sampleValues().e1), 41 Helpers.mapEntry(sampleKeys().e0, sampleValues().e0), 42 Helpers.mapEntry(sampleKeys().e0, sampleValues().e4));
|
ListMultimapAsMapTester.java | 70 Helpers.mapEntry(sampleKeys().e0, sampleValues().e0), 71 Helpers.mapEntry(sampleKeys().e1, sampleValues().e0), 72 Helpers.mapEntry(sampleKeys().e0, sampleValues().e3)); 74 expected.put(sampleKeys().e0, Lists.newArrayList(sampleValues().e0, sampleValues().e3)); 75 expected.put(sampleKeys().e1, Lists.newArrayList(sampleValues().e0)); 84 Helpers.mapEntry(sampleKeys().e0, sampleValues().e0), 85 Helpers.mapEntry(sampleKeys().e1, sampleValues().e0), 86 Helpers.mapEntry(sampleKeys().e0, sampleValues().e3)); 89 sampleKeys().e0, 92 sampleKeys().e1, [all...] |
SetMultimapAsMapTester.java | 70 Helpers.mapEntry(sampleKeys().e0, sampleValues().e0), 71 Helpers.mapEntry(sampleKeys().e1, sampleValues().e0), 72 Helpers.mapEntry(sampleKeys().e0, sampleValues().e3)); 74 expected.put(sampleKeys().e0, Sets.newHashSet(sampleValues().e0, sampleValues().e3)); 75 expected.put(sampleKeys().e1, Sets.newHashSet(sampleValues().e0)); 84 Helpers.mapEntry(sampleKeys().e0, sampleValues().e0), 85 Helpers.mapEntry(sampleKeys().e1, sampleValues().e0), 86 Helpers.mapEntry(sampleKeys().e0, sampleValues().e3)); 89 sampleKeys().e0, 92 sampleKeys().e1, [all...] |
MultimapGetTester.java | 45 Collection<V> result = multimap().get(sampleKeys().e3); 52 Collection<V> result = multimap().get(sampleKeys().e0); 60 Helpers.mapEntry(sampleKeys().e0, sampleValues().e0), 61 Helpers.mapEntry(sampleKeys().e0, sampleValues().e1), 62 Helpers.mapEntry(sampleKeys().e0, sampleValues().e2)); 63 assertGet(sampleKeys().e0, 70 assertGet(sampleKeys().e4); 77 Helpers.mapEntry(sampleKeys().e0, sampleValues().e0), 78 Helpers.mapEntry(sampleKeys().e0, sampleValues().e3), 79 Helpers.mapEntry(sampleKeys().e0, sampleValues().e2)) [all...] |
MultimapKeysTester.java | 46 Helpers.mapEntry(sampleKeys().e0, sampleValues().e0), 47 Helpers.mapEntry(sampleKeys().e0, sampleValues().e1), 48 Helpers.mapEntry(sampleKeys().e1, sampleValues().e0)); 50 assertEquals(2, keys.count(sampleKeys().e0)); 51 assertEquals(1, keys.count(sampleKeys().e1)); 53 assertThat(keys).has().allOf(sampleKeys().e0, sampleKeys().e1); 55 Multisets.immutableEntry(sampleKeys().e0, 2), 56 Multisets.immutableEntry(sampleKeys().e1, 1)); 70 Helpers.mapEntry(sampleKeys().e1, sampleValues().e0)) [all...] |
MultimapAsMapGetTester.java | 47 Helpers.mapEntry(sampleKeys().e0, sampleValues().e0), 48 Helpers.mapEntry(sampleKeys().e0, sampleValues().e3), 49 Helpers.mapEntry(sampleKeys().e0, sampleValues().e2)); 50 Collection<V> result = multimap().asMap().get(sampleKeys().e0); 52 assertFalse(multimap().containsEntry(sampleKeys().e0, sampleValues().e0)); 59 Collection<V> result = multimap().asMap().get(sampleKeys().e0); 61 assertGet(sampleKeys().e0); 67 Collection<V> result = multimap().asMap().get(sampleKeys().e0); 69 assertGet(sampleKeys().e0); 76 Collection<V> result = multimap().asMap().get(sampleKeys().e0) [all...] |
MultimapPutIterableTester.java | 46 assertTrue(multimap().putAll(sampleKeys().e0, new Iterable<V>() { 52 assertGet(sampleKeys().e0, sampleValues().e0, sampleValues().e3, sampleValues().e4); 59 sampleKeys().e0, Lists.newArrayList(sampleValues().e3, sampleValues().e4))); 60 assertGet(sampleKeys().e0, sampleValues().e0, sampleValues().e3, sampleValues().e4); 65 assertTrue(multimap().putAll(sampleKeys().e3, new Iterable<V>() { 71 assertGet(sampleKeys().e3, sampleValues().e3, sampleValues().e4); 77 sampleKeys().e3, Lists.newArrayList(sampleValues().e3, sampleValues().e4))); 78 assertGet(sampleKeys().e3, sampleValues().e3, sampleValues().e4); 84 assertTrue(multimap().putAll(sampleKeys().e0, Lists.newArrayList(sampleValues().e3, null))); 85 assertGet(sampleKeys().e0, sampleValues().e0, sampleValues().e3, null) [all...] |
MultimapPutAllMultimapTester.java | 43 Helpers.mapEntry(sampleKeys().e3, sampleValues().e3))); 58 Helpers.mapEntry(sampleKeys().e0, sampleValues().e3), 59 Helpers.mapEntry(sampleKeys().e3, sampleValues().e3)); 61 assertTrue(multimap().containsEntry(sampleKeys().e0, sampleValues().e3)); 62 assertTrue(multimap().containsEntry(sampleKeys().e3, sampleValues().e3)); 68 Helpers.mapEntry(sampleKeys().e0, null)); 70 assertTrue(multimap().containsEntry(sampleKeys().e0, null)); 84 Helpers.mapEntry(sampleKeys().e0, null)); 106 Helpers.mapEntry(sampleKeys().e0, sampleValues().e3), 107 Helpers.mapEntry(sampleKeys().e3, sampleValues().e3)) [all...] |
MultimapContainsKeyTester.java | 38 assertTrue(multimap().containsKey(sampleKeys().e0)); 42 assertFalse(multimap().containsKey(sampleKeys().e3)); 52 for (K k : sampleKeys()) { 58 for (K k : sampleKeys()) { 64 for (K k : sampleKeys()) {
|
MultimapAsMapTester.java | 49 for (K key : sampleKeys()) { 89 assertThat(multimap().asMap().remove(sampleKeys().e0)).iteratesAs(sampleValues().e0); 90 assertGet(sampleKeys().e0); 98 Helpers.mapEntry(sampleKeys().e0, sampleValues().e0), 99 Helpers.mapEntry(sampleKeys().e0, sampleValues().e3)); 105 assertTrue(multimap().put(sampleKeys().e0, sampleValues().e4)); 114 Helpers.mapEntry(sampleKeys().e0, sampleValues().e0), 115 Helpers.mapEntry(sampleKeys().e0, sampleValues().e3)); 118 assertTrue(multimap().put(sampleKeys().e1, sampleValues().e4)); 126 Helpers.mapEntry(sampleKeys().e0, sampleValues().e0) [all...] |
MultimapKeySetTester.java | 59 int key0Count = multimap().get(sampleKeys().e0).size(); 60 assertEquals(key0Count > 0, multimap().keySet().remove(sampleKeys().e0)); 62 assertGet(sampleKeys().e0); 68 int key0Count = multimap().get(sampleKeys().e0).size(); 71 if (keyItr.next().equals(sampleKeys().e0)) { 76 assertGet(sampleKeys().e0);
|
MultimapRemoveAllTester.java | 43 assertThat(multimap().removeAll(sampleKeys().e3)).isEmpty(); 50 assertThat(multimap().removeAll(sampleKeys().e0)) 58 Collection<V> getResult = multimap().get(sampleKeys().e0); 60 multimap().removeAll(sampleKeys().e0); 70 Helpers.mapEntry(sampleKeys().e0, sampleValues().e0), 71 Helpers.mapEntry(sampleKeys().e0, sampleValues().e1), 72 Helpers.mapEntry(sampleKeys().e0, sampleValues().e2)); 74 assertThat(multimap().removeAll(sampleKeys().e0))
|
SortedSetMultimapGetTester.java | 33 multimap().get(sampleKeys().e0).comparator());
|
MultimapPutTester.java | 48 multimap().put(sampleKeys().e3, sampleValues().e3); 57 K key = sampleKeys().e3; 73 K key = sampleKeys().e0; 89 K key = sampleKeys().e0; 109 multimap().put(sampleKeys().e3, null); 111 assertGet(sampleKeys().e3, Lists.newArrayList((V) null)); // ImmutableList.of can't take null. 118 multimap().put(sampleKeys().e1, null); 139 Collection<V> collection = multimap().get(sampleKeys().e3); 141 multimap().put(sampleKeys().e3, sampleValues().e3); 149 assertFalse(entries.contains(Helpers.mapEntry(sampleKeys().e3, sampleValues().e3))) [all...] |
MultimapEntriesTester.java | 73 Helpers.mapEntry(sampleKeys().e0, null))); 80 Helpers.mapEntry(sampleKeys().e0, sampleValues().e0))); 81 expectMissing(Helpers.mapEntry(sampleKeys().e0, sampleValues().e0)); 83 assertFalse(multimap().containsEntry(sampleKeys().e0, sampleValues().e0)); 90 Collections.singleton(Helpers.mapEntry(sampleKeys().e0, sampleValues().e0)))); 91 expectMissing(Helpers.mapEntry(sampleKeys().e0, sampleValues().e0)); 93 assertFalse(multimap().containsEntry(sampleKeys().e0, sampleValues().e0)); 100 Collections.singleton(Helpers.mapEntry(sampleKeys().e0, sampleValues().e0))); 102 getSubjectGenerator().create(Helpers.mapEntry(sampleKeys().e0, sampleValues().e0)), 105 assertTrue(multimap().containsEntry(sampleKeys().e0, sampleValues().e0)) [all...] |
MultimapContainsEntryTester.java | 40 assertTrue(multimap().containsEntry(sampleKeys().e0, sampleValues().e0)); 44 assertFalse(multimap().containsEntry(sampleKeys().e3, sampleValues().e3)); 48 for (K k : sampleKeys()) { 85 multimap().containsEntry(sampleKeys().e3, null);
|
MultimapReplaceValuesTester.java | 50 K key = sampleKeys().e0; 70 K key = sampleKeys().e3; 81 K key = sampleKeys().e0; 93 K key = sampleKeys().e0; 126 K key = sampleKeys().e0; 140 multimap().replaceValues(sampleKeys().e0, values); 151 multimap().replaceValues(sampleKeys().e0, values);
|
MultimapSizeTester.java | 96 mapEntry(sampleKeys().e0, sampleValues().e0), 97 mapEntry(sampleKeys().e0, sampleValues().e1), 98 mapEntry(sampleKeys().e0, sampleValues().e2));
|
ListMultimapRemoveTester.java | 44 K k = sampleKeys().e0; 58 K k = sampleKeys().e0; 78 K k = sampleKeys().e0; 99 K k = sampleKeys().e0;
|
ListMultimapReplaceValuesTester.java | 42 for (K k : sampleKeys()) {
|
TestMultimapGenerator.java | 40 SampleElements<K> sampleKeys();
|
MultimapRemoveEntryTester.java | 48 assertFalse(multimap().remove(sampleKeys().e0, sampleValues().e1)); 55 assertTrue(multimap().remove(sampleKeys().e0, sampleValues().e0)); 57 assertFalse(multimap().containsEntry(sampleKeys().e0, sampleValues().e0)); 60 assertGet(sampleKeys().e0, ImmutableList.<V>of()); 93 assertFalse(multimap().remove(sampleKeys().e0, null)); 100 multimap().remove(sampleKeys().e0, null);
|
MultimapClearTester.java | 57 for (K key : sampleKeys()) { 101 for (K key : sampleKeys()) { 112 for (K key : sampleKeys()) {
|
ListMultimapPutAllTester.java | 42 for (K k : sampleKeys()) {
|