corda / net.corda.testing.core / replicate

replicate

inline fun <E> replicate(number: Int, expectation: (Int) -> ExpectCompose<E>): ExpectCompose<E>

Tests that N events of the same type arrive

Parameters

number - The number of events expected.

expectation - The piece of DSL to run on each event, with the index of the event passed in.