Skip to content

Instantly share code, notes, and snippets.

@yusuke2255
Last active August 23, 2017 08:56
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save yusuke2255/5c8b569f7156db2522c2 to your computer and use it in GitHub Desktop.
Save yusuke2255/5c8b569f7156db2522c2 to your computer and use it in GitHub Desktop.
Jmockit + gradle test
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