com.r3corda.core.node.services.testing

Package com.r3corda.core.node.services.testing

Types

MockAttachmentStorage class MockAttachmentStorage : AttachmentStorage
MockIdentityService class MockIdentityService : IdentityService, SingletonSerializeAsToken
MockKeyManagementService class MockKeyManagementService : SingletonSerializeAsToken, KeyManagementService
MockServices open class MockServices : ServiceHub

A singleton utility that only provides a mock identity, key and storage service. However, this is sufficient for building chains of transactions and verifying them. It isnt sufficient for testing protocols however.

MockStorageService class MockStorageService : SingletonSerializeAsToken, TxWritableStorageService
MockTransactionStorage open class MockTransactionStorage : TransactionStorage

Functions

makeTestDataSourceProperties fun makeTestDataSourceProperties(nodeName: String = SecureHash.randomSHA256().toString()): Properties

Make properties appropriate for creating a DataSource for unit tests.