Companion

object Companion

Properties

Link copied to clipboard
const val BUFFER_SIZE: Int = 0
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
const val NO_OF_PRE_GEN_KEYS: Int = 0

Functions

Link copied to clipboard
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.

Link copied to clipboard
fun makeTestDatabaseAndPersistentServices(cordappPackages: List<String>, initialIdentity: <Error class: unknown class>, networkParameters: <Error class: unknown class> = testNetworkParameters(modifiedTime = Instant.MIN), moreKeys: Set<KeyPair>, moreIdentities: Set<<Error class: unknown class>>, 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.

Link copied to clipboard
fun makeTestDataSourceProperties(nodeName: String = SecureHash.randomSHA256().toString()): Properties
fun makeTestDataSourceProperties(nodeName: String = SecureHash.randomSHA256().toString(), inMemory: Boolean = false): Properties

Make properties appropriate for creating a DataSource for unit tests. Defaults configuration of on-disk H2 instance. If 'databaseProvider' system property is set then creates a config from the relevant config file is present in resources folder (used to parametrize test to run against a remote database).

Link copied to clipboard
fun makeUniqueTestDataSourceProperties(nodeName: String = SecureHash.randomSHA256().toString()): <Error class: unknown class><String, Properties>