If your
List fails one of these tests by design,
you may still use this base set of cases. Simply override the
test case (method) your
List fails or override one of the
protected methods from AbstractTestCollection.
version: $Revision: 224666 $ $Date: 2005-07-25 00:01:40 +0100 (Mon, 25 Jul 2005) $ author: Rodney Waldhoff author: Paul Jack author: Stephen Colebourne author: Neil O'Toole
Inner Class :public static class BulkTestSubList extends AbstractTestList
failFastMethod(List list, Method m) Invokes the given method on the given sublist to make sure it raises
a
java.util.ConcurrentModificationException ConcurrentModificationException .
Unless the method happens to be the equals() method, in which case
the test is skipped.
Returns a
BulkTest for testing
List.subList(intint) .
The returned bulk test will run through every TestList
method, including another bulkTestSubList.
Sublists are tested until the size of the sublist is less than 10.
Each sublist is 6 elements smaller than its parent list.
(By default this means that two rounds of sublists will be tested).
The verify() method is overloaded to test that the original list is
modified when the sublist is.
Invokes the given method on the given sublist to make sure it raises
a
java.util.ConcurrentModificationException ConcurrentModificationException .
Unless the method happens to be the equals() method, in which case
the test is skipped. There seems to be a bug in
java.util.AbstractList.subList(int,int).equals(Object) -- it never
raises a ConcurrentModificationException.
Parameters: list - the sublist to test Parameters: m - the method to invoke