org.infinitest.toolkit
Class UnmodifiableMapTestSupport<K,V>

java.lang.Object
  extended by org.infinitest.toolkit.UnmodifiableMapTestSupport<K,V>
Type Parameters:
K - the type of the keys in the maps involved
V - the type of the values in the maps involved

public abstract class UnmodifiableMapTestSupport<K,V>
extends Object

Support structure for testing the unmodifiability of a map. This is useful for verifying that accessor methods that return maps do not allow direct adding or removing from the underlying map field.

Author:
Paul Holser

Constructor Summary
UnmodifiableMapTestSupport()
           
 
Method Summary
 void initializeHarness()
           
 void shouldPreventClear()
           
 void shouldPreventPut()
           
 void shouldPreventPutAll()
           
 void shouldPreventRemove()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnmodifiableMapTestSupport

public UnmodifiableMapTestSupport()
Method Detail

initializeHarness

public final void initializeHarness()

shouldPreventPut

public final void shouldPreventPut()

shouldPreventPutAll

public final void shouldPreventPutAll()

shouldPreventClear

public final void shouldPreventClear()

shouldPreventRemove

public final void shouldPreventRemove()


© Copyright 2009 Paul R. Holser, Jr. All rights reserved. pholser@alumni.rice.edu