- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 555 for nbsend (0.13 sec)
-
android/guava-testlib/src/com/google/common/collect/testing/testers/ConcurrentMapRemoveTester.java
} @MapFeature.Require(absent = SUPPORTS_REMOVE) @CollectionSize.Require(absent = ZERO) public void testRemove_unsupportedPresent() { try { getMap().remove(k0(), v0()); fail("Expected UnsupportedOperationException"); } catch (UnsupportedOperationException expected) { } expectUnchanged(); } @MapFeature.Require(absent = SUPPORTS_REMOVE)
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Feb 21 16:49:06 UTC 2024 - 3.8K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/ConcurrentMapRemoveTester.java
} @MapFeature.Require(absent = SUPPORTS_REMOVE) @CollectionSize.Require(absent = ZERO) public void testRemove_unsupportedPresent() { try { getMap().remove(k0(), v0()); fail("Expected UnsupportedOperationException"); } catch (UnsupportedOperationException expected) { } expectUnchanged(); } @MapFeature.Require(absent = SUPPORTS_REMOVE)
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Feb 21 16:49:06 UTC 2024 - 3.8K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/MapRemoveEntryTester.java
expectUnchanged(); } @MapFeature.Require(absent = SUPPORTS_REMOVE) @CollectionSize.Require(absent = ZERO) public void testRemove_unsupportedPresent() { try { getMap().remove(k0(), v0()); fail("Expected UnsupportedOperationException"); } catch (UnsupportedOperationException expected) { } expectUnchanged(); } @MapFeature.Require(absent = SUPPORTS_REMOVE)
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Jan 09 20:10:38 UTC 2018 - 3.7K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/MapMergeTester.java
public void testAbsent() { assertEquals( "Map.merge(absent, value, function) should return value", v3(), getMap() .merge( k3(), v3(), (oldV, newV) -> { throw new AssertionFailedError( "Should not call merge function if key was absent"); })); expectAdded(e3()); }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Feb 21 16:49:06 UTC 2024 - 6.5K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/MapComputeIfPresentTester.java
}); } catch (UnsupportedOperationException tolerated) { } expectUnchanged(); } @MapFeature.Require(absent = SUPPORTS_PUT) @CollectionSize.Require(absent = ZERO) public void testComputeIfPresent_unsupportedPresent() { try { getMap().computeIfPresent(k0(), (k, v) -> v3()); fail("Expected UnsupportedOperationException");
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Jan 09 20:10:38 UTC 2018 - 5.8K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/ListAddTester.java
@CollectionFeature.Require(SUPPORTS_ADD) @CollectionSize.Require(absent = ZERO) public void testAdd_supportedPresent() { assertTrue("add(present) should return true", getList().add(e0())); expectAdded(e0()); } @CollectionFeature.Require(absent = SUPPORTS_ADD) @CollectionSize.Require(absent = ZERO) /* * absent = ZERO isn't required, since unmodList.add() must
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Feb 21 16:49:06 UTC 2024 - 3.2K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/MapEqualsTester.java
} @CollectionSize.Require(absent = CollectionSize.ZERO) public void testEquals_otherMapWithDifferentEntries() { Map<K, V> other = newHashMap(getSampleEntries(getNumEntries() - 1)); other.put(k3(), v3()); assertFalse( "A Map should not equal another Map containing different entries.", getMap().equals(other)); } @CollectionSize.Require(absent = CollectionSize.ZERO)
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Jan 09 20:10:38 UTC 2018 - 4.8K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/MapRemoveTester.java
"remove(present) should decrease a map's size by one.", initialSize - 1, getMap().size()); expectMissing(entry(null, getValueForNullKey())); } @MapFeature.Require(absent = SUPPORTS_REMOVE) @CollectionSize.Require(absent = ZERO) public void testRemove_unsupported() { try { getMap().remove(k0()); fail("remove(present) should throw UnsupportedOperationException");
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Feb 20 17:00:05 UTC 2024 - 5.9K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/google/MultimapPutIterableTester.java
} @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_VALUES) public void testPutAllNullValueSingle_unsupported() { multimap().putAll(k1(), Lists.newArrayList((V) null)); expectUnchanged(); } // In principle, it would be nice to apply these two tests to keys with existing values, too. @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_VALUES)
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Jan 09 20:10:38 UTC 2018 - 7.6K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/CollectionRemoveTester.java
"remove(present) should decrease a collection's size by one.", initialSize - 1, collection.size()); expectMissing((E) null); } @CollectionFeature.Require(absent = SUPPORTS_REMOVE) @CollectionSize.Require(absent = ZERO) public void testRemove_unsupported() { try { collection.remove(e0()); fail("remove(present) should throw UnsupportedOperationException");
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Feb 20 17:00:05 UTC 2024 - 5.6K bytes - Viewed (0)