| java.lang.Object com.triactive.jdo.test.MapFieldTester
MapFieldTester | public class MapFieldTester implements InstanceCallbacks(Code) | | A test object for testing java.util.Map fields.
author: Mike Martin version: $Revision: 1.3 $ |
Constructor Summary | |
public | MapFieldTester() Constructs an empty map field tester object. |
MapFieldTester | public MapFieldTester()(Code) | | Constructs an empty map field tester object.
|
addPair | public void addPair(Person husband, Person wife)(Code) | | Adds the two Person objects to the test Map
fields. A test failure is reported if either of the objects are already
present in the maps.
Parameters: husband - A test Person object. Can contain anyarbitrary field values. Parameters: wife - A test Person object. Can contain anyarbitrary field values. Parameters: a - Used to report test assertion failures. |
assertMapsEqual | public void assertMapsEqual(List husbands, List wives)(Code) | | Compares the values in the given arrays of test Person
objects to the objects in the map fields. The map fields are validated
using a variety of techniques that exercise most of the Map
interface to assert that the map contents are correct.
Parameters: husbands - A set of husband objects that are expected to equal thehusband objects in the map fields. Parameters: wives - A set of wife objects that are expected to equal thewife objects in the map fields. Must be the same lengthas the husband array. Parameters: a - Used to report test assertion failures. |
hashCode | public int hashCode()(Code) | | |
jdoPostLoad | public void jdoPostLoad()(Code) | | |
jdoPreClear | public void jdoPreClear()(Code) | | |
jdoPreDelete | public void jdoPreDelete()(Code) | | |
jdoPreStore | public void jdoPreStore()(Code) | | |
removePair | public void removePair(Person husband, Person wife)(Code) | | Adds the two Person objects to the test Map
fields. A test failure is reported if either of the objects are already
present in the maps.
Parameters: husband - A test Person object. Can contain anyarbitrary field values. Parameters: wife - A test Person object. Can contain anyarbitrary field values. Parameters: a - Used to report test assertion failures. |
|
|