void function ( ) { several = new MyLinkedList < Integer > ( ) ; ListIterator < Integer > loc0 = several . listIterator ( ) ; for ( int loc1 = 0 ; loc1 < 5 ; loc1 ++ ) { several . add ( loc1 ) ; } int loc2 = 0 ; while ( loc0 . hasNext ( ) ) { loc0 . next ( ) ; assertEquals ( "srini_string" , loc2 + 1 , loc0 . nextIndex ( ) ) ; loc2 ++ ; } }
test mylistiterator nextindex method concode_field_sep int DIM concode_elem_sep MyLinkedList<String> slist concode_elem_sep MyLinkedList<Integer> one concode_elem_sep MyLinkedList<Integer> several concode_elem_sep int FIBMAX concode_elem_sep MyLinkedList<Integer> empty concode_field_sep void testRemoveIteratorException concode_elem_sep void testSetIterator concode_elem_sep void testIteratorFibonacci concode_elem_sep void testRemoveLinkedList concode_elem_sep void testSetIteratorException concode_elem_sep void testSet concode_elem_sep void testHasPrevious concode_elem_sep void testNext concode_elem_sep void testAddLinkedList concode_elem_sep void testClearLinkedList concode_elem_sep void testAddListIterator concode_elem_sep void testPreviousException concode_elem_sep void testEmpty concode_elem_sep void testPrevious concode_elem_sep void testRemoveIterator concode_elem_sep void testIterator concode_elem_sep void testPreviousIndex concode_elem_sep void testRemoveLinkedListException concode_elem_sep void setUp concode_elem_sep void testListSize concode_elem_sep void testGetException concode_elem_sep void testHasNext concode_elem_sep void testGetHead concode_elem_sep void testNextException