Class YieldingTestCase

  • All Implemented Interfaces:
    IteratorTestCase

    public class YieldingTestCase
    extends Object
    implements IteratorTestCase
    Test case that verifies that an iterator works correctly with the yielding api. Note that most iterators do nothing in terms of yielding in which case this merely tests that the iterator produces the correct output. If however the iterator does override the yielding api, then this ensures that it works correctly iff the iterator actually decides to yield. Nothing can force an iterator to yield without knowing something about the internals of the iterator being tested.
    • Constructor Detail

      • YieldingTestCase

        public YieldingTestCase()