TestStartedNode

interface TestStartedNode

Properties

Link copied to clipboard
abstract val attachments: <Error class: unknown class>
Link copied to clipboard
open val cordaRPCOps: <Error class: unknown class>
Link copied to clipboard
abstract val database: <Error class: unknown class>
Link copied to clipboard
abstract val info: <Error class: unknown class>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract val notaryService: <Error class: unknown class>?
Link copied to clipboard
abstract val rpcOpsList: List<<Error class: unknown class>>
Link copied to clipboard
abstract val services: <Error class: unknown class>
Link copied to clipboard
abstract val smm: <Error class: unknown class>

Functions

Link copied to clipboard
open fun dispose(): <Error class: unknown class>
Link copied to clipboard
Link copied to clipboard
inline fun <P> TestStartedNode.registerCordappFlowFactory(initiatingFlowClass: KClass<out <Error class: unknown class><out <Error class: unknown class>>>, initiatedFlowVersion: Int = 1, noinline flowFactory: (<Error class: unknown class>) -> P): <Error class: unknown class><P>
Link copied to clipboard
fun <T> TestStartedNode.registerCoreFlowFactory(initiatingFlowClass: Class<out <Error class: unknown class><out <Error class: unknown class>>>, initiatedFlowClass: Class<T>, flowFactory: (<Error class: unknown class>) -> T, track: Boolean): <Error class: unknown class><T>
Link copied to clipboard
abstract fun <T> registerInitiatedFlow(initiatedFlowClass: Class<T>, track: Boolean = false): <Error class: unknown class><T>

Use this method to register your initiated flows in your tests. This is automatically done by the node when it starts up for all FlowLogic classes it finds which are annotated with InitiatedBy.

abstract fun <T> registerInitiatedFlow(initiatingFlowClass: Class<out <Error class: unknown class><out <Error class: unknown class>>>, initiatedFlowClass: Class<T>, track: Boolean = false): <Error class: unknown class><T>
Link copied to clipboard

Attach a MessagingServiceSpy to the InternalMockNetwork.MockNode allowing interception and modification of messages.