Re: how to test hashtable?
Posted By:
Stephen_Smith
Posted On:
Monday, July 25, 2005 07:11 AM
You can perform a number of different assertions on a Map implementation such as Hashtable. Simply work your way through the Map API and implement assertions where necessary, e.g. assertFalse(myHashtable.isEmpty()). You can also obtain an Iterator on a Hashtable, and then check individual keys and values.