Method Summary |
|
public BulkTest | bulkTestListIterator() |
public BulkTest | bulkTestSubList() Returns a
BulkTest for testing
List.subList(intint) . |
protected void | failFastAll(List list) Invokes all the methods on the given sublist to make sure they raise
a
java.util.ConcurrentModificationException ConcurrentModificationException . |
protected void | 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. |
public List | getConfirmedList() Returns the
AbstractTestList.confirmed field cast to a
List . |
public List | getList() Returns the
AbstractTestList.collection field cast to a
List . |
public boolean | isEqualsCheckable() List equals method is defined. |
public boolean | isSetSupported() Returns true if the collections produced by
AbstractTestList.makeCollection() and
AbstractTestList.makeFullCollection() support the set operation.
Default implementation returns true. |
final public Collection | makeCollection() Returns
AbstractTestList.makeEmptyList() . |
public Collection | makeConfirmedCollection() Returns an empty
ArrayList . |
public Collection | makeConfirmedFullCollection() Returns a full
ArrayList . |
abstract public List | makeEmptyList() Return a new, empty
List to be used for testing. |
final public Collection | makeFullCollection() Returns
AbstractTestList.makeFullList() . |
public List | makeFullList() Return a new, full
List to be used for testing. |
public void | testEmptyListCompatibility() Compare the current serialized form of the List
against the canonical version in CVS. |
public void | testEmptyListSerialization() |
public void | testFullListCompatibility() Compare the current serialized form of the List
against the canonical version in CVS. |
public void | testFullListSerialization() |
public void | testListAddByIndex() Tests
List.add(intObject) . |
public void | testListAddByIndexBoundsChecking() Tests bounds checking for
List.add(intObject) on an
empty list. |
public void | testListAddByIndexBoundsChecking2() Tests bounds checking for
List.add(intObject) on a
full list. |
public void | testListEquals() Tests
List.equals(Object) . |
public void | testListGetByIndex() Tests
List.get(int) . |
public void | testListGetByIndexBoundsChecking() Tests bounds checking for
List.get(int) on an
empty list. |
public void | testListGetByIndexBoundsChecking2() Tests bounds checking for
List.get(int) on a
full list. |
public void | testListHashCode() Tests
List.hashCode . |
public void | testListIndexOf() Tests
List.indexOf . |
public void | testListIteratorAdd() Tests the
ListIterator.add(Object) method of the list
iterator. |
public void | testListIteratorSet() Tests the
ListIterator.set(Object) method of the list
iterator. |
public void | testListLastIndexOf() Tests
List.lastIndexOf . |
public void | testListListIterator() Tests the read-only bits of
List.listIterator . |
public void | testListListIteratorByIndex() Tests the read-only bits of
List.listIterator(int) . |
public void | testListListIteratorNextRemoveNext() Tests remove on list iterator is correct. |
public void | testListListIteratorNextRemovePrevious() Tests remove on list iterator is correct. |
public void | testListListIteratorPreviousRemoveNext() Tests remove on list iterator is correct. |
public void | testListListIteratorPreviousRemovePrevious() Tests remove on list iterator is correct. |
public void | testListRemoveByIndex() Tests
List.remove(int) . |
public void | testListRemoveByIndexBoundsChecking() Tests bounds checking for
List.remove(int) on an
empty list. |
public void | testListRemoveByIndexBoundsChecking2() Tests bounds checking for
List.remove(int) on a
full list. |
public void | testListSetByIndex() Test
List.set(intObject) . |
public void | testListSetByIndexBoundsChecking() Tests bounds checking for
List.set(intObject) on an
empty list. |
public void | testListSetByIndexBoundsChecking2() Tests bounds checking for
List.set(intObject) on a
full list. |
public void | testListSubListFailFastOnAdd() Tests that a sublist raises a
java.util.ConcurrentModificationException ConcurrentModificationException if elements are added to the original list. |
public void | testListSubListFailFastOnRemove() Tests that a sublist raises a
java.util.ConcurrentModificationException ConcurrentModificationException if elements are removed from the original list. |
public void | testUnsupportedSet() If
AbstractTestList.isSetSupported() returns false, tests that set operation
raises UnsupportedOperationException. |
public void | verify() Verifies that the test list implementation matches the confirmed list
implementation. |