public class FlowTestsUtilsKt
@NotNull public static <R> R from(@NotNull java.util.Map<net.corda.core.flows.FlowSession,? extends net.corda.core.utilities.UntrustworthyData<? extends java.lang.Object>> $this$from, @NotNull net.corda.core.flows.FlowSession session)
Extracts data from a [MapFlowSession,UntrustworthyData] without performing checks and casting to R.
@NotNull public static <T extends Class<? extends java.lang.Object>> kotlin.Pair<net.corda.core.flows.FlowSession,T> from(@NotNull T $this$from, @NotNull net.corda.core.flows.FlowSession session)
@NotNull public static <T> kotlin.Pair<net.corda.core.flows.FlowSession,java.lang.Class> from(@NotNull kotlin.reflect.KClass<T> $this$from, @NotNull net.corda.core.flows.FlowSession session)
@Suspendable @NotNull public static java.util.Map<net.corda.core.flows.FlowSession,net.corda.core.utilities.UntrustworthyData> receiveAll(@NotNull net.corda.core.flows.FlowLogic<?> $this$receiveAll, @NotNull kotlin.Pair<? extends net.corda.core.flows.FlowSession,? extends java.lang.Class<? extends java.lang.Object>> session, @NotNull kotlin.Pair... sessions)
Suspends until a message has been received for each session in the specified sessions
.
Consider receiveAllreceiveType:Class,sessions:List:ListUntrustworthyData when the same type is expected from all sessions.
Remember that when receiving data from other parties the data should not be trusted until it's been thoroughly verified for consistency and that all expectations are satisfied, as a malicious peer may send you subtly corrupted data in order to exploit your code.
@Suspendable @NotNull public static <R> java.util.List<net.corda.core.utilities.UntrustworthyData> receiveAll(@NotNull net.corda.core.flows.FlowLogic<?> $this$receiveAll, @NotNull java.lang.Class<R> receiveType, @NotNull net.corda.core.flows.FlowSession session, @NotNull net.corda.core.flows.FlowSession... sessions)
Suspends until a message has been received for each session in the specified sessions
.
Consider sessions:MapFlowSession,Class:MapFlowSession,UntrustworthyData when sessions are expected to receive different types.
Remember that when receiving data from other parties the data should not be trusted until it's been thoroughly verified for consistency and that all expectations are satisfied, as a malicious peer may send you subtly corrupted data in order to exploit your code.
@NotNull public static <T extends FlowLogic<?>> rx.Observable<T> registerCoreFlowFactory(@NotNull net.corda.testing.node.internal.TestStartedNode $this$registerCoreFlowFactory, @NotNull java.lang.Class<? extends net.corda.core.flows.FlowLogic<?>> initiatingFlowClass, @NotNull java.lang.Class<T> initiatedFlowClass, @NotNull kotlin.jvm.functions.Function1<? super net.corda.core.flows.FlowSession,? extends T> flowFactory, boolean track)
public static void waitForAllFlowsToComplete(@NotNull NodeHandle nodeHandle, int maxIterations, long iterationDelay)