Ability to run integration tests against standalone databases

* Additional database confing and implied property ${nodeOrganizationName}.
* Integration tests extend from base class which allows to configure database connection (in-memory/remote db) and to run setup/tear down SQL scripts.
This commit is contained in:
szymonsztuka
2017-11-13 17:29:57 +00:00
committed by GitHub
parent 523a6db0b9
commit 359610ff14
28 changed files with 212 additions and 50 deletions

View File

@ -19,12 +19,12 @@ import net.corda.testing.driver.driver
import org.junit.Test
import kotlin.test.assertEquals
class IntegrationTestingTutorial {
class IntegrationTestingTutorial : IntegrationTest() {
@Test
fun `alice bob cash exchange example`() {
// START 1
driver(startNodesInProcess = true,
extraCordappPackagesToScan = listOf("net.corda.finance.contracts.asset")) {
extraCordappPackagesToScan = listOf("net.corda.finance.contracts.asset","net.corda.finance.schemas")) {
val aliceUser = User("aliceUser", "testPassword1", permissions = setOf(
startFlow<CashIssueFlow>(),
startFlow<CashPaymentFlow>(),