mirror of
https://github.com/corda/corda.git
synced 2025-04-08 11:54:44 +00:00
Added skeleton for the SIMM integration test.
This commit is contained in:
parent
f44dd969ce
commit
2334824a73
@ -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'
|
||||
|
@ -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 {
|
||||
|
||||
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user