JUnit Tutorial

Class Summary

JUnit is a testing framework recommended for Unit testing. Some unique features of JUnit includes writing repeatable tests, detecting test failure, running multiple test cases, trace the exception, and so on. This tutorial covers various topics with examples like JUnit Assert, JUnit API, JUnit Test Suite, etc.

What should I know?

This tutorial requires some basic knowledge of Java programing and Unit testing.


1. Introduction to JUnit

2. How to Download and Installation JUnit

3. JUnit Test framework

4. JUnit Annotations & API

5. Junit Assert

6. Create JUnit Test Suite

7. JUnit Ignore Test

8. JUnit Exception Test

9. JUnit ErrorCollector

10. JUnit Parameterized Test

11. JUnit Vs TestNG