diff --git a/samples/simm-valuation-demo/build.gradle b/samples/simm-valuation-demo/build.gradle index 2463df37a0..12182fbc65 100644 --- a/samples/simm-valuation-demo/build.gradle +++ b/samples/simm-valuation-demo/build.gradle @@ -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' diff --git a/samples/simm-valuation-demo/src/integration-test/kotlin/net/corda/vega/SimmValuationTest.kt b/samples/simm-valuation-demo/src/integration-test/kotlin/net/corda/vega/SimmValuationTest.kt new file mode 100644 index 0000000000..da873fd872 --- /dev/null +++ b/samples/simm-valuation-demo/src/integration-test/kotlin/net/corda/vega/SimmValuationTest.kt @@ -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 { + + + } +} \ No newline at end of file