make Test Database And Persistent Services
fun makeTestDatabaseAndPersistentServices(cordappPackages: List<String>, initialIdentity: <Error class: unknown class>, networkParameters: NetworkParameters = testNetworkParameters(modifiedTime = Instant.MIN), moreKeys: Set<KeyPair>, moreIdentities: Set<PartyAndCertificate>, cacheFactory: TestingNamedCacheFactory = TestingNamedCacheFactory()): <Error class: unknown class><<Error class: unknown class>, MockServices>
Makes database and persistent services appropriate for unit tests which require persistence across the vault, identity service and key managment service.
Return
A pair where the first element is the instance of CordaPersistence and the second is MockServices.
Parameters
cordapp Packages
A List of cordapp packages to scan for any cordapp code, e.g. contract verification code, flows and services.
initial Identity
The first (typically sole) identity the services will represent.
more Keys
A list of additional KeyPair instances to be used by MockServices.
more Identities
A list of additional KeyPair instances to be used by MockServices.
cache Factory
A custom cache factory to be used by the created IdentityService