corda / net.corda.testing.node / UnstartedMockNode

UnstartedMockNode

class UnstartedMockNode

A class that represents an unstarted mock node for testing.

Properties

id

val id: Int

An identifier for the node. By default this is allocated sequentially in a MockNetwork

isStarted

val isStarted: Boolean

Whether this node has been started yet.

started

val started: StartedMockNode

A StartedMockNode object for this running node.

Functions

installCordaService

fun <T> installCordaService(serviceClass: Class<T>): T

Install a custom test-only CordaService.

start

fun start(): StartedMockNode

Start the node