Skip to content

Collection of sample applications using JUnit 5.

License

Notifications You must be signed in to change notification settings

MiniDigger/junit5-samples

 
 

Repository files navigation

JUnit 5 Samples ci-badge

Welcome to JUnit 5 Samples, a collection of sample applications and extensions using JUnit Jupiter, JUnit Vintage, and the JUnit Platform on various build systems.

CI builds for sample projects are available on Jenkins and Travis CI.

Using JDK 10's jshell tool, you may build all samples via the build-all-samples.jsh script.

Vanilla Samples

Basic setups showing how to get started.

Jupiter on Gradle badge-jdk-8 badge-tool-gradle badge-junit-jupiter

The junit5-vanilla-gradle sample demonstrates the bare minimum configuration for getting started with JUnit Jupiter using the Gradle build system.

Jupiter on Maven badge-jdk-8 badge-tool-maven badge-junit-jupiter

The junit5-vanilla-maven sample demonstrates the bare minimum configuration for getting started with JUnit Jupiter using the Maven build system.

Consumer Samples

More complex setups how to integrate various parts of "JUnit 5".

Gradle Consumer badge-jdk-8 badge-tool-gradle badge-junit-platform badge-junit-jupiter badge-junit-vintage

The junit5-gradle-consumer sample demonstrates how to set up a Gradle project using the JUnit Platform, JUnit Jupiter, and JUnit Vintage.

Maven Consumer badge-jdk-8 badge-tool-maven badge-junit-platform badge-junit-jupiter badge-junit-vintage

The junit5-maven-consumer sample demonstrates how to set up a Maven project using the JUnit Platform, JUnit Jupiter, and JUnit Vintage.

Mockito Extension badge-jdk-8 badge-tool-gradle badge-junit-platform badge-junit-jupiter

The junit5-mockito-extension sample provides a simple extension that demonstrates how one can integrate Mockito into JUnit Jupiter tests.

Java Platform Module System Samples

Living in the Modular World...

Platform on JShell badge-jdk-9 badge-jdk-10 badge-jdk-11 badge-tool-console badge-junit-platform

The junit5-vanilla-modules sample demonstrates how to test code organized in modules.

Ice Cream Machine badge-jdk-9 badge-tool-gradle badge-junit-platform

The junit5-java9-engine sample demonstrates how to implement a custom TestEngine for the JUnit Platform using the Java Platform Module System.

About

Collection of sample applications using JUnit 5.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 56.4%
  • Shell 27.2%
  • Batchfile 16.4%