make Test Database And Mock Services
fun makeTestDatabaseAndMockServices(cordappPackages: List<String>, identityService: <Error class: unknown class>, initialIdentity: <Error class: unknown class>, networkParameters: <Error class: unknown class> = testNetworkParameters(modifiedTime = Instant.MIN), vararg moreKeys: KeyPair, softLockingSqlInClauseSize: Int = NodeVaultService.DEFAULT_SOFT_LOCKING_SQL_IN_CLAUSE_SIZE): <Error class: unknown class><<Error class: unknown class>, MockServices>
Makes database and mock services appropriate for unit tests.
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.
identity Service
An instance of IdentityService, see makeTestIdentityService.
initial Identity
The first (typically sole) identity the services will represent.
more Keys
A list of additional KeyPair instances to be used by MockServices.