Skip to content

Commit

Permalink
Merge pull request corda#1924 from corda/kat/amqp/amqpTestFix2
Browse files Browse the repository at this point in the history
CORDA-435 - AMQP serialisation cannot work with private vals
  • Loading branch information
Katelyn Baker authored Oct 23, 2017
2 parents cbb5135 + 303acf7 commit b73020a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit b73020a

Please sign in to comment.