Tests base
Set methods and contracts.
Since
Set doesn't stipulate much new behavior that isn't already
found in
Collection , this class basically just adds tests for
Set.equals and
Set.hashCode along with an updated
TestSet.verify() that ensures elements do not appear more than once in the
set.
To use, subclass and override the
TestSet.makeEmptySet() method. You may have to override other protected methods if your
set is not modifiable, or if your set restricts what kinds of
elements may be added; see
TestCollection for more details.
author: Paul Jack version: $Id: TestSet.java,v 1.2.2.1 2004/05/22 12:14:05 scolebourne Exp $ |