CorDapp custom serializers not supported in MockNetwork

Description

As a CorDapp developer, if my app requires custom serializers, I can't unit test my flows without using Driver.

Steps to reproduce:

  1. Open ContractWithCustomSerializerTest.kt

  2. Run the test, it should succeed

  3. Comment out the existing test using Driver: flow with custom serializer by rpc

  4. Add a new test using mock network:

Expected behaviour
The new test should succeed.

Actual behaviour
Test fails with:
java.io.NotSerializableException: Class "class net.corda.contracts.serialization.custom.Currantsy" is not on the whitelist or annotated with @CordaSerializable.

Assignee

Chris Rankin

Reporter

Andrius Dagys

Sprint

None

Epic Link

None

Priority

Medium

Engineering Teams

Kernel

Fix versions

Affects versions

Ported to...

None

Story Points / Dev Days

8

Build cut

None
Configure