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
-
InterfacesClassDescriptionForEachContract<E,
I extends Iterable<E>> This interface tests if a collection class has implemented theforEach()
method correctly based upon the specification provided inIterable.forEach(Consumer)
.IterableContract<E,I extends Iterable<E>> This interface tests if a iterable class has implemented theIterable
methods correctly based upon the specification provided inIterable
.IteratorContract<E,I extends Iterable<E>> This interface tests if a iterable class has implemented theiterator()
method correctly and that the iterator that is returned satisfies theIterator
contract.SpliteratorContract<E,I extends Iterable<E>> This interface tests if a collection class has implemented the spliterator() method correctly and that the spliterator that is returned satisfies theSpliterator
contract.