org.apache.commons.collections.set
public abstract class AbstractTestSortedSet extends AbstractTestSet
To use, subclass and override the {@link #makeEmptySet()} method. You may have to override other protected methods if your set is not modifiable, or if your set restricts what kinds of elements may be added; see {@link AbstractTestCollection} for more details.
Since: Commons Collections 3.0
Nested Class Summary | |
---|---|
class | AbstractTestSortedSet.TestSortedSetSubSet |
Constructor Summary | |
---|---|
AbstractTestSortedSet(String name)
JUnit constructor.
|
Method Summary | |
---|---|
BulkTest | bulkTestSortedSetHeadSet()
Bulk test {@link SortedSet#headSet(Object)}. |
BulkTest | bulkTestSortedSetSubSet()
Bulk test {@link SortedSet#subSet(Object, Object)}. |
BulkTest | bulkTestSortedSetTailSet()
Bulk test {@link SortedSet#tailSet(Object)}. |
SortedSet | getConfirmedSortedSet()
Return the {@link AbstractTestCollection#confirmed} fixture, but cast as a
SortedSet. |
Object[] | getFullNonNullElements()
Override to return comparable objects. |
Object[] | getOtherNonNullElements()
Override to return comparable objects. |
boolean | isNullSupported()
Overridden because SortedSets don't allow null elements (normally). |
Collection | makeConfirmedCollection()
Returns an empty {@link TreeSet} for use in modification testing.
|
void | verify()
Verification extension, will check the order of elements,
the sets should already be verified equal. |
Parameters: name name for test
Returns: a {@link AbstractTestSet} instance for testing a headset.
Returns: a {@link AbstractTestSet} instance for testing a subset.
Returns: a {@link AbstractTestSet} instance for testing a tailset.
Returns: false
Returns: a confirmed empty collection