Interface Summary |
OneSizeTestContainerGenerator<T,E> |
The subject-generator interface accepted by Collection testers, for testing
a Collection at one particular CollectionSize . |
TestCollectionGenerator<E> |
Creates collections, containing sample elements, to be tested. |
TestContainerGenerator<T,E> |
To be implemented by test generators of things that can contain
elements. |
TestIteratorGenerator<E> |
Creates iterators to be tested. |
TestListGenerator<E> |
Creates sets, containing sample elements, to be tested. |
TestMapGenerator<K,V> |
Creates maps, containing sample elements, to be tested. |
TestQueueGenerator<E> |
Creates queues, containing sample elements, to be tested. |
TestSetGenerator<E> |
Creates sets, containing sample elements, to be tested. |
TestSubjectGenerator<T> |
To be implemented by test generators that can produce test subjects without
requiring any parameters. |
Class Summary |
AbstractCollectionTester<E> |
Base class for collection testers. |
AbstractCollectionTestSuiteBuilder<B extends AbstractCollectionTestSuiteBuilder<B,E>,E> |
Abstract superclass of all test-suite builders for collection interfaces. |
AbstractContainerTester<C,E> |
Base class for testers of classes (including Collection
and Map ) that contain elements. |
AbstractContainerTester.ArrayWithDuplicate<E> |
|
AbstractMapTester<K,V> |
Base class for map testers. |
AbstractTester<G> |
This abstract base class for testers allows the framework to inject needed
information after JUnit constructs the instances. |
BaseComparable |
Simple base class to verify that we handle generics correctly. |
CollectionTestSuiteBuilder<E> |
Concrete instantiation of AbstractCollectionTestSuiteBuilder for
testing collections that do not have a more specific tester like
ListTestSuiteBuilder or SetTestSuiteBuilder . |
ConcurrentMapInterfaceTest<K,V> |
Tests representing the contract of ConcurrentMap . |
DerivedComparable |
Simple derived class to verify that we handle generics correctly. |
DerivedIteratorTestSuiteBuilder<E> |
Given a test iterable generator, builds a test suite for the
iterable's iterator, by delegating to a IteratorTestSuiteBuilder . |
DerivedTestIteratorGenerator<E> |
Adapts a test iterable generator to give a TestIteratorGenerator. |
ExampleIteratorTester<E> |
A non-empty tester for Iterator . |
FeatureSpecificTestSuiteBuilder<B extends FeatureSpecificTestSuiteBuilder<B,G>,G> |
Creates, based on your criteria, a JUnit test suite that exhaustively tests
the object generated by a G, selecting appropriate tests by matching them
against specified features. |
Helpers |
|
IteratorTester<E> |
A utility for testing an Iterator implementation by comparing its behavior to
that of a "known good" reference implementation. |
IteratorTestSuiteBuilder<E> |
Creates, based on your criteria, a JUnit test suite that exhaustively tests
an Iterator implementation. |
ListIteratorTester<E> |
A utility similar to IteratorTester for testing a
ListIterator against a known good reference implementation. |
ListTestSuiteBuilder<E> |
Creates, based on your criteria, a JUnit test suite that exhaustively tests
a List implementation. |
MapInterfaceTest<K,V> |
Tests representing the contract of Map . |
MapTestSuiteBuilder<K,V> |
Creates, based on your criteria, a JUnit test suite that exhaustively tests
a Map implementation. |
MinimalCollection<E> |
A simplistic collection which implements only the bare minimum allowed by the
spec, and throws exceptions whenever it can. |
MinimalIterable<E> |
An implementation of Iterable which throws an exception on all
invocations of the MinimalIterable.iterator() method after the first, and whose
iterator is always unmodifiable. |
MinimalSet<E> |
A simplistic set which implements the bare minimum so that it can be used in
tests without relying on any specific Set implementations. |
NavigableMapTestSuiteBuilder<K,V> |
Creates, based on your criteria, a JUnit test suite that exhaustively tests
a NavigableMap implementation. |
NavigableSetTestSuiteBuilder<E> |
Creates, based on your criteria, a JUnit test suite that exhaustively tests
a NavigableSet implementation. |
OneSizeGenerator<T,E> |
Generator for collection of a particular size. |
PerCollectionSizeTestSuiteBuilder<B extends PerCollectionSizeTestSuiteBuilder<B,G,T,E>,G extends TestContainerGenerator<T,E>,T,E> |
This builder creates a composite test suite, containing a separate test suite
for each CollectionSize present in the features specified
by FeatureSpecificTestSuiteBuilder.withFeatures(Feature...) . |
QueueTestSuiteBuilder<E> |
Creates, based on your criteria, a JUnit test suite that exhaustively tests
a queue implementation. |
ReserializingTestCollectionGenerator<E> |
Reserializes the sets created by another test set generator. |
ReserializingTestSetGenerator<E> |
Reserializes the sets created by another test set generator. |
SafeTreeMap<K,V> |
A wrapper around TreeMap that aggressively checks to see if keys are
mutually comparable. |
SafeTreeSet<E> |
A wrapper around TreeSet that aggressively checks to see if elements
are mutually comparable. |
SampleElements<E> |
A container class for the five sample elements we need for testing. |
SampleElements.Colliders |
|
SampleElements.Enums |
|
SampleElements.Strings |
|
SampleElements.Unhashables |
|
SetTestSuiteBuilder<E> |
Creates, based on your criteria, a JUnit test suite that exhaustively tests
a Set implementation. |
SortedMapInterfaceTest<K,V> |
Tests representing the contract of SortedMap . |
TestCollidingSetGenerator |
A generator using sample elements whose hash codes all collide badly. |
TestEnumMapGenerator |
Implementation helper for TestMapGenerator for use with enum maps. |
TestEnumSetGenerator |
An abstract TestSetGenerator for generating sets containing enum values. |
TestMapEntrySetGenerator<K,V> |
Creates map entries using sample keys and sample values. |
TestsForListsInJavaUtil |
Generates a test suite covering the List implementations in the
java.util package. |
TestsForMapsInJavaUtil |
Generates a test suite covering the Map implementations in the
java.util package. |
TestsForQueuesInJavaUtil |
Generates a test suite covering the Queue implementations in the
java.util package. |
TestsForSetsInJavaUtil |
Generates a test suite covering the Set implementations in the
java.util package. |
TestStringCollectionGenerator |
String creation for testing arbitrary collections. |
TestStringListGenerator |
TODO: javadoc. |
TestStringMapGenerator |
Implementation helper for TestMapGenerator for use with maps of
strings. |
TestStringQueueGenerator |
Create queue of strings for tests. |
TestStringSetGenerator |
Create string sets for collection tests. |
TestStringSortedSetGenerator |
Create string sets for testing collections that are sorted by natural
ordering. |
TestUnhashableCollectionGenerator<T extends Collection<UnhashableObject>> |
Creates collections containing unhashable sample elements, to be tested. |
UnhashableObject |
An unhashable object to be used in testing as values in our collections. |