Class CollectionIteratorTester<E>

All Implemented Interfaces:
junit.framework.Test

public class CollectionIteratorTester<E> extends AbstractCollectionTester<E>
A generic JUnit test which tests iterator operations on a collection. Can't be invoked directly; please see CollectionTestSuiteBuilder.
  • Constructor Details

    • CollectionIteratorTester

      public CollectionIteratorTester()
  • Method Details

    • testIterator

      public void testIterator()
    • testIterationOrdering

      public void testIterationOrdering()
    • testIterator_nullElement

      public void testIterator_nullElement()
    • testIterator_removeAffectsBackingCollection

      public void testIterator_removeAffectsBackingCollection()
    • testIterator_knownOrderRemoveSupported

      public void testIterator_knownOrderRemoveSupported()
    • testIterator_knownOrderRemoveUnsupported

      public void testIterator_knownOrderRemoveUnsupported()
    • testIterator_unknownOrderRemoveSupported

      public void testIterator_unknownOrderRemoveSupported()
    • testIterator_unknownOrderRemoveUnsupported

      public void testIterator_unknownOrderRemoveUnsupported()
    • runIteratorTest

      private void runIteratorTest(Set<IteratorFeature> features, AbstractIteratorTester.KnownOrder knownOrder, Iterable<E> elements)
    • testIteratorNoSuchElementException

      public void testIteratorNoSuchElementException()