Retire setCordappPackages. (#1860)

This commit is contained in:
Andrzej Cichocki
2017-10-11 10:35:21 +01:00
committed by GitHub
parent c96031d311
commit 4ee250a19b
54 changed files with 132 additions and 392 deletions

View File

@ -17,23 +17,10 @@ import net.corda.traderdemo.flow.BuyerFlow
import net.corda.traderdemo.flow.CommercialPaperIssueFlow
import net.corda.traderdemo.flow.SellerFlow
import org.assertj.core.api.Assertions.assertThat
import org.junit.After
import org.junit.Before
import org.junit.Test
import java.util.concurrent.Executors
class TraderDemoTest : NodeBasedTest() {
@Before
fun setup() {
setCordappPackages("net.corda.finance.contracts.asset", "net.corda.finance.contracts")
}
@After
fun tearDown() {
unsetCordappPackages()
}
class TraderDemoTest : NodeBasedTest(listOf("net.corda.finance.contracts.asset", "net.corda.finance.contracts")) {
@Test
fun `runs trader demo`() {
val demoUser = User("demo", "demo", setOf(startFlowPermission<SellerFlow>()))