Added skeleton for the SIMM integration test.

This commit is contained in:
Clinton Alexander 2016-12-15 14:34:04 +00:00
parent f44dd969ce
commit 2334824a73
2 changed files with 40 additions and 0 deletions

View File

@ -34,6 +34,18 @@ sourceSets {
srcDir "../../config/test"
}
}
integrationTest {
kotlin {
compileClasspath += main.output + test.output
runtimeClasspath += main.output + test.output
srcDir file('src/integration-test/kotlin')
}
}
}
configurations {
integrationTestCompile.extendsFrom testCompile
integrationTestRuntime.extendsFrom testRuntime
}
dependencies {
@ -105,6 +117,10 @@ task deployNodes(type: net.corda.plugins.Cordform, dependsOn: ['build']) {
}
}
task integrationTest(type: Test, dependsOn: []) {
testClassesDir = sourceSets.integrationTest.output.classesDir
classpath = sourceSets.integrationTest.runtimeClasspath
}
task npmInstall(type: Exec) {
workingDir 'src/main/web'

View File

@ -0,0 +1,24 @@
package net.corda.vega
class SimmValuationTest: IntegrationTestCategory {
@Test fun `runs SIMM valuation demo`() {
driver(isDebug = true) {
val controller = startNode("Controller", setOf(ServiceInfo(SimpleNotaryService.type))).getOrThrow()
val nodeA = startNode("Bank A").getOrThrow()
val nodeB = startNode("Bank B").getOrThrow()
assert(createTrade())
assert(runValuations())
}
}
// TODO: create, verify, run, verify or determine a better test structure.
private fun createTrade(): Boolean {
}
private fun runValuations(): Boolean {
}
}