ENT-5759 Give the failing test CorDapp a different package name so it does not get added automatically to all tests. (#6712)

This commit is contained in:
Christian Sailer 2020-09-15 16:52:08 +01:00 committed by GitHub
parent 342041c737
commit b746d5cb22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 6 deletions

View File

@ -32,7 +32,7 @@ class DbSchemaInitialisationTest {
// in dev mode, it fails because the schema of our test CorDapp is missing
assertThatExceptionOfType(HibernateSchemaChangeException::class.java)
.isThrownBy {
startNode(NodeParameters(additionalCordapps = listOf(TestCordapp.findCordapp("net.corda.testing.missingmigrationcordapp")))).getOrThrow()
startNode(NodeParameters(additionalCordapps = listOf(TestCordapp.findCordapp("net.corda.failtesting.missingmigrationcordapp")))).getOrThrow()
}
.withMessage("Incompatible schema change detected. Please run schema migration scripts (node with sub-command run-migration-scripts). Reason: Schema-validation: missing table [test_table]")
@ -42,9 +42,9 @@ class DbSchemaInitialisationTest {
startNode(
ALICE_NAME,
false,
NodeParameters(additionalCordapps = listOf(TestCordapp.findCordapp("net.corda.testing.missingmigrationcordapp")))).getOrThrow()
NodeParameters(additionalCordapps = listOf(TestCordapp.findCordapp("net.corda.failtesting.missingmigrationcordapp")))).getOrThrow()
}
.withMessage("Could not create the DataSource: No migration defined for schema: net.corda.testing.missingmigrationcordapp.MissingMigrationSchema v1")
.withMessage("Could not create the DataSource: No migration defined for schema: net.corda.failtesting.missingmigrationcordapp.MissingMigrationSchema v1")
}
}
}

View File

@ -1,4 +1,4 @@
package net.corda.testing.missingmigrationcordapp
package net.corda.failtesting.missingmigrationcordapp
import net.corda.core.schemas.MappedSchema
import net.corda.core.schemas.PersistentState

View File

@ -1,4 +1,4 @@
package net.corda.testing.missingmigrationcordapp
package net.corda.failtesting.missingmigrationcordapp
import net.corda.core.flows.FlowLogic
import net.corda.core.flows.InitiatingFlow

View File

@ -1,4 +1,4 @@
package net.corda.testing.missingmigrationcordapp
package net.corda.failtesting.missingmigrationcordapp
import net.corda.core.identity.AbstractParty
import net.corda.core.schemas.MappedSchema