JUnit Introduction JUnit is used for unit testing of Java applications. JUnit and TestNG are two popular unit testing frameworks. In this tutorial I will explore JUnit only. There are two popular version of JUnit – JUnit 3 and JUnit 4. Below table