Created
September 21, 2018 06:54
-
-
Save felixklauke/ba33221e94b661e0ad5ced0412d0ddee to your computer and use it in GitHub Desktop.
JUnit 5 with mockito
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| plugins { | |
| id 'java' | |
| } | |
| group 'de.d3adspace' | |
| version '1.0-SNAPSHOT' | |
| allprojects { | |
| apply plugin: 'java' | |
| apply plugin: 'maven' | |
| sourceCompatibility = 1.8 | |
| targetCompatibility = 1.8 | |
| repositories { | |
| /** | |
| * Resolving local maven repository. | |
| */ | |
| mavenLocal() | |
| /** | |
| * Maven central repository. | |
| */ | |
| mavenCentral() | |
| } | |
| dependencies { | |
| /** | |
| * JUnit Jupiter as a testing framework. | |
| */ | |
| testCompile group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: '5.2.0' | |
| /** | |
| * JUnit Jupiter parameter configuration. | |
| */ | |
| testCompile group: 'org.junit.jupiter', name: 'junit-jupiter-params', version: '5.2.0' | |
| /** | |
| * JUnit Jupiter testing engine. | |
| */ | |
| testCompile group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: '5.2.0' | |
| /** | |
| * Vintage platform engine. | |
| */ | |
| testCompile group: 'org.junit.platform', name: 'junit-platform-engine', version: '1.2.0' | |
| /** | |
| * JUnit jupiter with mockito. | |
| */ | |
| testCompile group: 'org.mockito', name: 'mockito-junit-jupiter', version: '2.19.0' | |
| /** | |
| * Mockito for mocking. | |
| */ | |
| testCompile group: 'org.mockito', name: 'mockito-core', version: '2.19.0' | |
| } | |
| test { | |
| useJUnitPlatform() | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment