|
||||||||||
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.list.AbstractTestList
org.apache.commons.collections.list.AbstractTestList.BulkTestSubList
Nested Class Summary |
Nested classes inherited from class org.apache.commons.collections.list.AbstractTestList |
AbstractTestList.BulkTestSubList, AbstractTestList.TestListIterator |
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 | |
AbstractTestList.BulkTestSubList(AbstractTestList outer)
|
Method Summary | |
java.lang.Object[] |
getFullElements()
Returns an array of objects that are contained in a collection produced by AbstractTestList.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 AbstractTestList.makeCollection() and AbstractTestList.makeFullCollection()
support the add and addAll
operations. |
boolean |
isRemoveSupported()
Returns true if the collections produced by AbstractTestList.makeCollection() and AbstractTestList.makeFullCollection()
support the remove , removeAll ,
retainAll , clear and
iterator().remove() methods. |
boolean |
isSetSupported()
Returns true if the collections produced by AbstractTestList.makeCollection() and AbstractTestList.makeFullCollection()
support the set operation. |
boolean |
isTestSerialization()
Is serialization testing supported. |
java.util.List |
makeEmptyList()
Return a new, empty List to be used for testing. |
java.util.List |
makeFullList()
Return a new, full List to be used for testing. |
void |
resetEmpty()
Resets the AbstractTestCollection.collection and AbstractTestCollection.confirmed fields to empty
collections. |
void |
resetFull()
Resets the AbstractTestCollection.collection and AbstractTestCollection.confirmed fields to full
collections. |
void |
verify()
Verifies that the test list implementation matches the confirmed list implementation. |
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 AbstractTestList.BulkTestSubList(AbstractTestList outer)
Method Detail |
public java.lang.Object[] getFullElements()
AbstractTestCollection
AbstractTestCollection.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 AbstractTestCollection
public java.lang.Object[] getOtherElements()
AbstractTestCollection
AbstractTestCollection.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 AbstractTestCollection
public boolean isAddSupported()
AbstractTestCollection
AbstractTestCollection.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 AbstractTestCollection
public boolean isSetSupported()
AbstractTestList
AbstractTestList.makeCollection()
and AbstractTestList.makeFullCollection()
support the set operation.
Default implementation returns true. Override if your collection
class does not support set.
- Overrides:
isSetSupported
in class AbstractTestList
public boolean isRemoveSupported()
AbstractTestCollection
AbstractTestCollection.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 AbstractTestCollection
public java.util.List makeEmptyList()
AbstractTestList
AbstractTestList.BulkTestSubList
to be used for testing.
makeEmptyList
in class AbstractTestList
public java.util.List makeFullList()
AbstractTestList
AbstractTestList.BulkTestSubList
to be used for testing.
makeFullList
in class AbstractTestList
public void resetEmpty()
AbstractTestCollection
AbstractTestCollection.collection
and AbstractTestCollection.confirmed
fields to empty
collections. Invoke this method before performing a modification
test.
resetEmpty
in class AbstractTestCollection
public void resetFull()
AbstractTestCollection
AbstractTestCollection.collection
and AbstractTestCollection.confirmed
fields to full
collections. Invoke this method before performing a modification
test.
resetFull
in class AbstractTestCollection
public void verify()
AbstractTestList
verify
in class AbstractTestList
public boolean isTestSerialization()
AbstractTestObject
isTestSerialization
in class AbstractTestObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |