Skip to content

Instantly share code, notes, and snippets.

@brenden-t-r
Created May 30, 2018 20:06
Show Gist options
  • Save brenden-t-r/1f621199efbfdf4d48ca76ce8351453f to your computer and use it in GitHub Desktop.
Save brenden-t-r/1f621199efbfdf4d48ca76ce8351453f to your computer and use it in GitHub Desktop.
/*
* Borrowed from: https://docs.corda.net/tutorial-test-dsl.html
*/
ledgerServices = new MockServices(
// A list of packages to scan for cordapps
singletonList("net.corda.finance.contracts"),
// The identity represented by this set of mock services. Defaults to a test identity.
// You can also use the alternative parameter initialIdentityName which accepts a
// [CordaX500Name]
megaCorp,
// An implementation of [IdentityService], which contains a list of all identities known
// to the node. Use [makeTestIdentityService] which returns an implementation of
// [InMemoryIdentityService] with the given identities
makeTestIdentityService(megaCorp.getIdentity())
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment