Package org.soliscode.test.contract.iterable


package org.soliscode.test.contract.iterable
Support for testing the implementation of the Iterable interface methods.
Since:
1.0
Author:
evanbergstrom
  • Interfaces
    Class
    Description
    ForEachContract<E,I extends Iterable<E>>
    This interface tests if a collection class has implemented the forEach() method correctly based upon the specification provided in Iterable.forEach(Consumer).
    IterableContract<E,I extends Iterable<E>>
    This interface tests if a iterable class has implemented the Iterable methods correctly based upon the specification provided in Iterable.
    IteratorContract<E,I extends Iterable<E>>
    This interface tests if a iterable class has implemented the iterator() method correctly and that the iterator that is returned satisfies the Iterator contract.
    This interface tests if a collection class has implemented the spliterator() method correctly and that the spliterator that is returned satisfies the Spliterator contract.