org.infinitest.toolkit
Class UnmodifiableMapTestSupport<K,V>
java.lang.Object
org.infinitest.toolkit.UnmodifiableMapTestSupport<K,V>
- Type Parameters:
K - the type of the keys in the maps involvedV - 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
UnmodifiableMapTestSupport
public UnmodifiableMapTestSupport()
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