An open API service indexing awesome lists of open source software.

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

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.