- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for WrongType (0.07 sec)
-
android/guava-testlib/src/com/google/common/collect/testing/google/MultisetCountTester.java
initCollectionWithNullElement(); assertEquals(1, getMultiset().count(null)); } public void testCount_wrongType() { assertEquals( "multiset.count(wrongType) didn't return 0", 0, getMultiset().count(WrongType.VALUE)); } /** * Returns {@link Method} instances for the read tests that assume multisets support duplicates so * that the test of {@code Multisets.forSet()} can suppress them. */
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 3.5K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionToArrayTester.java
assertThrows( ArrayStoreException.class, () -> { WrongType[] array = new WrongType[0]; collection.toArray(array); }); } @CollectionSize.Require(ZERO) public void testToArray_emptyArrayOfWrongTypeForEmptyCollection() { WrongType[] array = new WrongType[0]; assertSame( "toArray(sameSizeNotAssignableTo[]) should return the given array",
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 8.1K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/MapGetOrDefaultTester.java
getMap().getOrDefault(getKeyForNullValue(), v3())); } public void testGet_wrongType() { try { assertEquals( "getOrDefault(wrongType, default) should return default or throw", v3(), getMap().getOrDefault(WrongType.VALUE, v3())); } catch (ClassCastException tolerated) { } }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 31 14:51:04 UTC 2024 - 4.5K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/google/MultisetCountTester.java
initCollectionWithNullElement(); assertEquals(1, getMultiset().count(null)); } public void testCount_wrongType() { assertEquals( "multiset.count(wrongType) didn't return 0", 0, getMultiset().count(WrongType.VALUE)); } /** * Returns {@link Method} instances for the read tests that assume multisets support duplicates so * that the test of {@code Multisets.forSet()} can suppress them. */
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 3.5K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionRemoveAllTester.java
import com.google.common.annotations.GwtCompatible; import com.google.common.collect.testing.AbstractCollectionTester; import com.google.common.collect.testing.MinimalCollection; import com.google.common.collect.testing.WrongType; import com.google.common.collect.testing.features.CollectionFeature; import com.google.common.collect.testing.features.CollectionSize; import java.util.AbstractSet; import java.util.ConcurrentModificationException;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 7.6K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultisetRemoveTester.java
} @CollectionFeature.Require(SUPPORTS_REMOVE) public void testRemove_occurrences_wrongType() { assertEquals( "multiset.remove(wrongType, 1) didn't return 0", 0, getMultiset().remove(WrongType.VALUE, 1)); } @CollectionSize.Require(absent = ZERO) @CollectionFeature.Require({SUPPORTS_REMOVE, ALLOWS_NULL_VALUES}) public void testRemove_nullPresent() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 6.9K bytes - Viewed (0)