Configure jMockit for desktop module

This commit is contained in:
Christoph Atteneder 2019-01-11 16:59:18 +01:00
parent e31a314904
commit fe864724f3
No known key found for this signature in database
GPG key ID: CD5DC1C529CDFD3B
2 changed files with 7 additions and 3 deletions

View file

@ -318,6 +318,13 @@ configure(project(':desktop')) {
testCompileOnly "org.projectlombok:lombok:$lombokVersion"
testAnnotationProcessor "org.projectlombok:lombok:$lombokVersion"
}
test {
systemProperty 'jdk.attach.allowAttachSelf', true
def jmockit = configurations.testCompile.files.find { it.name.contains("jmockit") }.absolutePath
jvmArgs "-javaagent:$jmockit"
}
}

View file

@ -60,13 +60,10 @@ import mockit.MockUp;
import mockit.Tested;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
//TODO @Christoph Can you have a look why JMockit is nto working anymore in that module?
@Ignore
public class TradesChartsViewModelTest {
@Tested
TradesChartsViewModel model;