mirror of
https://github.com/corda/corda.git
synced 2025-06-13 04:38:19 +00:00
Make integration tests pass in AMQP mode, part 1 (#1855)
This commit is contained in:
@ -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()
|
||||
}
|
||||
|
Reference in New Issue
Block a user