corda / net.corda.testing.driver

Package net.corda.testing.driver

Test utilites to help running nodes programmatically for tests

Types

DriverDSL

interface DriverDSL

Underlying interface for the driver DSL. Do not instantiate directly, instead use the driver function.

DriverParameters

data class DriverParameters

Builder for configuring a driver.

InProcess

interface InProcess : NodeHandle

Interface which represents an in process node and exposes available services.

JmxPolicy

data class JmxPolicy

A class containing configuration information for Jolokia JMX, to be used when creating a node via the driver.

NodeHandle

interface NodeHandle : AutoCloseable

A base interface which represents a node as part of the driver dsl, extended by InProcess and OutOfProcess

NodeParameters

data class NodeParameters

Parameters for creating a node for DriverDSL.startNode.

NotaryHandle

data class NotaryHandle

Object ecapsulating a notary started automatically by the driver.

OutOfProcess

interface OutOfProcess : NodeHandle

Interface which represents an out of process node and exposes its process handle.

PortAllocation

abstract class PortAllocation

VerifierType

enum class VerifierType

WebserverHandle

data class WebserverHandle

Class which represents a handle to a webserver process and its NetworkHostAndPort for testing purposes.

Functions

driver

fun <A> driver(defaultParameters: DriverParameters = DriverParameters(), dsl: DriverDSL.() -> A): A

driver allows one to start up nodes like this: driver { val noService = startNode(providedName = DUMMY_BANK_A.name) val notary = startNode(providedName = DUMMY_NOTARY.name)

logFile

fun NodeHandle.logFile(): File