org.infinitest.toolkit
Class UnmodifiableListTestSupport<T>
java.lang.Object
org.infinitest.toolkit.UnmodifiableCollectionTestSupport<T>
org.infinitest.toolkit.UnmodifiableListTestSupport<T>
- Type Parameters:
T - the type of the items in the lists involved
public abstract class UnmodifiableListTestSupport<T>
- extends UnmodifiableCollectionTestSupport<T>
Support structure for testing the unmodifiability of a
list. This is useful for verifying that accessor methods that return lists do not allow direct adding or removing
from the underlying list field.
- Author:
- Paul Holser
UnmodifiableListTestSupport
public UnmodifiableListTestSupport()
shouldPreventAddAtIndex
public final void shouldPreventAddAtIndex()
shouldPreventRemoveAtIndex
public final void shouldPreventRemoveAtIndex()
shouldPreventSetAtIndex
public final void shouldPreventSetAtIndex()
shouldPreventRemoveViaListIterator
public final void shouldPreventRemoveViaListIterator()
shouldPreventSetViaListIterator
public final void shouldPreventSetViaListIterator()
© Copyright 2009 Paul R. Holser, Jr. All rights reserved. pholser@alumni.rice.edu