This is a sample application that demonstrates the core features of JUnit 5, especially the JUnit Jupiter programming model.
In addition, demos are provided for using the Spring TestContext Framework from the Spring Framework as well as testing support in Spring Boot.
The following highlight the technologies used.
- JUnit Platform 1.4.2
- JUnit Jupiter 5.4.2
- JUnit Vintage 5.4.2
- which includes JUnit 4.12 (for comparison with JUnit Jupiter)
- Spring Framework 5.2 M2
- Spring Boot 2.2 M3
- Gradle 5.4.1
- Java 11
Two of the tests intentionally fail in order to demonstrate support for assertAll()
(i.e., grouped assertions) in JUnit Jupiter vs. the lacking support for grouped assertions in JUnit 4.