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, confirmed
COLLECTIONS_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, testSetHashCode
areEqualElementsDistinguishable, 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, testUnsupportedRemove
getCanonicalEmptyCollectionName, getCanonicalFullCollectionName, getCompatibilityVersion, isTestSerialization, readExternalFormFromBytes, readExternalFormFromDisk, skipSerializedCanonicalTests, supportsEmptyCollections, supportsFullCollections, testCanonicalEmptyCollectionExists, testCanonicalFullCollectionExists, testEqualsNull, testObjectEqualsSelf, testObjectHashCodeEqualsContract, testObjectHashCodeEqualsSelfHashCode, testSimpleSerialization, writeExternalFormToBytes, writeExternalFormToDisk
clone, ignoredTests, makeSuite, toString
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, setUp, tearDown
public AbstractTestSortedSet(java.lang.String name)
name
- name for testpublic void verify()
verify
in class AbstractTestSet
public boolean isNullSupported()
isNullSupported
in class AbstractTestCollection
public java.util.Collection makeConfirmedCollection()
TreeSet
for use in modification testing.makeConfirmedCollection
in class AbstractTestSet
public java.util.SortedSet getConfirmedSortedSet()
AbstractTestCollection#confirmed
fixture, but cast as a
SortedSet.public java.lang.Object[] getFullNonNullElements()
getFullNonNullElements
in class AbstractTestCollection
public java.lang.Object[] getOtherNonNullElements()
getOtherNonNullElements
in class AbstractTestCollection
public 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-1969 Apache Software Foundation. All Rights Reserved.