public class AbstractTestSortedSet.TestSortedSetSubSet extends AbstractTestSortedSet
AbstractTestSortedSet.TestSortedSetSubSetcollection, confirmedCOLLECTIONS_MAJOR_VERSION| Constructor and Description |
|---|
AbstractTestSortedSet.TestSortedSetSubSet(int bound,
boolean head) |
AbstractTestSortedSet.TestSortedSetSubSet(int lobound,
int hibound) |
| 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.lang.Object[] |
getFullElements()
Returns an array of objects that are contained in a collection
produced by
AbstractTestCollection.makeFullCollection(). |
java.lang.Object[] |
getOtherElements()
Returns an array of elements that are not contained in a
full collection.
|
boolean |
isAddSupported()
Returns true if the collections produced by
AbstractTestCollection.makeCollection() and AbstractTestCollection.makeFullCollection()
support the add and addAll
operations. |
boolean |
isFailFastSupported()
Returns true to indicate that the collection supports fail fast iterators.
|
boolean |
isNullSupported()
Overridden because SortedSets don't allow null elements (normally).
|
boolean |
isRemoveSupported()
Returns true if the collections produced by
AbstractTestCollection.makeCollection() and AbstractTestCollection.makeFullCollection()
support the remove, removeAll,
retainAll, clear and
iterator().remove() methods. |
boolean |
isTestSerialization()
Is serialization testing supported.
|
java.util.Set |
makeEmptySet()
Makes an empty set.
|
java.util.Set |
makeFullSet()
Makes a full set by first creating an empty set and then adding
all the elements returned by
AbstractTestCollection.getFullElements(). |
getConfirmedSortedSet, getFullNonNullElements, getOtherNonNullElements, makeConfirmedCollection, verifygetConfirmedSet, getSet, isEqualsCheckable, makeCollection, makeConfirmedFullCollection, makeFullCollection, testSetEquals, testSetHashCodeareEqualElementsDistinguishable, cloneMapEntry, getFullNonNullStringElements, getOtherNonNullStringElements, makeObject, resetEmpty, resetFull, testCollectionAdd, testCollectionAddAll, testCollectionClear, testCollectionContains, testCollectionContainsAll, testCollectionIsEmpty, testCollectionIterator, testCollectionIteratorFailFast, testCollectionIteratorRemove, testCollectionRemove, testCollectionRemoveAll, testCollectionRetainAll, testCollectionSize, testCollectionToArray, testCollectionToArray2, testCollectionToString, testSerializeDeserializeThenCompare, testUnsupportedAdd, testUnsupportedRemovegetCanonicalEmptyCollectionName, getCanonicalFullCollectionName, getCompatibilityVersion, readExternalFormFromBytes, readExternalFormFromDisk, skipSerializedCanonicalTests, supportsEmptyCollections, supportsFullCollections, testCanonicalEmptyCollectionExists, testCanonicalFullCollectionExists, testEqualsNull, testObjectEqualsSelf, testObjectHashCodeEqualsContract, testObjectHashCodeEqualsSelfHashCode, testSimpleSerialization, writeExternalFormToBytes, writeExternalFormToDiskclone, ignoredTests, makeSuite, toStringpublic AbstractTestSortedSet.TestSortedSetSubSet(int bound,
boolean head)
public AbstractTestSortedSet.TestSortedSetSubSet(int lobound,
int hibound)
public boolean isNullSupported()
AbstractTestSortedSetisNullSupported in class AbstractTestSortedSetpublic boolean isAddSupported()
AbstractTestCollectionAbstractTestCollection.makeCollection() and AbstractTestCollection.makeFullCollection()
support the add and addAll
operations.Default implementation returns true. Override if your collection class does not support add or addAll.
isAddSupported in class AbstractTestCollectionpublic boolean isRemoveSupported()
AbstractTestCollectionAbstractTestCollection.makeCollection() and AbstractTestCollection.makeFullCollection()
support the remove, removeAll,
retainAll, clear and
iterator().remove() methods.
Default implementation returns true. Override if your collection
class does not support removal operations.isRemoveSupported in class AbstractTestCollectionpublic boolean isFailFastSupported()
AbstractTestCollectionisFailFastSupported in class AbstractTestCollectionpublic java.lang.Object[] getFullElements()
AbstractTestCollectionAbstractTestCollection.makeFullCollection(). Every element in the
returned array must be an element in a full collection.
The default implementation returns a heterogenous array of
objects with some duplicates. null is added if allowed.
Override if you require specific testing elements. Note that if you
override AbstractTestCollection.makeFullCollection(), you must override
this method to reflect the contents of a full collection.
getFullElements in class AbstractTestCollectionpublic java.lang.Object[] getOtherElements()
AbstractTestCollectionAbstractTestCollection.makeFullCollection().
The default implementation returns a heterogenous array of elements
without null. Note that some of the tests add these elements
to an empty or full collection, so if your collection restricts
certain kinds of elements, you should override this method.getOtherElements in class AbstractTestCollectionpublic java.util.Set makeEmptySet()
AbstractTestSetmakeEmptySet in class AbstractTestSetpublic java.util.Set makeFullSet()
AbstractTestSetAbstractTestCollection.getFullElements().
Override if your set does not support the add operation.makeFullSet in class AbstractTestSetpublic boolean isTestSerialization()
AbstractTestObjectisTestSerialization in class AbstractTestObjectpublic BulkTest bulkTestSortedSetSubSet()
AbstractTestSortedSetSortedSet.subSet(Object, Object). This method runs through all of
the tests in AbstractTestSortedSet.
After modification operations, AbstractTestSortedSet.verify() is invoked to ensure
that the set and the other collection views are still valid.bulkTestSortedSetSubSet in class AbstractTestSortedSetAbstractTestSet instance for testing a subset.public BulkTest bulkTestSortedSetHeadSet()
AbstractTestSortedSetSortedSet.headSet(Object). This method runs through all of
the tests in AbstractTestSortedSet.
After modification operations, AbstractTestSortedSet.verify() is invoked to ensure
that the set and the other collection views are still valid.bulkTestSortedSetHeadSet in class AbstractTestSortedSetAbstractTestSet instance for testing a headset.public BulkTest bulkTestSortedSetTailSet()
AbstractTestSortedSetSortedSet.tailSet(Object). This method runs through all of
the tests in AbstractTestSortedSet.
After modification operations, AbstractTestSortedSet.verify() is invoked to ensure
that the set and the other collection views are still valid.bulkTestSortedSetTailSet in class AbstractTestSortedSetAbstractTestSet instance for testing a tailset.Copyright © 2001-2015 Apache Software Foundation. All Rights Reserved.