The type-specific collections library comes with a full set of JUnit test programs. These are found in the tests directory tree under the src directory, alongside the corresponding com directory tree.

If you build your own type-specific collections based on the library code it's very easy to copy an existing test case and modify that for the new type. The test cases generally use a pair of methods for handling much of the data generation and validation work, so modifying these methods takes care of most of the type-specific operation of the test.

These methods are type gen(int), which generates a data value of the type we're working with, and ifMatch(type1, int), which checks if the parameter values correspond to each other (not used by the hash set tests). These normally work together, so that ifMatch checks if the first parameter value is the same as what gen generates from the second parameter value.

Once you've built the test case for your new type, just add it to the list of test case class names in the suite for that package. It will then automatically be executed every time you run the master test case tests.sosnoski.util.UtilSuite.