TestStartedNode

interface TestStartedNode

Properties

Link copied to clipboard
abstract val attachments: <Error class: unknown class>
Link copied to clipboard
Link copied to clipboard
abstract val database: <Error class: unknown class>
Link copied to clipboard
abstract val info: NodeInfo
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract val rpcOpsList: List<RPCOps>
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 : FlowLogic<*>> TestStartedNode.registerCordappFlowFactory(initiatingFlowClass: KClass<out FlowLogic<*>>, initiatedFlowVersion: Int = 1, noinline flowFactory: (FlowSession) -> P): CordaFuture<P>
Link copied to clipboard
fun <T : FlowLogic<*>> TestStartedNode.registerCoreFlowFactory(initiatingFlowClass: Class<out FlowLogic<*>>, initiatedFlowClass: Class<T>, flowFactory: (FlowSession) -> T, track: Boolean): <Error class: unknown class><T>
Link copied to clipboard
abstract fun <T : FlowLogic<*>> 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 : FlowLogic<*>> registerInitiatedFlow(initiatingFlowClass: Class<out FlowLogic<*>>, 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.