- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 182 for assertGet (0.09 sec)
-
android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutIterableTester.java
} })); assertGet(k0(), v0(), v3(), v4()); } @CollectionSize.Require(absent = ZERO) @MapFeature.Require(SUPPORTS_PUT) public void testPutAllNonEmptyCollectionOnPresentKey() { assertTrue(multimap().putAll(k0(), Lists.newArrayList(v3(), v4()))); assertGet(k0(), v0(), v3(), v4()); } @MapFeature.Require(SUPPORTS_PUT)
Registered: 2024-11-01 12:43 - Last Modified: 2024-10-30 16:15 - 7.7K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultimapReplaceValuesTester.java
List<V> values = asList(v0(), null, v3()); multimap().replaceValues(k0(), values); assertGet(k0(), values); } @MapFeature.Require({SUPPORTS_PUT, SUPPORTS_REMOVE, ALLOWS_NULL_KEYS}) public void testReplaceValuesWithNullKey() { List<V> values = asList(v0(), v2(), v3()); multimap().replaceValues(null, values); assertGet(null, values); } @MapFeature.Require({SUPPORTS_PUT, SUPPORTS_REMOVE})
Registered: 2024-11-01 12:43 - Last Modified: 2024-10-30 16:15 - 5.1K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultimapKeySetTester.java
int key0Count = multimap().get(k0()).size(); assertEquals(key0Count > 0, multimap().keySet().remove(k0())); assertEquals(getNumElements() - key0Count, multimap().size()); assertGet(k0()); } @CollectionSize.Require(absent = ZERO) @CollectionFeature.Require(SUPPORTS_ITERATOR_REMOVE) public void testKeySetIteratorRemove() { int key0Count = multimap().get(k0()).size();
Registered: 2024-11-01 12:43 - Last Modified: 2024-07-24 20:12 - 3K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/AbstractListMultimapTester.java
extends AbstractMultimapTester<K, V, ListMultimap<K, V>> { @Override protected void assertGet(K key, V... values) { assertGet(key, asList(values)); } @Override protected void assertGet(K key, Collection<? extends V> values) { assertEqualInOrder(values, multimap().get(key)); if (!values.isEmpty()) {
Registered: 2024-11-01 12:43 - Last Modified: 2024-10-19 00:05 - 2.1K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/google/MultimapReplaceValuesTester.java
List<V> values = asList(v0(), null, v3()); multimap().replaceValues(k0(), values); assertGet(k0(), values); } @MapFeature.Require({SUPPORTS_PUT, SUPPORTS_REMOVE, ALLOWS_NULL_KEYS}) public void testReplaceValuesWithNullKey() { List<V> values = asList(v0(), v2(), v3()); multimap().replaceValues(null, values); assertGet(null, values); } @MapFeature.Require({SUPPORTS_PUT, SUPPORTS_REMOVE})
Registered: 2024-11-01 12:43 - Last Modified: 2024-10-30 16:15 - 5.1K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/ListMultimapPutTester.java
List<V> values = multimap().get(key); List<V> expectedValues = copyToList(values); assertTrue(multimap().put(key, value)); expectedValues.add(value); assertGet(key, expectedValues); assertEquals(value, values.get(values.size() - 1)); } } } @MapFeature.Require(SUPPORTS_PUT) @CollectionSize.Require(absent = ZERO)
Registered: 2024-11-01 12:43 - Last Modified: 2024-10-30 16:15 - 2.6K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutTester.java
int size = getNumElements(); assertGet(k3(), ImmutableList.<V>of()); assertTrue(multimap().put(k3(), v3())); assertGet(k3(), v3()); assertEquals(size + 1, multimap().size()); } @MapFeature.Require(SUPPORTS_PUT) @CollectionSize.Require(absent = ZERO) public void testPutPresent() { int size = getNumElements(); assertGet(k0(), v0());
Registered: 2024-11-01 12:43 - Last Modified: 2024-10-30 16:15 - 7.2K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/google/MultimapPutTester.java
int size = getNumElements(); assertGet(k3(), ImmutableList.<V>of()); assertTrue(multimap().put(k3(), v3())); assertGet(k3(), v3()); assertEquals(size + 1, multimap().size()); } @MapFeature.Require(SUPPORTS_PUT) @CollectionSize.Require(absent = ZERO) public void testPutPresent() { int size = getNumElements(); assertGet(k0(), v0());
Registered: 2024-11-01 12:43 - Last Modified: 2024-10-30 16:15 - 7.2K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/google/AbstractListMultimapTester.java
extends AbstractMultimapTester<K, V, ListMultimap<K, V>> { @Override protected void assertGet(K key, V... values) { assertGet(key, asList(values)); } @Override protected void assertGet(K key, Collection<? extends V> values) { assertEqualInOrder(values, multimap().get(key)); if (!values.isEmpty()) {
Registered: 2024-11-01 12:43 - Last Modified: 2024-10-19 00:05 - 2.1K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/google/ListMultimapPutTester.java
List<V> values = multimap().get(key); List<V> expectedValues = copyToList(values); assertTrue(multimap().put(key, value)); expectedValues.add(value); assertGet(key, expectedValues); assertEquals(value, values.get(values.size() - 1)); } } } @MapFeature.Require(SUPPORTS_PUT) @CollectionSize.Require(absent = ZERO)
Registered: 2024-11-01 12:43 - Last Modified: 2024-10-30 16:15 - 2.6K bytes - Viewed (0)