Adding Test Classes

Add the JUnit dependency to pom.xml, then let IntelliJ generate a test class for the class you want to test.

Updated

Cheat sheet: Adding Test Classes
Category
Java
Level
Apprentice
Tags
java, unit testing