makeTestDatabaseAndMockServices

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

cordappPackages

A List of cordapp packages to scan for any cordapp code, e.g. contract verification code, flows and services.

identityService

An instance of IdentityService, see makeTestIdentityService.

initialIdentity

The first (typically sole) identity the services will represent.

moreKeys

A list of additional KeyPair instances to be used by MockServices.