- Sort Score
- Result 10 results
- Languages All
Results 241 - 250 of 745 for Acquire (0.07 sec)
-
android/guava-testlib/src/com/google/common/collect/testing/testers/QueueOfferTester.java
@SuppressWarnings("JUnit4ClassUsedInJUnit3") public class QueueOfferTester<E> extends AbstractQueueTester<E> { @CollectionFeature.Require(SUPPORTS_ADD) public void testOffer_supportedNotPresent() { assertTrue("offer(notPresent) should return true", getQueue().offer(e3())); expectAdded(e3()); } @CollectionFeature.Require({SUPPORTS_ADD, ALLOWS_NULL_VALUES}) public void testOffer_nullSupported() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 20:00:30 UTC 2024 - 2.2K bytes - Viewed (0) -
guava-testlib/test/com/google/common/collect/testing/features/FeatureUtilTest.java
} public void testGetTesterAnnotations_class() { @Require @NotTesterAnnotation class Tester {} assertThat(getTesterAnnotations(Tester.class)) .containsExactly(Tester.class.getAnnotation(Require.class)); } public void testGetTesterAnnotations_method() throws Exception { class Tester { @Require @NotTesterAnnotation public void test() {} }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 05 22:05:05 UTC 2024 - 11.5K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/MapRemoveEntryTester.java
@SuppressWarnings("JUnit4ClassUsedInJUnit3") public class MapRemoveEntryTester<K, V> extends AbstractMapTester<K, V> { @MapFeature.Require(SUPPORTS_REMOVE) @CollectionSize.Require(absent = ZERO) public void testRemove_supportedPresent() { assertTrue(getMap().remove(k0(), v0())); expectMissing(e0()); } @MapFeature.Require(SUPPORTS_REMOVE) public void testRemove_supportedPresentKeyWrongValue() { assertFalse(getMap().remove(k0(), v3()));
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 20:00:30 UTC 2024 - 3.7K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/ListAddAtIndexTester.java
public class ListAddAtIndexTester<E> extends AbstractListTester<E> { @ListFeature.Require(SUPPORTS_ADD_WITH_INDEX) @CollectionSize.Require(absent = ZERO) public void testAddAtIndex_supportedPresent() { getList().add(0, e0()); expectAdded(0, e0()); } @ListFeature.Require(absent = SUPPORTS_ADD_WITH_INDEX) @CollectionSize.Require(absent = ZERO) /* * absent = ZERO isn't required, since unmodList.add() must
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 5.4K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/SortedSetNavigationTester.java
} } } @CollectionSize.Require(ZERO) public void testEmptySetFirst() { assertThrows(NoSuchElementException.class, () -> sortedSet.first()); } @CollectionSize.Require(ZERO) public void testEmptySetLast() { assertThrows(NoSuchElementException.class, () -> sortedSet.last()); } @CollectionSize.Require(ONE) public void testSingletonSetFirst() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 3.2K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/ConcurrentMapRemoveTester.java
protected ConcurrentMap<K, V> getMap() { return (ConcurrentMap<K, V>) super.getMap(); } @MapFeature.Require(SUPPORTS_REMOVE) @CollectionSize.Require(absent = ZERO) public void testRemove_supportedPresent() { assertTrue(getMap().remove(k0(), v0())); expectMissing(e0()); } @MapFeature.Require(SUPPORTS_REMOVE) public void testRemove_supportedPresentKeyWrongValue() { assertFalse(getMap().remove(k0(), v3()));
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 20:00:30 UTC 2024 - 3.9K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/ConcurrentMapRemoveTester.java
protected ConcurrentMap<K, V> getMap() { return (ConcurrentMap<K, V>) super.getMap(); } @MapFeature.Require(SUPPORTS_REMOVE) @CollectionSize.Require(absent = ZERO) public void testRemove_supportedPresent() { assertTrue(getMap().remove(k0(), v0())); expectMissing(e0()); } @MapFeature.Require(SUPPORTS_REMOVE) public void testRemove_supportedPresentKeyWrongValue() { assertFalse(getMap().remove(k0(), v3()));
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 20:00:30 UTC 2024 - 3.9K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/BiMapPutTester.java
@MapFeature.Require(SUPPORTS_PUT) @CollectionSize.Require(ZERO) public void testPutWithSameValueFails() { getMap().put(k0(), v0()); assertThrows(IllegalArgumentException.class, () -> getMap().put(k1(), v0())); // verify that the bimap is unchanged expectAdded(e0()); } @MapFeature.Require(SUPPORTS_PUT) @CollectionSize.Require(ZERO)
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 4.9K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/MapCreationTester.java
public class MapCreationTester<K, V> extends AbstractMapTester<K, V> { @MapFeature.Require(ALLOWS_NULL_KEYS) @CollectionSize.Require(absent = ZERO) public void testCreateWithNullKeySupported() { initMapWithNullKey(); expectContents(createArrayWithNullKey()); } @MapFeature.Require(absent = ALLOWS_NULL_KEYS) @CollectionSize.Require(absent = ZERO) public void testCreateWithNullKeyUnsupported() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 5.6K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultimapContainsKeyTester.java
assertEquals(multimap().containsKey(k), multimap().keySet().contains(k)); } } @MapFeature.Require(ALLOWS_NULL_KEYS) @CollectionSize.Require(absent = ZERO) public void testContainsKeyNullPresent() { initMultimapWithNullKey(); assertTrue(multimap().containsKey(null)); } @MapFeature.Require(ALLOWS_NULL_KEY_QUERIES) public void testContainsKeyNullAbsent() { assertFalse(multimap().containsKey(null));
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 19:10:20 UTC 2024 - 3K bytes - Viewed (0)