Last active
August 23, 2017 08:56
-
-
Save yusuke2255/5c8b569f7156db2522c2 to your computer and use it in GitHub Desktop.
Jmockit + gradle test
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
configurations { jmockit } | |
dependencies { | |
jmockit ('com.googlecode.jmockit:jmockit:1.7') | |
testCompile ('junit:junit:4.11') | |
} | |
test { | |
// jmockitがjunitよりも前にclasspathが通ってる必要があるので下記の対応を行っています | |
sourceSets.test.compileClasspath = configurations.jmockit + sourceSets.test.compileClasspath | |
sourceSets.test.runtimeClasspath = configurations.jmockit + sourceSets.test.runtimeClasspath | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment