Merge pull request #1924 from corda/kat/amqp/amqpTestFix2

CORDA-435 - AMQP serialisation cannot work with private vals
This commit is contained in:
Katelyn Baker 2017-10-23 16:24:44 +01:00 committed by GitHub
commit b73020a014

View File

@ -138,7 +138,9 @@ class NodeSchedulerServiceTest : SingletonSerializeAsToken() {
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>
get() = listOf(myIdentity)