| org.apache.commons.collections.AbstractTestObject org.apache.commons.collections.bag.AbstractTestBag
All known Subclasses: org.apache.commons.collections.bag.TestTypedBag, org.apache.commons.collections.bag.TestTreeBag, org.apache.commons.collections.bag.AbstractTestSortedBag, org.apache.commons.collections.bag.TestHashBag, org.apache.commons.collections.bag.TestTransformedBag, org.apache.commons.collections.TestHashBag, org.apache.commons.collections.bag.TestPredicatedBag, org.apache.commons.collections.TestTreeBag,
AbstractTestBag | abstract public class AbstractTestBag extends AbstractTestObject (Code) | | Abstract test class for
org.apache.commons.collections.Bag Bag methods and contracts.
To use, simply extend this class, and implement
the
AbstractTestBag.makeBag method.
If your bag fails one of these tests by design,
you may still use this base set of cases. Simply override the
test case (method) your bag fails.
version: $Revision: 219131 $ $Date: 2005-07-15 00:11:12 +0100 (Fri, 15 Jul 2005) $ author: Chuck Burdick author: Stephen Colebourne |
AbstractTestBag | public AbstractTestBag(String testName)(Code) | | JUnit constructor.
Parameters: testName - the test class name |
makeBag | abstract public Bag makeBag()(Code) | | Return a new, empty bag to used for testing.
the bag to be tested |
makeObject | public Object makeObject()(Code) | | Implements the superclass method to return the Bag.
the bag to be tested |
testBagAdd | public void testBagAdd()(Code) | | |
testBagEqualsSelf | public void testBagEqualsSelf()(Code) | | |
testContains | public void testContains()(Code) | | |
testContainsAll | public void testContainsAll()(Code) | | |
testEmptyBagCompatibility | public void testEmptyBagCompatibility() throws IOException, ClassNotFoundException(Code) | | Compare the current serialized form of the Bag
against the canonical version in CVS.
|
testEquals | public void testEquals()(Code) | | |
testEqualsHashBag | public void testEqualsHashBag()(Code) | | |
testFullBagCompatibility | public void testFullBagCompatibility() throws IOException, ClassNotFoundException(Code) | | Compare the current serialized form of the Bag
against the canonical version in CVS.
|
testHashCode | public void testHashCode()(Code) | | |
testIterator | public void testIterator()(Code) | | |
testIteratorFail | public void testIteratorFail()(Code) | | |
testIteratorFailDoubleRemove | public void testIteratorFailDoubleRemove()(Code) | | |
testIteratorFailNoMore | public void testIteratorFailNoMore()(Code) | | |
testIteratorRemoveProtectsInvariants | public void testIteratorRemoveProtectsInvariants()(Code) | | |
testRemove | public void testRemove()(Code) | | |
testRemoveAll | public void testRemoveAll()(Code) | | |
testRetainAll | public void testRetainAll()(Code) | | |
testSize | public void testSize()(Code) | | |
testToArray | public void testToArray()(Code) | | |
testToArrayPopulate | public void testToArrayPopulate()(Code) | | |
Fields inherited from org.apache.commons.collections.AbstractTestObject | final public static int COLLECTIONS_MAJOR_VERSION(Code)(Java Doc)
|
|
|