MockNodeParameters

data class MockNodeParameters(val forcedID: Int? = null, val legalName: CordaX500Name? = null, val entropyRoot: BigInteger = BigInteger.valueOf(random63BitValue()), val configOverrides: MockNodeConfigOverrides? = null, val additionalCordapps: Collection<TestCordapp> = emptyList())

Immutable builder for configuring a StartedMockNode or an UnstartedMockNode via MockNetwork.createNode and MockNetwork.createUnstartedNode. Kotlin users can also use the named parameters overloads of those methods which are more convenient.

Constructors

Link copied to clipboard
constructor(forcedID: Int? = null, legalName: CordaX500Name? = null, entropyRoot: BigInteger = BigInteger.valueOf(random63BitValue()), configOverrides: MockNodeConfigOverrides)
constructor(forcedID: Int? = null, legalName: CordaX500Name? = null, entropyRoot: BigInteger = BigInteger.valueOf(random63BitValue()), configOverrides: MockNodeConfigOverrides? = null, additionalCordapps: Collection<TestCordapp> = emptyList())

Properties

Link copied to clipboard

TestCordapps that will be added to this node in addition to the ones shared by all nodes, which get specified at MockNetwork level.

Link copied to clipboard

Add/override behaviour of the NodeConfiguration mock object.

Link copied to clipboard

the initial entropy value to use when generating keys. Defaults to an (insecure) random value, but can be overridden to cause nodes to have stable or colliding identity/service keys.

Link copied to clipboard
val forcedID: Int? = null

Override the ID to use for the node. By default node ID's are generated sequentially in a MockNetwork. Specifying the same ID is required if a node is restarted.

Link copied to clipboard

The CordaX500Name name to use for the node.

Functions

Link copied to clipboard
fun copy(forcedID: Int?, legalName: CordaX500Name?, entropyRoot: BigInteger, configOverrides: MockNodeConfigOverrides): MockNodeParameters
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard