2016-08-30 12:50:02 +00:00
|
|
|
apply plugin: 'kotlin'
|
2016-11-18 14:41:06 +00:00
|
|
|
apply plugin: 'net.corda.plugins.quasar-utils'
|
|
|
|
apply plugin: 'net.corda.plugins.publish-utils'
|
2016-08-30 12:50:02 +00:00
|
|
|
|
2016-12-06 10:49:46 +00:00
|
|
|
description 'Testing utilities for Corda'
|
|
|
|
|
2016-08-30 12:50:02 +00:00
|
|
|
//noinspection GroovyAssignabilityCheck
|
|
|
|
configurations {
|
|
|
|
// we don't want isolated.jar in classPath, since we want to test jar being dynamically loaded as an attachment
|
|
|
|
runtime.exclude module: 'isolated'
|
2017-06-14 13:26:06 +00:00
|
|
|
|
|
|
|
integrationTestCompile.extendsFrom testCompile
|
|
|
|
integrationTestRuntime.extendsFrom testRuntime
|
|
|
|
}
|
|
|
|
|
|
|
|
sourceSets {
|
|
|
|
integrationTest {
|
|
|
|
kotlin {
|
|
|
|
compileClasspath += main.output + test.output
|
|
|
|
runtimeClasspath += main.output + test.output
|
|
|
|
srcDir file('src/integration-test/kotlin')
|
|
|
|
}
|
|
|
|
resources {
|
|
|
|
srcDir file('src/integration-test/resources')
|
|
|
|
}
|
|
|
|
}
|
2016-08-30 12:50:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2016-11-04 10:28:42 +00:00
|
|
|
compile project(':finance')
|
2016-08-30 12:50:02 +00:00
|
|
|
compile project(':core')
|
2016-08-31 13:13:28 +00:00
|
|
|
compile project(':node')
|
2017-03-30 16:34:32 +00:00
|
|
|
compile project(':webserver')
|
2017-03-29 16:28:02 +00:00
|
|
|
compile project(':client:mock')
|
2016-08-30 12:50:02 +00:00
|
|
|
|
2017-03-30 15:27:01 +00:00
|
|
|
compile "org.jetbrains.kotlin:kotlin-stdlib-jre8:$kotlin_version"
|
2016-08-30 12:50:02 +00:00
|
|
|
compile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
|
|
|
|
compile "org.jetbrains.kotlin:kotlin-test:$kotlin_version"
|
|
|
|
|
2017-01-03 14:15:23 +00:00
|
|
|
compile "com.google.guava:guava:$guava_version"
|
2016-08-30 12:50:02 +00:00
|
|
|
|
|
|
|
// Unit testing helpers.
|
2017-01-03 14:15:23 +00:00
|
|
|
compile "junit:junit:$junit_version"
|
2017-04-12 14:30:28 +00:00
|
|
|
compile "com.nhaarman:mockito-kotlin:1.1.0"
|
2016-08-19 15:27:50 +00:00
|
|
|
|
|
|
|
// Guava: Google test library (collections test suite)
|
2017-03-24 11:22:53 +00:00
|
|
|
compile "com.google.guava:guava-testlib:$guava_version"
|
2016-10-25 13:23:18 +00:00
|
|
|
|
|
|
|
// OkHTTP: Simple HTTP library.
|
2017-01-03 14:15:23 +00:00
|
|
|
compile "com.squareup.okhttp3:okhttp:$okhttp_version"
|
2017-06-14 13:26:06 +00:00
|
|
|
|
|
|
|
// Integration test helpers
|
|
|
|
integrationTestCompile "org.assertj:assertj-core:${assertj_version}"
|
|
|
|
integrationTestCompile "junit:junit:$junit_version"
|
|
|
|
}
|
|
|
|
|
|
|
|
task integrationTest(type: Test) {
|
|
|
|
testClassesDir = sourceSets.integrationTest.output.classesDir
|
|
|
|
classpath = sourceSets.integrationTest.runtimeClasspath
|
2017-01-03 14:15:23 +00:00
|
|
|
}
|
2017-06-06 14:05:47 +00:00
|
|
|
|
|
|
|
jar {
|
|
|
|
baseName 'corda-test-utils'
|
|
|
|
}
|
|
|
|
|
|
|
|
publish {
|
|
|
|
name = jar.baseName
|
|
|
|
}
|