// expected
}
}
public final void testIterateByteListIterator() {
ByteListIterator iter = makeUnmodifiableByteListIterator();
ByteListIterator expected = makeByteListIterator();
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() );
}