Code example for ListIterator

Methods: nextnextIndex

0
		long time1 = 123;
		Wrapper date = new DateWrapper(time1);
 
		addService(date);
 
		assertEquals(0, iter.nextIndex());
		assertEquals(new Long(time1), ((Wrapper) iter.next()).execute());
		addService(date);
		assertEquals(1, iter.nextIndex());
		assertEquals(new Long(time1), ((Wrapper) iter.next()).execute());
	} 
 
	public void testListIteratorWhileRemoving() { 
 
		long time1 = 123;
		Wrapper date = new DateWrapper(time1);
 
		addService(date);
		addService(date);