mirror of
https://github.com/corda/corda.git
synced 2024-12-19 04:57:58 +00:00
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:
parent
342041c737
commit
b746d5cb22
@ -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")
|
||||
}
|
||||
}
|
||||
}
|
@ -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
|
@ -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
|
@ -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
|
Loading…
Reference in New Issue
Block a user