- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 22 for testRemove2 (0.07 sec)
-
android/guava-tests/test/com/google/common/collect/AbstractTableTest.java
assertEquals((Character) 'c', table.get("foo", 3)); assertEquals((Character) 'e', table.get("bar", 2)); assertEquals((Character) 'f', table.get("cat", 2)); assertSize(5); } public void testRemove() { table = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c'); if (supportsRemove()) { assertNull(table.remove("cat", 1)); assertNull(table.remove("bar", 3)); assertEquals(3, table.size());
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Oct 15 17:36:06 UTC 2024 - 5.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/SynchronizedMapTest.java
*/ public void testSize() { int unused = create().size(); } public void testIsEmpty() { boolean unused = create().isEmpty(); } public void testRemove() { create().remove(null); } public void testClear() { create().clear(); } public void testContainsKey() { boolean unused = create().containsKey(null); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Aug 06 17:23:04 UTC 2024 - 5.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/AbstractTableTest.java
assertEquals((Character) 'c', table.get("foo", 3)); assertEquals((Character) 'e', table.get("bar", 2)); assertEquals((Character) 'f', table.get("cat", 2)); assertSize(5); } public void testRemove() { table = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c'); if (supportsRemove()) { assertNull(table.remove("cat", 1)); assertNull(table.remove("bar", 3)); assertEquals(3, table.size());
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Oct 15 17:36:06 UTC 2024 - 5.8K bytes - Viewed (0) -
src/test/java/org/codelibs/core/collection/SLinkedListTest.java
assertThat(list.contains("2"), is(not(true))); assertThat(list.contains(null), is(not(true))); } /** * @throws Exception */ @Test public void testRemove() throws Exception { list.addLast(null); list.addLast("1"); list.addLast("2"); assertThat(list.remove("3"), is(not(true))); assertThat(list.remove("1"), is(true));
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 8.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/FilteredCollectionsTestUtil.java
assertTrue(EVEN.apply(toAdd)); } catch (IllegalArgumentException e) { assertFalse(EVEN.apply(toAdd)); } } } } public void testRemove() { for (List<Integer> contents : SAMPLE_INPUTS) { for (int toRemove = 0; toRemove < 10; toRemove++) { assertEquals( contents.contains(toRemove) && EVEN.apply(toRemove),
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 13K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/AtomicLongMapTest.java
assertEquals(0L, map.get(key)); assertTrue(map.containsKey(key)); assertTrue(map.replace(key, 0L, value)); assertEquals(value, map.get(key)); } public void testRemove() { AtomicLongMap<String> map = AtomicLongMap.create(); String key = "key"; assertEquals(0, map.size()); assertTrue(map.isEmpty()); assertEquals(0L, map.remove(key));
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Feb 13 14:28:25 UTC 2024 - 17.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/TableCollectionTest.java
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 35.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/TableCollectionTest.java
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 35.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java
assertEquals(3, (int) mmHeap.peek()); assertEquals(3, (int) mmHeap.poll()); assertNull(mmHeap.peekLast()); assertNull(mmHeap.peek()); assertNull(mmHeap.poll()); } public void testRemove() { MinMaxPriorityQueue<Integer> mmHeap = MinMaxPriorityQueue.create(); mmHeap.addAll(Lists.newArrayList(1, 2, 3, 4, 47, 1, 5, 3, 0)); assertTrue("Heap is not intact initially", mmHeap.isIntact());
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 35.9K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java
} else { assertThrows(UnsupportedOperationException.class, () -> map.putAll(mapToPut)); } assertEquals(initialSize, map.size()); assertInvariants(map); } public void testRemove() { Map<K, V> map; try { map = makePopulatedMap(); } catch (UnsupportedOperationException e) { return; } K keyToRemove = map.keySet().iterator().next();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 43.8K bytes - Viewed (0)