Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for testRemove4 (0.25 sec)

  1. android/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"));
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  2. 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();
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 6K bytes
    - Viewed (0)
  3. 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();
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 6K bytes
    - Viewed (0)
  4. android/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());
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 36.1K bytes
    - Viewed (0)
Back to top