Introduction to JUnit 5
Learn the basics of JUnit 5 and its brief history.
We'll cover the following
What is JUnit 5?
JUnit 5 is a popular Unit Testing Framework that helps Java developers to unit test their code.
JUnit was originally developed by Kent Beck and Erich Gamma in 1997. JUnit 5 is the latest installment of the software.
JUnit 5 was developed because, with the introduction of Java 8 and many new language features, a modern and flexible unit testing framework was needed.
Supported Java versions
JUnit 5 is a complete rewrite of JUnit 4, and it supports Java 8 and newer versions.
JUnit 5 modules
JUnit 5 is composed of several different modules, such as:
- JUnit Jupiter
- JUnit Platform
- JUnit Vintage
Get hands-on with 1400+ tech skills courses.