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

Helper builder for configuring a Node from Java.

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

An abstract helper class which is used within the driver to allocate unused ports for testing. Use either the Incremental or RandomFree concrete implementations.

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)