public final void testListIteratorNotModifiable() throws Exception { DoubleList list = makeUnmodifiableDoubleList(); assertListIteratorNotModifiable(list.listIterator()); assertListIteratorNotModifiable(list.subList(0, list.size() - 2).listIterator()); assertListIteratorNotModifiable(list.listIterator(1)); assertListIteratorNotModifiable(list.subList(0, list.size() - 2).listIterator(1)); }
public final void testSublistNotModifiable() throws Exception { DoubleList list = makeUnmodifiableDoubleList(); assertListNotModifiable(list.subList(0, list.size() - 2)); }