mirror of
https://github.com/corda/corda.git
synced 2025-01-31 08:25:50 +00:00
Merge pull request #1924 from corda/kat/amqp/amqpTestFix2
CORDA-435 - AMQP serialisation cannot work with private vals
This commit is contained in:
commit
b73020a014
@ -138,7 +138,9 @@ class NodeSchedulerServiceTest : SingletonSerializeAsToken() {
|
|||||||
resetTestSerialization()
|
resetTestSerialization()
|
||||||
}
|
}
|
||||||
|
|
||||||
class TestState(private val flowLogicRef: FlowLogicRef, val instant: Instant, private val myIdentity: Party) : LinearState, SchedulableState {
|
// Ignore IntelliJ when it says these properties can be private, if they are we cannot serialise them
|
||||||
|
// in AMQP.
|
||||||
|
class TestState(val flowLogicRef: FlowLogicRef, val instant: Instant, val myIdentity: Party) : LinearState, SchedulableState {
|
||||||
override val participants: List<AbstractParty>
|
override val participants: List<AbstractParty>
|
||||||
get() = listOf(myIdentity)
|
get() = listOf(myIdentity)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user