Is there a testsuite for Java custom collections implementation? May 22, 2023 by Tarik Billa Use the Guava SetTestSuiteBuilder. https://github.com/google/guava/blob/master/guava-testlib/src/com/google/common/collect/testing/SetTestSuiteBuilder.java Examples: https://github.com/google/guava/blob/master/guava-testlib/src/com/google/common/collect/testing/TestsForSetsInJavaUtil.java It is released as part of “guava-testlib” in maven central. More Related Contents: Assert equals between 2 Lists in Junit What is the difference between "collection" ,"Collection" and "Collections"? [duplicate] How to assign class level data in a TestNG unit test class Difference between Properly removing an Integer from a List How do I convert a Map to List in Java? Randomly select an item from a list How to tell a Mockito mock object to return something different the next time it is called? Define a fixed-size list in Java Maximum size of HashSet, Vector, LinkedList How to shuffle an ArrayList [duplicate] Overriding Binding in Guice How can I generate a list or array of sequential integers in Java? Mockito verify order / sequence of method calls mock or stub for chained call What are mock objects in Java? What is a WeakHashMap and when to use it? [duplicate] How to prove that HashMap in java is not thread-safe best way to pick a random subset from a collection? Is it possible in java make something like Comparator but for implementing custom equals() and hashCode() ArrayList Vs LinkedList Classical set operations for java.util.Collection Java Collections and Garbage Collector Injecting @Autowired private field during testing Is there a way to check if two Collections contain the same elements, independent of order? How can I unit test void functions? Getting object with max date property from list of objects Java 8 Storing different types of elements in a List in Java Hashmap implementation to count the occurrences of each character Perform operation on n random distinct elements from Collection using Streams API