Created
May 30, 2018 20:06
-
-
Save brenden-t-r/1f621199efbfdf4d48ca76ce8351453f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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