- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 119 for assertLen (0.11 sec)
-
guava-tests/test/com/google/common/reflect/SubtypeTester.java
/** Annotates a public method that declares subtype assertion. */ @RequiredModifiers(Modifier.PUBLIC) @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.METHOD) @interface TestSubtype { /** Suppresses the assertion on {@link TypeToken#getSubtype}. */ boolean suppressGetSubtype() default false; /** Suppresses the assertion on {@link TypeToken#getSupertype}. */
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Apr 19 19:24:36 UTC 2023 - 6.1K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/google/MultimapAsMapGetTester.java
Collection<V> result = multimap().asMap().get(k0()); assertTrue(result.remove(v0())); assertGet(k0()); } @CollectionSize.Require(absent = ZERO) @MapFeature.Require(SUPPORTS_REMOVE) public void testPropagatesClearToMultimap() { Collection<V> result = multimap().asMap().get(k0()); result.clear(); assertGet(k0()); assertEmpty(result); } @CollectionSize.Require(absent = ZERO)
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 5K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultimapAsMapGetTester.java
Collection<V> result = multimap().asMap().get(k0()); assertTrue(result.remove(v0())); assertGet(k0()); } @CollectionSize.Require(absent = ZERO) @MapFeature.Require(SUPPORTS_REMOVE) public void testPropagatesClearToMultimap() { Collection<V> result = multimap().asMap().get(k0()); result.clear(); assertGet(k0()); assertEmpty(result); } @CollectionSize.Require(absent = ZERO)
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 5K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveEntryTester.java
assertTrue(multimap().remove(k0(), v0())); assertFalse(multimap().containsEntry(k0(), v0())); expectMissing(e0()); assertEquals(getNumElements() - 1, multimap().size()); assertGet(k0(), ImmutableList.<V>of()); } @CollectionSize.Require(absent = ZERO) @MapFeature.Require({SUPPORTS_REMOVE, ALLOWS_NULL_KEYS}) public void testRemoveNullKeyPresent() { initMultimapWithNullKey();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 6.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/reflect/SubtypeTester.java
/** Annotates a public method that declares subtype assertion. */ @RequiredModifiers(Modifier.PUBLIC) @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.METHOD) @interface TestSubtype { /** Suppresses the assertion on {@link TypeToken#getSubtype}. */ boolean suppressGetSubtype() default false; /** Suppresses the assertion on {@link TypeToken#getSupertype}. */
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Apr 19 19:24:36 UTC 2023 - 6.1K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveEntryTester.java
assertTrue(multimap().remove(k0(), v0())); assertFalse(multimap().containsEntry(k0(), v0())); expectMissing(e0()); assertEquals(getNumElements() - 1, multimap().size()); assertGet(k0(), ImmutableList.<V>of()); } @CollectionSize.Require(absent = ZERO) @MapFeature.Require({SUPPORTS_REMOVE, ALLOWS_NULL_KEYS}) public void testRemoveNullKeyPresent() { initMultimapWithNullKey();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 6.6K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/google/ListMultimapReplaceValuesTester.java
public void testReplaceValuesPreservesOrder() { List<V> values = asList(v3(), v1(), v4()); for (K k : sampleKeys()) { resetContainer(); multimap().replaceValues(k, values); assertGet(k, values); } }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 1.7K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/SetMultimapPutAllTester.java
for (K k : sampleKeys()) { resetContainer(); Set<V> expectedValues = copyToSet(multimap().get(k)); multimap().putAll(k, valuesToPut); expectedValues.addAll(valuesToPut); assertGet(k, expectedValues); } }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 1.8K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/SetMultimapReplaceValuesTester.java
public void testReplaceValuesHandlesDuplicates() { List<V> values = asList(v0(), v1(), v0()); for (K k : sampleKeys()) { resetContainer(); multimap().replaceValues(k, values); assertGet(k, v0(), v1()); } }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 1.7K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/ListMultimapReplaceValuesTester.java
public void testReplaceValuesPreservesOrder() { List<V> values = asList(v3(), v1(), v4()); for (K k : sampleKeys()) { resetContainer(); multimap().replaceValues(k, values); assertGet(k, values); } }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 1.7K bytes - Viewed (0)