Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for testRemove2 (0.06 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 {
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/UnmodifiableListIteratorTest.java

     *
     * @author Louis Wasserman
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  3. 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));
        }
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/UnmodifiableIteratorTest.java

     *
     * @author Jared Levy
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public class UnmodifiableIteratorTest extends TestCase {
    
      @SuppressWarnings("DoNotCall")
      public void testRemove() {
        final String[] array = {"a", "b", "c"};
    
        Iterator<String> iterator =
            new UnmodifiableIterator<String>() {
              int i;
    
              @Override
              public boolean hasNext() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/ForwardingConcurrentMapTest.java

        assertEquals(Integer.valueOf(1), map.get("foo"));
        assertNull(map.putIfAbsent("bar", 3));
        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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 2.4K bytes
    - Viewed (0)
  6. 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 Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  7. 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)
  8. 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 Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  9. 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");
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  10. 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
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 4K bytes
    - Viewed (0)
Back to top