Finding Java classes that are only used by tests

Background/Why you want to do this Example of how this happens Why this is becoming more common How to find code only used by tests 1. Generate separate jars for both prod and test code 2. Generate class dependencies 3. Filter output to make them comparable 4. Get a singular sorted list of each jar’s dependant classes 5. Compare them and examine results. Limitations Non-recursive Test helpers…