|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
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
public abstract class AbstractTestSortedSet
Abstract test class for 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.
Nested Class Summary | |
---|---|
class |
AbstractTestSortedSet.TestSortedSetSubSet
|
Field Summary |
---|
Fields inherited from class org.apache.commons.collections.collection.AbstractTestCollection |
---|
collection, confirmed |
Fields inherited from class org.apache.commons.collections.AbstractTestObject |
---|
COLLECTIONS_MAJOR_VERSION |
Constructor Summary | |
---|---|
AbstractTestSortedSet(java.lang.String name)
JUnit constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.apache.commons.collections.set.AbstractTestSet |
---|
getConfirmedSet, getSet, isEqualsCheckable, makeCollection, makeConfirmedFullCollection, makeEmptySet, makeFullCollection, makeFullSet, testSetEquals, testSetHashCode |
Methods inherited from class org.apache.commons.collections.BulkTest |
---|
clone, ignoredTests, makeSuite, toString |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown |
Methods inherited from class junit.framework.Assert |
---|
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, fail, fail, failNotEquals, failNotSame, failSame |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AbstractTestSortedSet(java.lang.String name)
name
- name for testMethod Detail |
---|
public 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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |