corda / net.corda.testing.core / genericExpectEvents

genericExpectEvents

fun <S, E : Any> S.genericExpectEvents(isStrict: Boolean = true, stream: S.((E) -> Unit) -> Unit, expectCompose: () -> ExpectCompose<E>): Unit

Run the specified DSL against the generic event Stream

Parameters

isStrict - If false non-matched events are disregarded (so the DSL will only check a subsequence of events).

stream - A function that extracts events from the stream.

expectCompose - The DSL we expect to match against the stream of events.