|
Keel 2.1RC2 | ||||||||||
| 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.TestObject
org.apache.commons.collections.TestCollection
org.apache.commons.collections.TestList
org.apache.commons.collections.TestList.BulkTestSubList
| Nested Class Summary |
| Nested classes inherited from class org.apache.commons.collections.TestList |
TestList.BulkTestSubList |
| Field Summary | |
private TestList |
outer |
| Fields inherited from class org.apache.commons.collections.TestCollection |
collection, confirmed |
| Fields inherited from class org.apache.commons.collections.TestObject |
COLLECTIONS_MAJOR_VERSION |
| Fields inherited from class org.apache.commons.collections.BulkTest |
verboseName |
| Fields inherited from class junit.framework.TestCase |
|
| Constructor Summary | |
(package private) |
TestList.BulkTestSubList(TestList outer) |
| Method Summary | |
protected java.lang.Object[] |
getFullElements()Returns an array of objects that are contained in a collection produced by TestList.makeFullCollection(). |
protected java.lang.Object[] |
getOtherElements()Returns an array of elements that are not contained in a full collection. |
protected boolean |
isAddSupported()Returns true if the collections produced by TestList.makeCollection() and TestList.makeFullCollection() support the add and addAll operations. |
protected boolean |
isRemoveSupported()Returns true if the collections produced by TestList.makeCollection() and TestList.makeFullCollection() support the remove, removeAll, retainAll, clear and iterator().remove() methods. |
protected java.util.List |
makeEmptyList()Return a new, empty List to be used for testing. |
protected java.util.List |
makeFullList()Return a new, full List to be used for testing. |
protected void |
resetEmpty()Resets the TestCollection.collection and TestCollection.confirmed fields to empty collections. |
protected void |
resetFull()Resets the TestCollection.collection and TestCollection.confirmed fields to full collections. |
protected void |
verify()Verifies that the test list implementation matches the confirmed list implementation. |
| Methods inherited from class org.apache.commons.collections.BulkTest |
clone, ignoredSimpleTests, makeSuite, toString |
| Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, name, run, run, runBare, runTest, setName, setUp, tearDown |
| Methods inherited from class junit.framework.Assert |
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private TestList outer
| Constructor Detail |
TestList.BulkTestSubList(TestList outer)
| Method Detail |
protected java.lang.Object[] getFullElements()
TestCollectionTestCollection.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 and with the null element. Override if you require specific testing elements. Note that if you override TestCollection.makeFullCollection(), you must override this method to reflect the contents of a full collection.
getFullElements in class TestCollectionprotected java.lang.Object[] getOtherElements()
TestCollectionTestCollection.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 TestCollectionprotected boolean isAddSupported()
TestCollectionTestCollection.makeCollection() and TestCollection.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 TestCollectionprotected boolean isRemoveSupported()
TestCollectionTestCollection.makeCollection() and TestCollection.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 TestCollectionprotected java.util.List makeEmptyList()
TestListTestList.BulkTestSubList to be used for testing.
makeEmptyList in class TestListprotected java.util.List makeFullList()
TestListTestList.BulkTestSubList to be used for testing.
makeFullList in class TestListprotected void resetEmpty()
TestCollectionTestCollection.collection and TestCollection.confirmed fields to empty collections. Invoke this method before performing a modification test.
resetEmpty in class TestCollectionprotected void resetFull()
TestCollectionTestCollection.collection and TestCollection.confirmed fields to full collections. Invoke this method before performing a modification test.
resetFull in class TestCollectionprotected void verify()
TestListverify in class TestList
|
Keel 2.1RC2 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||