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

Priority

Medium

Fix versions

None

Ported to...

None

Feature Team

None

CVSS Vector

None

Engineering Teams

None

Severity

Medium
Configure