Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testCycleNoSuchElementException (0.31 sec)

  1. android/guava-tests/test/com/google/common/collect/IteratorsTest.java

        assertEquals("a", cycle.next());
        assertTrue(cycle.hasNext());
        cycle.remove();
        assertTrue(iterable.elements.isEmpty());
        assertFalse(cycle.hasNext());
      }
    
      public void testCycleNoSuchElementException() {
        Iterable<String> iterable = Lists.newArrayList("a");
        Iterator<String> cycle = Iterators.cycle(iterable);
        assertTrue(cycle.hasNext());
        assertEquals("a", cycle.next());
        cycle.remove();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 03 13:01:51 UTC 2024
    - 55.7K bytes
    - Viewed (0)
Back to top