corda / net.corda.testing.flows

Package net.corda.testing.flows

Extensions for External Classes

kotlin.collections.Map

kotlin.reflect.KClass

net.corda.core.flows.FlowLogic

Functions

from

infix fun <T : Class<out Any>> T.from(session: FlowSession): Pair<FlowSession, T>

Creates a [Pair(session, Class)] from this Class.

registerCordappFlowFactory

fun <P : FlowLogic<*>> TestStartedNode.registerCordappFlowFactory(initiatingFlowClass: KClass<out FlowLogic<*>>, initiatedFlowVersion: Int = 1, flowFactory: (FlowSession) -> P): CordaFuture<P>

registerCoreFlowFactory

fun <T : FlowLogic<*>> TestStartedNode.registerCoreFlowFactory(initiatingFlowClass: Class<out FlowLogic<*>>, initiatedFlowClass: Class<T>, flowFactory: (FlowSession) -> T, track: Boolean): Observable<T>