corda / net.corda.testing.node / MockNodeConfigOverrides

MockNodeConfigOverrides

class MockNodeConfigOverrides

This is a data class to configure overrides to the node configuration used in the mock network without having to expose/use the actual (internal) node configuration interface on the API. When passing one of these to createNode or createUnstartedNode functions, the bits that are set will be injected into the node configuration for the node to be created.

Constructors

<init>

MockNodeConfigOverrides(extraDataSourceProperties: Map<String, String>? = null, notary: MockNetNotaryConfig? = null, flowTimeout: MockNetFlowTimeOut? = null)

This is a data class to configure overrides to the node configuration used in the mock network without having to expose/use the actual (internal) node configuration interface on the API. When passing one of these to createNode or createUnstartedNode functions, the bits that are set will be injected into the node configuration for the node to be created.

Properties

extraDataSourceProperties

val extraDataSourceProperties: Map<String, String>?

flowTimeout

val flowTimeout: MockNetFlowTimeOut?

notary

val notary: MockNetNotaryConfig?

Extension Functions

contextLogger

fun Any.contextLogger(): Logger

When called from a companion object, returns the logger for the enclosing class.