public abstract class AbstractTestSortedSet extends AbstractTestSet
SortedSet methods and contracts.
To use, subclass and override the AbstractTestSet.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 AbstractTestCollection for more details.
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractTestSortedSet.TestSortedSetSubSet |
collection, confirmedCOLLECTIONS_MAJOR_VERSION| Constructor and Description |
|---|
AbstractTestSortedSet(java.lang.String name)
JUnit constructor.
|
| Modifier and Type | Method and Description |
|---|---|
BulkTest |
bulkTestSortedSetHeadSet()
Bulk test
SortedSet.headSet(Object). |
BulkTest |
bulkTestSortedSetSubSet()
Bulk test
SortedSet.subSet(Object, Object). |
BulkTest |
bulkTestSortedSetTailSet()
Bulk test
SortedSet.tailSet(Object). |
java.util.SortedSet |
getConfirmedSortedSet()
Return the
AbstractTestCollection#confirmed fixture, but cast as a
SortedSet. |
java.lang.Object[] |
getFullNonNullElements()
Override to return comparable objects.
|
java.lang.Object[] |
getOtherNonNullElements()
Override to return comparable objects.
|
boolean |
isNullSupported()
Overridden because SortedSets don't allow null elements (normally).
|
java.util.Collection |
makeConfirmedCollection()
Returns an empty
TreeSet for use in modification testing. |
void |
verify()
Verification extension, will check the order of elements,
the sets should already be verified equal.
|
getConfirmedSet, getSet, isEqualsCheckable, makeCollection, makeConfirmedFullCollection, makeEmptySet, makeFullCollection, makeFullSet, testSetEquals, testSetHashCodeareEqualElementsDistinguishable, cloneMapEntry, getFullElements, getFullNonNullStringElements, getOtherElements, getOtherNonNullStringElements, isAddSupported, isFailFastSupported, isRemoveSupported, makeObject, resetEmpty, resetFull, testCollectionAdd, testCollectionAddAll, testCollectionClear, testCollectionContains, testCollectionContainsAll, testCollectionIsEmpty, testCollectionIterator, testCollectionIteratorFailFast, testCollectionIteratorRemove, testCollectionRemove, testCollectionRemoveAll, testCollectionRetainAll, testCollectionSize, testCollectionToArray, testCollectionToArray2, testCollectionToString, testSerializeDeserializeThenCompare, testUnsupportedAdd, testUnsupportedRemovegetCanonicalEmptyCollectionName, getCanonicalFullCollectionName, getCompatibilityVersion, isTestSerialization, readExternalFormFromBytes, readExternalFormFromDisk, skipSerializedCanonicalTests, supportsEmptyCollections, supportsFullCollections, testCanonicalEmptyCollectionExists, testCanonicalFullCollectionExists, testEqualsNull, testObjectEqualsSelf, testObjectHashCodeEqualsContract, testObjectHashCodeEqualsSelfHashCode, testSimpleSerialization, writeExternalFormToBytes, writeExternalFormToDiskclone, ignoredTests, makeSuite, toStringpublic AbstractTestSortedSet(java.lang.String name)
name - name for testpublic void verify()
verify in class AbstractTestSetpublic boolean isNullSupported()
isNullSupported in class AbstractTestCollectionpublic java.util.Collection makeConfirmedCollection()
TreeSet for use in modification testing.makeConfirmedCollection in class AbstractTestSetpublic java.util.SortedSet getConfirmedSortedSet()
AbstractTestCollection#confirmed fixture, but cast as a
SortedSet.public java.lang.Object[] getFullNonNullElements()
getFullNonNullElements in class AbstractTestCollectionpublic java.lang.Object[] getOtherNonNullElements()
getOtherNonNullElements in class AbstractTestCollectionpublic BulkTest bulkTestSortedSetSubSet()
SortedSet.subSet(Object, Object). This method runs through all of
the tests in AbstractTestSortedSet.
After modification operations, verify() is invoked to ensure
that the set and the other collection views are still valid.AbstractTestSet instance for testing a subset.public BulkTest bulkTestSortedSetHeadSet()
SortedSet.headSet(Object). This method runs through all of
the tests in AbstractTestSortedSet.
After modification operations, verify() is invoked to ensure
that the set and the other collection views are still valid.AbstractTestSet instance for testing a headset.public BulkTest bulkTestSortedSetTailSet()
SortedSet.tailSet(Object). This method runs through all of
the tests in AbstractTestSortedSet.
After modification operations, verify() is invoked to ensure
that the set and the other collection views are still valid.AbstractTestSet instance for testing a tailset.Copyright © 2001-2015 Apache Software Foundation. All Rights Reserved.