org.infinitest.toolkit
Class UnmodifiableListTestSupport<T>

java.lang.Object
  extended by org.infinitest.toolkit.UnmodifiableCollectionTestSupport<T>
      extended by 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

Constructor Summary
UnmodifiableListTestSupport()
           
 
Method Summary
 void shouldPreventAddAtIndex()
           
 void shouldPreventRemoveAtIndex()
           
 void shouldPreventRemoveViaListIterator()
           
 void shouldPreventSetAtIndex()
           
 void shouldPreventSetViaListIterator()
           
 
Methods inherited from class org.infinitest.toolkit.UnmodifiableCollectionTestSupport
initializeHarness, shouldPreventAdd, shouldPreventAddAll, shouldPreventClear, shouldPreventRemove, shouldPreventRemoveAll, shouldPreventRemoveViaIterator, shouldPreventRetainAll
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnmodifiableListTestSupport

public UnmodifiableListTestSupport()
Method Detail

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