JavaLib
 
Tester
 
Overview
Basic Types
User Types
Inexact Values
Sets
Iterable
Traversals
Maps
Random Choice
Range Check
Equivalence
ISame
Exceptions
Constructors
Methods
CheckFail
 
Sources
Downloads
 
TSRJ Home
TSRJ Local

Maps

The tester checks whether the objects to be compared are instances of a class that implements the Java Map interface. This includes the HashMap and TreeMap classes in the Java Collections Framework.

For these objects the tester uses the Map methods to determine whether the two maps are of the same size, validates that they define the same key sets, and then validates that for each key-value pair in the first map there exists a matching key-value pair in the second map.


Code sources

Here is the complete source code for this test suite.

You can also download the entire souce code as a zip file.

Complete test results are shown here.


last updated on Mon Apr 4 15:37:26 EDT 2011generated with DrRacket