Save This Page
Home » commons-collections-3.2.1-src » org.apache.commons » collections » set » [javadoc | source]
org.apache.commons.collections.set
abstract public class: AbstractTestSortedSet [javadoc | source]
java.lang.Object
   junit.framework.TestCase
      org.apache.commons.collections.BulkTest
         org.apache.commons.collections.AbstractTestObject
            org.apache.commons.collections.collection.AbstractTestCollection
               org.apache.commons.collections.set.AbstractTestSet
                  org.apache.commons.collections.set.AbstractTestSortedSet

All Implemented Interfaces:
    Cloneable

Direct Known Subclasses:
    TestPredicatedSortedSet, TestSortedSetSubSet, TestUnmodifiableSortedSet, TestTypedSortedSet, TestSynchronizedSortedSet, TestTransformedSortedSet

Abstract test class for SortedSet methods and contracts.

To use, subclass and override the #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.

Nested Class Summary:
public class  AbstractTestSortedSet.TestSortedSetSubSet   
Fields inherited from org.apache.commons.collections.collection.AbstractTestCollection:
collection,  confirmed
Fields inherited from org.apache.commons.collections.AbstractTestObject:
COLLECTIONS_MAJOR_VERSION
Fields inherited from org.apache.commons.collections.BulkTest:
verboseName
Constructor:
 public AbstractTestSortedSet(String name) 
    JUnit constructor.
    Parameters:
    name - name for test
Method from org.apache.commons.collections.set.AbstractTestSortedSet Summary:
bulkTestSortedSetHeadSet,   bulkTestSortedSetSubSet,   bulkTestSortedSetTailSet,   getConfirmedSortedSet,   getFullNonNullElements,   getOtherNonNullElements,   isNullSupported,   makeConfirmedCollection,   verify
Methods from org.apache.commons.collections.set.AbstractTestSet:
getConfirmedSet,   getSet,   isEqualsCheckable,   makeCollection,   makeConfirmedCollection,   makeConfirmedFullCollection,   makeEmptySet,   makeFullCollection,   makeFullSet,   testSetEquals,   testSetHashCode,   verify
Methods from org.apache.commons.collections.collection.AbstractTestCollection:
areEqualElementsDistinguishable,   cloneMapEntry,   getFullElements,   getFullNonNullElements,   getFullNonNullStringElements,   getOtherElements,   getOtherNonNullElements,   getOtherNonNullStringElements,   isAddSupported,   isEqualsCheckable,   isFailFastSupported,   isNullSupported,   isRemoveSupported,   makeCollection,   makeConfirmedCollection,   makeConfirmedFullCollection,   makeFullCollection,   makeObject,   resetEmpty,   resetFull,   testCollectionAdd,   testCollectionAddAll,   testCollectionClear,   testCollectionContains,   testCollectionContainsAll,   testCollectionIsEmpty,   testCollectionIterator,   testCollectionIteratorFailFast,   testCollectionIteratorRemove,   testCollectionRemove,   testCollectionRemoveAll,   testCollectionRetainAll,   testCollectionSize,   testCollectionToArray,   testCollectionToArray2,   testCollectionToString,   testSerializeDeserializeThenCompare,   testUnsupportedAdd,   testUnsupportedRemove,   verify
Methods from org.apache.commons.collections.AbstractTestObject:
getCanonicalEmptyCollectionName,   getCanonicalFullCollectionName,   getCompatibilityVersion,   isEqualsCheckable,   isTestSerialization,   makeObject,   readExternalFormFromBytes,   readExternalFormFromDisk,   skipSerializedCanonicalTests,   supportsEmptyCollections,   supportsFullCollections,   testCanonicalEmptyCollectionExists,   testCanonicalFullCollectionExists,   testEqualsNull,   testObjectEqualsSelf,   testObjectHashCodeEqualsContract,   testObjectHashCodeEqualsSelfHashCode,   testSerializeDeserializeThenCompare,   testSimpleSerialization,   writeExternalFormToBytes,   writeExternalFormToDisk
Methods from org.apache.commons.collections.BulkTest:
clone,   ignoredSimpleTests,   makeSuite,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.commons.collections.set.AbstractTestSortedSet Detail:
 public BulkTest bulkTestSortedSetHeadSet() 
 public BulkTest bulkTestSortedSetSubSet() 
 public BulkTest bulkTestSortedSetTailSet() 
 public SortedSet getConfirmedSortedSet() 
 public Object[] getFullNonNullElements() 
    Override to return comparable objects.
 public Object[] getOtherNonNullElements() 
    Override to return comparable objects.
 public boolean isNullSupported() 
    Overridden because SortedSets don't allow null elements (normally).
 public Collection makeConfirmedCollection() 
    Returns an empty TreeSet for use in modification testing.
 public  void verify() 
    Verification extension, will check the order of elements, the sets should already be verified equal.