Nested class in java can't be serialised

Description

abstract class ObligationContractUnitTests {
protected MockServices ledgerServices = new MockServices(
ImmutableList.of("net.corda.examples.obligation", "net.corda.testing.contracts"));
protected TestIdentity alice = new TestIdentity(new CordaX500Name("Alice", "", "GB"));
protected TestIdentity bob = new TestIdentity(new CordaX500Name("Bob", "", "GB"));
protected TestIdentity charlie = new TestIdentity(new CordaX500Name("Bob", "", "GB"));

class DummyState implements ContractState {
@Override
public List<AbstractParty> getParticipants() {
return ImmutableList.of();
}
}

protected class DummyCommand implements CommandData {}

protected Obligation oneDollarObligation = new Obligation(POUNDS(1), alice.getParty(), bob.getParty());
protected Obligation tenDollarObligation = new Obligation(DOLLARS(10), alice.getParty(), bob.getParty());
}

Assignee

Katelyn Baker

Reporter

Katelyn Baker

Labels

Sprint

None

Epic Link

None

Priority

Medium

Engineering Teams

None

Fix versions

None

Affects versions

None

Ported to...

None

Story Points / Dev Days

None

Build cut

None
Configure