# junit5-samples **Repository Path**: xiaodebing/junit5-samples ## Basic Information - **Project Name**: junit5-samples - **Description**: No description available - **Primary Language**: Unknown - **License**: EPL-2.0 - **Default Branch**: bom - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-03-12 - **Last Updated**: 2021-03-12 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # JUnit 5 Samples [![ci-badge]][ci-travis] 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][ci-jenkins] and [Travis CI][ci-travis]. 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-modular-world] sample demonstrates how to test code organized in modules. This sample also demonstrates how to implement a custom [TestEngine][guide-custom-engine] for the JUnit Platform using the Java Platform Module System. [junit5-gradle-consumer]: junit5-gradle-consumer [junit5-maven-consumer]: junit5-maven-consumer [junit5-vanilla-gradle]: junit5-vanilla-gradle [junit5-vanilla-maven]: junit5-vanilla-maven [junit5-modular-world]: junit5-modular-world [junit5-mockito-extension]: junit5-mockito-extension [badge-jdk-8]: https://img.shields.io/badge/jdk-8-lightgray.svg "JDK-8" [badge-jdk-9]: https://img.shields.io/badge/jdk-9-yellow.svg "JDK-9" [badge-jdk-10]: https://img.shields.io/badge/jdk-10-orange.svg "JDK-10" [badge-jdk-11]: https://img.shields.io/badge/jdk-11-red.svg "JDK-11 or higher" [badge-tool-gradle]: https://img.shields.io/badge/tool-gradle-blue.svg "Gradle wrapper included" [badge-tool-maven]: https://img.shields.io/badge/tool-maven-0440af.svg "Maven wrapper included" [badge-tool-console]: https://img.shields.io/badge/tool-console-022077.svg "Command line tools" [badge-junit-platform]: https://img.shields.io/badge/junit-platform-brightgreen.svg "JUnit Platform" [badge-junit-jupiter]: https://img.shields.io/badge/junit-jupiter-green.svg "JUnit Jupiter Engine" [badge-junit-vintage]: https://img.shields.io/badge/junit-vintage-yellowgreen.svg "JUnit Vintage Engine" [ci-badge]: https://travis-ci.org/junit-team/junit5-samples.svg "Travis CI build status" [ci-travis]: https://travis-ci.org/junit-team/junit5-samples [ci-jenkins]: https://junit.ci.cloudbees.com/blue/organizations/jenkins/JUnit%205%20Samples/branches/ [guide-custom-engine]: http://junit.org/junit5/docs/current/user-guide/#launcher-api-engines-custom "Plugging in Your Own Test Engine"