// expected
}
}
public final void testIterateLongListIterator() {
LongListIterator iter = makeUnmodifiableLongListIterator();
LongListIterator expected = makeLongListIterator();
assertTrue(! iter.hasPrevious());
while( expected.hasNext() ) {
assertTrue(iter.hasNext());
assertEquals(expected.nextIndex(),iter.nextIndex());
assertEquals(expected.previousIndex(),iter.previousIndex());
assertEquals(expected.next(),iter.next());
assertTrue(iter.hasPrevious());
assertEquals(expected.nextIndex(),iter.nextIndex());
assertEquals(expected.previousIndex(),iter.previousIndex());
}
assertTrue(! iter.hasNext() );
while( expected.hasPrevious() ) {
assertTrue(iter.hasPrevious());
assertEquals(expected.nextIndex(),iter.nextIndex());
assertEquals(expected.previousIndex(),iter.previousIndex());
assertEquals(expected.previous(),iter.previous());
assertTrue(iter.hasNext());
assertEquals(expected.nextIndex(),iter.nextIndex());
assertEquals(expected.previousIndex(),iter.previousIndex());
}
assertTrue(! iter.hasPrevious() );
}