org.apache.commons.collections |
Author:EC
This packages code originated from Apache, so it seperate from gwt code. However, as gwt does not support all of Apache Collections, this package has been heavily modified, so replace it with a new version only if you wish to do all the modifications again
|
Java Source File Name | Type | Comment |
AbstractTestListIterator.java | Class | Abstract class for testing the ListIterator interface.
This class provides a framework for testing an implementation of
ListIterator. |
DefaultMapEntry.java | Class | A default implementation of
java.util.Map.Entry since: 1.0 author: James Strachan author: Michael A. |
LocalTestNode.java | Class | |
TestArrayList.java | Class | |
TestCollection.java | Class | Tests base
java.util.Collection methods and contracts.
You should create a concrete subclass of this class to test any custom
Collection implementation. |
TestComparator.java | Class | |
TestIterator.java | Class | |
TestList.java | Class | Tests base
java.util.List methods and contracts.
To use, simply extend this class, and implement
the
TestList.makeList method.
If your
List fails one of these tests by design,
you may still use this base set of cases. |
TestMap.java | Class | Tests base
java.util.Map methods and contracts.
The forces at work here are similar to those in
TestCollection .
If your class implements the full Map interface, including optional
operations, simply extend this class, and implement the
TestMap.makeEmptyMap() method.
On the other hand, if your map implemenation is wierd, you may have to
override one or more of the other protected methods. |
TestObject.java | Class | Tests base
java.lang.Object methods and contracts.
To use, simply extend this class, and implement
the
TestObject.makeObject() method.
If your
Object fails one of these tests by design,
you may still use this base set of cases. |
TestSet.java | Class | 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. |