- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 11 for testRemove2 (0.06 seconds)
-
android/guava-tests/test/com/google/common/collect/AbstractImmutableTableTest.java
assertThrows( UnsupportedOperationException.class, () -> testInstance.putAll(ImmutableTable.of('a', 1, "blah"))); } } public final void testRemove() { for (Table<Character, Integer, String> testInstance : getTestInstances()) { assertThrows(UnsupportedOperationException.class, () -> testInstance.remove('a', 1)); } }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 2.5K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/UnmodifiableListIteratorTest.java
/** * Tests for UnmodifiableListIterator. * * @author Louis Wasserman */ @GwtCompatible @NullMarked public class UnmodifiableListIteratorTest extends TestCase { @SuppressWarnings("DoNotCall") public void testRemove() { Iterator<String> iterator = create(); assertTrue(iterator.hasNext()); assertThat(iterator.next()).isEqualTo("a"); assertThrows(UnsupportedOperationException.class, () -> iterator.remove()); }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 3K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/UnmodifiableListIteratorTest.java
/** * Tests for UnmodifiableListIterator. * * @author Louis Wasserman */ @GwtCompatible @NullMarked public class UnmodifiableListIteratorTest extends TestCase { @SuppressWarnings("DoNotCall") public void testRemove() { Iterator<String> iterator = create(); assertTrue(iterator.hasNext()); assertThat(iterator.next()).isEqualTo("a"); assertThrows(UnsupportedOperationException.class, () -> iterator.remove()); }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 3K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/ForwardingConcurrentMapTest.java
assertEquals(Integer.valueOf(1), map.get("foo")); assertThat(map.putIfAbsent("bar", 3)).isNull(); assertEquals(Integer.valueOf(3), map.get("bar")); } public void testRemove() { TestMap map = new TestMap(); map.put("foo", 1); assertFalse(map.remove("foo", 2)); assertFalse(map.remove("bar", 1)); assertEquals(Integer.valueOf(1), map.get("foo"));
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Oct 28 16:03:47 GMT 2025 - 2.5K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/UnmodifiableIteratorTest.java
/** * Tests for {@link UnmodifiableIterator}. * * @author Jared Levy */ @GwtCompatible @NullMarked public class UnmodifiableIteratorTest extends TestCase { @SuppressWarnings("DoNotCall") public void testRemove() { String[] array = {"a", "b", "c"}; Iterator<String> iterator = new UnmodifiableIterator<String>() { int i; @Override public boolean hasNext() {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 1.8K bytes - Click Count (0) -
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); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 6K bytes - Click Count (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()) { assertThat(table.remove("cat", 1)).isNull(); assertThat(table.remove("bar", 3)).isNull();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Oct 28 16:03:47 GMT 2025 - 6K bytes - Click Count (0) -
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()) { assertThat(table.remove("cat", 1)).isNull(); assertThat(table.remove("bar", 3)).isNull();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Oct 28 16:03:47 GMT 2025 - 6K bytes - Click Count (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); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 6K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java
assertEquals(3, (int) mmHeap.poll()); assertThat(mmHeap.peekLast()).isNull(); assertThat(mmHeap.peek()).isNull(); assertThat(mmHeap.poll()).isNull(); } 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());
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 13:11:08 GMT 2026 - 36.2K bytes - Click Count (0)