Test case library for java.util.List implementations

collections, java, unit-testing

Solution

The Guava folks have written a collection testing library called `guava-testlib` because ... they are implementing lots of collections.

The best documentation I found at the moment is this third-party blog post, however. It is briefly mentioned in their ContributorSetUp Wiki page.

Problem

Possible Duplicate: Is there a testsuite for Java custom collections implementation? Is there a test case library available that I can use to ensure a custom implementation of `java.util.List` is done correctly? I can certainly write my one test cases, but given the nature of all of the `List` methods, it seems tricky to ensure that the tests are comprehensive. Similarly, it'd be great to have test cases for the entire set of Java collections interfaces.

Original source

Related problems