Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Test case library for java.util.List implementations [duplicate]

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.

like image 809
Andy Avatar asked Oct 29 '12 13:10

Andy


1 Answers

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.

like image 63
Joachim Sauer Avatar answered Nov 18 '22 03:11

Joachim Sauer