Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for test_remove (0.11 sec)

  1. src/test/java/org/codelibs/fess/util/DocMapTest.java

            assertEquals("newValue", docMap.put("newKey", "updatedValue"));
            assertEquals("updatedValue", docMap.get("newKey"));
    
            assertNull(docMap.get("nonexistent"));
        }
    
        public void test_remove() {
            Map<String, Object> parentMap = new HashMap<>();
            DocMap docMap = new DocMap(parentMap);
    
            docMap.put("key1", "value1");
            docMap.put("key2", "value2");
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/collection/ArrayMapTest.java

         */
        @Test
        public void testRemove() throws Exception {
            assertThat(map.remove("1"), is("test"));
            assertThat(map.size(), is(2));
            assertThat(map.remove("dummy"), is(nullValue()));
            assertThat(map.remove(0), is(nullValue()));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testRemove2() throws Exception {
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 10.7K bytes
    - Viewed (0)
  3. 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());
        assertEquals("a", iterator.next());
        assertThrows(UnsupportedOperationException.class, () -> iterator.remove());
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/AbstractMultimapAsMapImplementsMapTest.java

       * of a call to {@code remove()}. Thus, the expectation doesn't hold that {@code map.remove(x)}
       * returns the same value which {@code map.get(x)} did immediately beforehand.
       */
      @Override
      public void testRemove() {
        Map<String, Collection<Integer>> map;
        try {
          map = makePopulatedMap();
        } catch (UnsupportedOperationException e) {
          return;
        }
        String keyToRemove = map.keySet().iterator().next();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 18 14:47:20 UTC 2025
    - 3K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/core/collection/EmptyIteratorTest.java

            assertThat(emptyIterator, is(notNullValue()));
        }
    
        /**
         * Test method for {@link org.codelibs.core.collection.EmptyIterator#remove()}
         * .
         */
        @Test
        public void testRemove() {
            exception.expect(ClUnsupportedOperationException.class);
            exception.expectMessage(is("remove"));
            final EmptyIterator<String> emptyIterator = new EmptyIterator<String>();
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/core/collection/ArrayIteratorTest.java

            assertThat(itr.hasNext(), is(true));
            itr.next();
            assertThat(itr.hasNext(), is(not(true)));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testRemove() throws Exception {
            exception.expect(ClUnsupportedOperationException.class);
            exception.expectMessage(is("remove"));
            final ArrayIterator<String> itr = new ArrayIterator<String>("1", "2");
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  7. 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() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  8. 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Jul 28 19:11:14 UTC 2025
    - 5.9K bytes
    - Viewed (0)
  9. 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  10. 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 5.8K bytes
    - Viewed (0)
Back to top