Since {@link Set} doesn't stipulate much new behavior that isn't alreadyfound in {@link Collection}, this class basically just adds tests for {@link Set#equals} and {@link Set#hashCode()} along with an updated{@link #verify()} that ensures elements do not appear more than once in theset.
To use, subclass and override the {@link #makeObject()}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 {@link AbstractCollectionTest} for more details. @since 3.0 @version $Id: AbstractSetTest.java 1477661 2013-04-30 14:27:35Z sebb $
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|