Ability to run integration tests against standalone databases (part 2) (#109)

Commit 359610ff14 didn't fully covered:
* Integration tests extends IntegrationTest class which can run SQL scripts before and after a test and before and after test class.

*Driver.kt creates notaries without a table name prefixes (separation is achieved by using different user/schema).

*Revert wrongly altered H2 JDBC connection string for tests.
This commit is contained in:
szymonsztuka
2017-11-15 14:04:48 +00:00
committed by GitHub
parent 233f1fb8e2
commit 4f2d8d058e
12 changed files with 24 additions and 24 deletions

View File

@ -55,7 +55,6 @@ class NodePerformanceTests : IntegrationTest() {
@Before
fun before() {
checkQuasarAgent()
super.setUp()
}
@Test

View File

@ -26,6 +26,7 @@ import net.corda.node.services.config.NotaryConfig
import net.corda.node.services.transactions.minClusterSize
import net.corda.node.services.transactions.minCorrectReplicas
import net.corda.node.utilities.ServiceIdentityGenerator
import net.corda.testing.IntegrationTest
import net.corda.testing.chooseIdentity
import net.corda.testing.common.internal.NetworkParametersCopier
import net.corda.testing.common.internal.testNetworkParameters
@ -41,7 +42,7 @@ import java.nio.file.Paths
import kotlin.test.assertEquals
import kotlin.test.assertTrue
class BFTNotaryServiceTests {
class BFTNotaryServiceTests : IntegrationTest() {
private lateinit var mockNet: MockNetwork
private lateinit var notary: Party
private lateinit var node: StartedNode<MockNode>

View File

@ -13,6 +13,7 @@ import net.corda.testing.contracts.DummyContract
import net.corda.testing.contracts.DummyState
import net.corda.testing.driver.driver
import net.corda.testing.dummyCommand
import net.corda.testing.IntegrationTest
import org.junit.Test
import kotlin.test.assertEquals
@ -20,7 +21,7 @@ import kotlin.test.assertEquals
* Check that we can add lots of large attachments to a transaction and that it works OK, e.g. does not hit the
* transaction size limit (which should only consider the hashes).
*/
class LargeTransactionsTest {
class LargeTransactionsTest : IntegrationTest() {
@StartableByRPC
@InitiatingFlow
class SendLargeTransactionFlow(private val hash1: SecureHash,