corda / net.corda.testing.flows

Package net.corda.testing.flows

Extensions for External Classes

kotlin.collections.Map

kotlin.reflect.KClass

Functions

from

infix fun <T : Class<out Any>> T.from(session: <ERROR CLASS>): <ERROR CLASS><<ERROR CLASS>, T>

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

receiveAll

fun <ERROR CLASS><out <ERROR CLASS>>.receiveAll(session: <ERROR CLASS><<ERROR CLASS>, Class<out Any>>, vararg sessions: <ERROR CLASS><<ERROR CLASS>, Class<out Any>>): Map<<ERROR CLASS>, <ERROR CLASS><Any>>
fun <R : Any> <ERROR CLASS><out <ERROR CLASS>>.receiveAll(receiveType: Class<R>, session: <ERROR CLASS>, vararg sessions: <ERROR CLASS>): List<<ERROR CLASS><R>>
fun <R : Any> <ERROR CLASS><out <ERROR CLASS>>.receiveAll(session: <ERROR CLASS>, vararg sessions: <ERROR CLASS>): List<<ERROR CLASS><R>>

Suspends until a message has been received for each session in the specified sessions.

registerCordappFlowFactory

fun <P> TestStartedNode.registerCordappFlowFactory(initiatingFlowClass: KClass<out <ERROR CLASS><out <ERROR CLASS>>>, initiatedFlowVersion: Int = 1, flowFactory: (<ERROR CLASS>) -> P): <ERROR CLASS><P>

registerCoreFlowFactory

fun <T> TestStartedNode.registerCoreFlowFactory(initiatingFlowClass: Class<out <ERROR CLASS><out <ERROR CLASS>>>, initiatedFlowClass: Class<T>, flowFactory: (<ERROR CLASS>) -> T, track: Boolean): <ERROR CLASS><T>