Test Started Node
interface TestStartedNode
Properties
Functions
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.
Link copied to clipboard
Attach a MessagingServiceSpy to the InternalMockNetwork.MockNode allowing interception and modification of messages.