Cleaned up the trader, irs and simm demos so that things like the driver are used in test so that the node module isn't a compile dependency.

This has resulted in some classes moving into core, such as ClockUtils and FiberBox.
This commit is contained in:
Shams Asari
2017-06-14 15:59:17 +01:00
parent 4195adfb7b
commit 155bb029da
29 changed files with 159 additions and 159 deletions

View File

@ -11,6 +11,7 @@ import net.corda.node.services.transactions.SimpleNotaryService
import net.corda.nodeapi.User
import net.corda.testing.BOC
import net.corda.testing.driver.driver
import net.corda.traderdemo.flow.SellerFlow
/**
* This file is exclusively for being able to run your nodes through an IDE (as opposed to running deployNodes)
@ -19,7 +20,7 @@ import net.corda.testing.driver.driver
fun main(args: Array<String>) {
val permissions = setOf(
startFlowPermission<IssuerFlow.IssuanceRequester>(),
startFlowPermission<net.corda.traderdemo.flow.SellerFlow>())
startFlowPermission<SellerFlow>())
val demoUser = listOf(User("demo", "demo", permissions))
driver(driverDirectory = "build" / "trader-demo-nodes", isDebug = true) {
val user = User("user1", "test", permissions = setOf(startFlowPermission<IssuerFlow.IssuanceRequester>()))