https://github.com/sbrannen/junit5-demo
Demos for JUnit 5
https://github.com/sbrannen/junit5-demo
gradle junit junit5 spring spring-boot spring-test
Last synced: about 2 months ago
JSON representation
Demos for JUnit 5
- Host: GitHub
- URL: https://github.com/sbrannen/junit5-demo
- Owner: sbrannen
- License: apache-2.0
- Created: 2017-10-02T17:07:03.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-10-12T05:05:31.000Z (over 5 years ago)
- Last Synced: 2025-03-18T08:53:28.678Z (about 2 months ago)
- Topics: gradle, junit, junit5, spring, spring-boot, spring-test
- Language: Java
- Size: 266 KB
- Stars: 46
- Watchers: 2
- Forks: 21
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Demos for JUnit 5
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 technologies are used.
* JUnit Platform 1.5.2
* JUnit Jupiter 5.5.2
* JUnit Vintage 5.5.2
* which includes JUnit 4.12 (for comparison with JUnit Jupiter)
* Spring Framework 5.2 GA
* Spring Boot 2.2 RC1
* Gradle 5.6.2
* Java 12## Note
Some 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. Additional tests intentionally fail to demonstrate the functionality of the `@SkipOnFailuresInEnclosingClass` extension.