Make integration tests pass in AMQP mode, part 1 (#1855)

This commit is contained in:
Viktor Kolomeyko
2017-10-11 11:13:46 +01:00
committed by GitHub
parent 4ee250a19b
commit ef0f0acc4a
5 changed files with 27 additions and 14 deletions

View File

@ -534,8 +534,22 @@ class SerializationOutputTests {
}
}
val FOO_PROGRAM_ID = "net.corda.nodeapi.internal.serialization.amqp.SerializationOutputTests.FooContract"
@Test
fun `test custom object`() {
serdes(FooContract)
}
@Test
@Ignore("Cannot serialize due to known Kotlin/serialization limitation")
fun `test custom anonymous object`() {
val anonymous: Contract = object : Contract {
override fun verify(tx: LedgerTransaction) {
}
}
serdes(anonymous)
}
private val FOO_PROGRAM_ID = "net.corda.nodeapi.internal.serialization.amqp.SerializationOutputTests.FooContract"
class FooState : ContractState {
override val participants: List<AbstractParty> = emptyList()
}