...

/

IntelliJ IDEA

IntelliJ IDEA

Learn how to write JUnit tests in IntelliJ IDEA.

Installing plugins

  • We first need to install JUnit support.
  • Navigate to IntelliJ’s “Preferences” dialog box and select “Plugins” from the left-hand menu.
  • Scroll down to JUnit in the Plugins list and ensure that the corresponding check-box is checked.
  • Click “OK”.

JUnit using Maven

Next, we need to download the JUnit library using Maven sources.

  • Navigate to the Project Structure dialog box for our new iloveyouboss project (File ▶
...
Access this course and 1400+ top-rated courses and projects.