Package org.soliscode.test.contract.collection


package org.soliscode.test.contract.collection
Support for testing the implementation of the Collection interface methods.
Since:
1.0
Author:
evanbergstrom
  • Interfaces
    Class
    Description
    AddAllContract<E,C extends Collection<E>>
    This interface tests if a collection class has implemented the addAll() method correctly.
    AddContract<E,C extends Collection<E>>
    This interface tests if a collection class has implemented the add method correctly.
    ClearContract<E,C extends Collection<E>>
    This interface tests if a collection class has implemented the clear() method correctly.
    Test suite for classes that implement the Collection interface.
    This interface tests if a collection class has implemented the containsAll() method correctly.
    This interface tests if a collection class has implemented the contains() method correctly.
    IsEmptyContract<E,C extends Collection<E>>
    This interface tests if a collection class has implemented the isEmpty method correctly.
    This interface tests if a collection class has implemented the removeAll method correctly.
    RemoveContract<E,C extends Collection<E>>
    This interface tests if a collection class has implemented the remove method correctly.
    This interface tests if a collection class has implemented the removeIf method correctly.
    This interface tests if a collection class has implemented the retainAll method correctly.
    SizeContract<E,C extends Collection<E>>
    This interface tests if a collection class has implemented the size() method correctly.
    StreamContract<E,C extends Collection<E>>
    This interface tests if a collection class has implemented the stream() method correctly and that the iterator that is returned satisfies the Stream contract.
    ToArrayContract<E,C extends Collection<E>>
    This interface tests if a collection class has implemented the toArray method correctly.