Class ListIteratorTester<E>

java.lang.Object
com.google.common.collect.testing.AbstractIteratorTester<E,ListIterator<E>>
com.google.common.collect.testing.ListIteratorTester<E>

public abstract class ListIteratorTester<E> extends AbstractIteratorTester<E,ListIterator<E>>
A utility similar to IteratorTester for testing a ListIterator against a known good reference implementation. As with IteratorTester, a concrete subclass must provide target iterators on demand. It also requires three additional constructor parameters: elementsToInsert, the elements to be passed to set() and add() calls; features, the features supported by the iterator; and expectedElements, the elements the iterator should return in order.

The items in elementsToInsert will be repeated if steps is larger than the number of provided elements.