Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for testRemove3 (0.17 sec)

  1. 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 {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 10.7K bytes
    - Viewed (0)
  2. 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>();
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  3. 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));
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 8.3K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/core/collection/CaseInsensitiveMapTest.java

            assertThat(map.put("One", "11"), is("1"));
            assertThat(map.get("one"), is("11"));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testRemove() throws Exception {
            assertThat(map.remove("ONE"), is("1"));
            assertThat(map.size(), is(1));
            assertThat(map.remove("dummy"), is(nullValue()));
        }
    
        /**
         * @throws Exception
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 4K bytes
    - Viewed (0)
  5. 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");
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/core/collection/EnumerationIteratorTest.java

            assertThat(itr.next(), is("a"));
            assertThat(itr.hasNext(), is(not(true)));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testRemove() throws Exception {
            exception.expect(ClUnsupportedOperationException.class);
            exception.expectMessage(is("remove"));
            final Vector<String> vector = new Vector<String>();
            vector.add("a");
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 3.4K bytes
    - Viewed (0)
Back to top