Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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
You can’t perform that action at this time.