Abstract test class for Bag
methods and contracts.
Abstract test class for BidiMap
methods and contracts.
Abstract test class for java.util.Collection
methods and contracts.
Abstract test class for testing the Comparator interface.
Abstract test class for IterableMap
methods and contracts.
Abstract class for testing the Iterator interface.
Abstract test class for java.util.List
methods and contracts.
Abstract class for testing the ListIterator interface.
Abstract test class for java.util.Map
methods and contracts.
Abstract tests that can be extended to test any Map.Entry implementation.
Abstract class for testing the MapIterator interface.
Abstract test class for java.lang.Object
methods and contracts.
Abstract test class for OrderedBidiMap
methods and contracts.
Abstract test class for OrderedMap
methods and contracts.
Abstract class for testing the OrderedMapIterator interface.
Abstract test class for Set
methods and contracts.
Abstract test class for
SortedBag
methods and contracts.
Abstract test class for SortedBidiMap
methods and contracts.
Abstract test class for java.util.SortedMap
methods and contracts.
Abstract test class for SortedSet
methods and contracts.
The value to be used in the add and set tests.
The values to be used in the add and set tests.
Specifies whether equal elements in the collection are, in fact,
distinguishable with information not readily available.
Implement this method to return a list of sorted objects.
Override as DualHashBidiMap didn't exist until version 3.
Overrides superclass to set the compatability to version 2
as there were no Comparators in version 1.x.
Gets the compatability version, needed for package access.
Get the version of Collections that this object tries to
maintain serialization compatibility with.
Returns the AbstractTestList
field cast to a List
.
Implement this method to return the confirmed map which contains the same
data as the iterator.
Return the AbstractTestCollection.confirmed
fixture, but cast as a Set.
Return the AbstractTestCollection.confirmed
fixture, but cast as a
SortedSet.
Override to return comparable objects.
Returns the AbstractTestList
field cast to a List
.
Implement this method to return the map which contains the same data as the
iterator.
Returns a the set of values that can be used to replace the values
returned from
getSampleValues()
.
Returns an array of elements that are not contained in a
full collection.
Override to return comparable objects.
Returns the set of keys in the mappings used to test the map.
The only confirmed collection we have that is ordered is the sorted one.
Returns the set of values in the mappings used to test the map.
Return the AbstractTestCollection.collection
fixture, but cast as a Set.
Returns an array of test names to ignore.
Override to indicate to AbstractTestMap this is a BidiMap.
Returns true to indicate that the collection supports equals() comparisons.
List equals method is defined.
Returns true to indicate that the collection supports equals() comparisons.
Set equals method is defined.
Returns true to indicate that the collection supports fail fast iterators.
Whether the get operation on the map structurally modifies the map,
such as with LRUMap.
Returns true to indicate that the collection supports holding null.
Overridden because SortedSets don't allow null elements (normally).
Returns true if the maps produced by
makeEmptyMap()
and
makeFullMap()
support the
put
and
putAll
operations
changing existing mappings.
Returns whether the sub map views of SortedMap are serializable.
Is serialization testing supported.
Return a new, empty bag to used for testing.
Return a new, empty Collection
to be used for testing.
Implement this method to return the comparator to test.
Returns a confirmed empty collection.
Returns an empty ArrayList
.
Returns an empty Set for use in modification testing.
Returns an empty TreeSet
for use in modification testing.
Returns a confirmed full collection.
Returns a full ArrayList
.
Returns a full Set for use in modification testing.
Override to return a map other than HashMap as the confirmed map.
OrderedMap uses TreeMap as its known comparison.
SortedMap uses TreeMap as its known comparison.
Implement to create an empty BidiMap
.
Implement this method to return an iterator over an empty collection.
Implements the abstract superclass method to return the list iterator.
Implements the abstract superclass method to return the list iterator.
Return a new, empty List
to be used for testing.
Implement this method to return a list iterator over an empty collection.
Override to return the empty BidiMap.
Return a new, empty Map
to be used for testing.
Implement this method to return a map iterator over an empty map.
Override to create a full BidiMap
other than the default.
Returns a full collection to be used for testing.
Implement this method to return an iterator over a collection with elements.
Implements the abstract superclass method to return the list iterator.
Implements the abstract superclass method to return the list iterator.
Return a new, full List
to be used for testing.
Implement this method to return a list iterator over a collection with elements.
Return a new, populated map.
Implement this method to return a map iterator over a map with elements.
Makes a full set by first creating an empty set and then adding
all the elements returned by getFullElements()
.
Makes a Map.Entry of a type that's known to work correctly.
Makes a Map.Entry of a type that's known to work correctly.
Make an instance of Map.Entry with the default (null) key and value.
Make an instance of Map.Entry with the specified key and value.
Implements the superclass method to return the Bag.
Returns an empty collection for Object tests.
Implements the abstract superclass method to return the comparator.
Implements the abstract superclass method to return the full iterator.
Implements the superclass method to return the map to be tested.
Implement this method to return the object to test.
Returns a TestSuite
for testing all of the simple tests
and all the bulk tests defined by the given class.
Erases any leftover instance variables by setting them to null.
Test remove after add behaviour.
Tests serialization by comparing against a previously stored version in CVS.
Tests serialization by comparing against a previously stored version in CVS.
Tests Collection.add(Object)
.
Tests Collection.addAll(Collection)
.
Tests Collection.contains(Object)
.
Tests Collection.containsAll(Collection)
.
Tests Collection.isEmpty()
.
Tests the read-only functionality of Collection.iterator()
.
Tests that the collection's iterator is fail-fast.
Tests removals from Collection.iterator()
.
Tests Collection.remove(Object)
.
Tests Collection.removeAll(Collection)
.
Tests Collection.retainAll(Collection)
.
Tests Collection.toArray()
.
Tests Collection.toArray(Object[])
.
Tests toString
on a collection.
Compare the current serialized form of the Comparator
against the canonical version in CVS.
Nearly all Comparators should be Serializable.
Subclasses should provide tests for their constructors.
Compare the current serialized form of the Bag
against the canonical version in CVS.
Compare the current serialized form of the List
against the canonical version in CVS.
Test that the empty list iterator contract is correct.
Test sorting an empty list
Compare the current serialized form of the Map
against the canonical version in CVS.
Test that the empty list iterator contract is correct.
Test that the empty list iterator contract is correct.
Tests that the Map.entrySet()
collection is backed by
the underlying map for clear().
Compare the current serialized form of the Bag
against the canonical version in CVS.
Test normal iteration behaviour.
Compare the current serialized form of the List
against the canonical version in CVS.
Compare the current serialized form of the Map
against the canonical version in CVS.
Test that the full list iterator contract is correct.
Test that the full list iterator contract is correct.
Tests that the Map.keySet
collection is backed by
the underlying map for clear().
Tests that the Map.keySet
set is backed by
the underlying map by removing from the keySet set
and testing if the key was removed from the map.
Tests List.add(int,Object)
.
Tests bounds checking for List.add(int, Object)
on an
empty list.
Tests bounds checking for List.add(int, Object)
on a
full list.
Tests List.equals(Object)
.
Tests bounds checking for List.get(int)
on an
empty list.
Tests bounds checking for List.get(int)
on a
full list.
Tests the ListIterator.add(Object)
method of the list
iterator.
Tests the ListIterator.set(Object)
method of the list
iterator.
Tests the read-only bits of List.listIterator()
.
Tests the read-only bits of List.listIterator(int)
.
Tests remove on list iterator is correct.
Tests bounds checking for List.remove(int)
on an
empty list.
Tests bounds checking for List.remove(int)
on a
full list.
Test List.set(int,Object)
.
Tests bounds checking for List.set(int,Object)
on an
empty list.
Tests bounds checking for List.set(int,Object)
on a
full list.
Tests that a sublist raises a ConcurrentModificationException
if elements are added to the original list.
Tests that a sublist raises a ConcurrentModificationException
if elements are removed from the original list.
Test to ensure that makeEmptyMap and makeFull returns a new non-null
map with each invocation.
Tests Map.containsKey(Object) by verifying it returns false for all
sample keys on a map created using an empty map and returns true for
all sample keys returned on a full map.
Tests Map.containsValue(Object) by verifying it returns false for all
sample values on an empty map and returns true for all sample values on
a full map.
Test that the iterator order matches the keySet order.
Tests Map.put(Object, Object)
Tests Map.put(null, value)
Tests Map.put(null, value)
Test sorting a random list.
Test sorting a reversed list.
Test to ensure the test setup is working properly.
Subclasses should override this method to test the
desired behaviour of the class with respect to
handling of self-references.
Tests Set.equals(Object)
.
Sanity check method, makes sure that any Serializable
class can be serialized and de-serialized in memory,
using the handy makeObject() method
If
isAddSupported()
returns false, tests that add operations
raise
UnsupportedOperationException.
If isRemoveSupported() returns false, tests to see that remove
operations raise an UnsupportedOperationException.
If
isSetSupported()
returns false, tests that set operation
raises
UnsupportedOperationException.
Tests that the Map.values
collection is backed by
the underlying map for clear().
Tests that the Map.values
collection is backed by
the underlying map by removing from the values collection
and testing if the value was removed from the map.
Test navigation through the iterator.
Returns the display name of this BulkTest
.