Add JUnit to IntelliJ IDEA

Right-click the project name and choose Open Module Settings → Modules → Dependencies → + → Library → From Maven. Search for org.junit.jupiter:junit-jupiter:5.4.2, select it, then click OK twice.

Banner image