- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 80 for expectUnchanged (0.1 sec)
-
android/guava-testlib/src/com/google/common/collect/testing/testers/SetAddAllTester.java
@CollectionSize.Require(absent = ZERO) public void testAddAll_supportedAllPresent() { assertFalse("add(allPresent) should return false", getSet().addAll(MinimalCollection.of(e0()))); expectUnchanged(); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Jul 24 20:12:35 UTC 2024 - 2.3K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/ListAddAllTester.java
@CollectionSize.Require(absent = ZERO) public void testAddAll_unsupportedAllPresent() { assertThrows( UnsupportedOperationException.class, () -> getList().addAll(MinimalCollection.of(e0()))); expectUnchanged(); } @CollectionFeature.Require(SUPPORTS_ADD) public void testAddAll_withDuplicates() { MinimalCollection<E> elementsToAdd = MinimalCollection.of(e0(), e1(), e0(), e1());
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 20:00:30 UTC 2024 - 2.5K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/MapEntrySetTester.java
public void testSetValueWithNullValuesAbsent() { for (Entry<K, V> entry : getMap().entrySet()) { assertThrows(NullPointerException.class, () -> entry.setValue(null)); break; } expectUnchanged(); } @J2ktIncompatible @GwtIncompatible // reflection public static Method getContainsEntryWithIncomparableKeyMethod() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 6.4K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/MapEntrySetTester.java
public void testSetValueWithNullValuesAbsent() { for (Entry<K, V> entry : getMap().entrySet()) { assertThrows(NullPointerException.class, () -> entry.setValue(null)); break; } expectUnchanged(); } @J2ktIncompatible @GwtIncompatible // reflection public static Method getContainsEntryWithIncomparableKeyMethod() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 6.4K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultisetElementSetTester.java
} @CollectionFeature.Require(SUPPORTS_REMOVE) public void testElementSetRemoveAbsent() { Set<E> elementSet = getMultiset().elementSet(); assertFalse(elementSet.remove(e3())); expectUnchanged(); } @CollectionFeature.Require(SUPPORTS_REMOVE) public void testElementSetClear() { getMultiset().elementSet().clear(); assertEmpty(getMultiset()); } /**
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 4.2K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/google/MultisetElementSetTester.java
} @CollectionFeature.Require(SUPPORTS_REMOVE) public void testElementSetRemoveAbsent() { Set<E> elementSet = getMultiset().elementSet(); assertFalse(elementSet.remove(e3())); expectUnchanged(); } @CollectionFeature.Require(SUPPORTS_REMOVE) public void testElementSetClear() { getMultiset().elementSet().clear(); assertEmpty(getMultiset()); } /**
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 4.2K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/MapMergeTester.java
assertEquals(v0(), oldV); assertEquals(v3(), newV); throw new SomeUncheckedException(); })); expectUnchanged(); } @MapFeature.Require(SUPPORTS_REMOVE) @CollectionSize.Require(absent = ZERO) public void testMergePresentToNull() { assertNull(
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 6.7K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutTester.java
} @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_VALUES) public void testPutNullValue_unsupported() { assertThrows(NullPointerException.class, () -> multimap().put(k1(), null)); expectUnchanged(); } @MapFeature.Require({SUPPORTS_PUT, ALLOWS_NULL_KEYS}) public void testPutNullKey() { int size = getNumElements(); multimap().put(null, v3()); assertGet(null, v3());
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 7.2K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/google/MultimapPutTester.java
} @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_VALUES) public void testPutNullValue_unsupported() { assertThrows(NullPointerException.class, () -> multimap().put(k1(), null)); expectUnchanged(); } @MapFeature.Require({SUPPORTS_PUT, ALLOWS_NULL_KEYS}) public void testPutNullKey() { int size = getNumElements(); multimap().put(null, v3()); assertGet(null, v3());
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 7.2K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/AbstractContainerTester.java
* examining whether the features include KNOWN_ORDER? */ protected void expectContents(Collection<E> expected) { assertEqualIgnoringOrder(expected, actualContents()); } protected void expectUnchanged() { expectContents(getOrderedElements()); } /** * Asserts that the collection under test contains exactly the elements it was initialized with
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 8.8K bytes - Viewed (0)