Class StreamTestKit$
java.lang.Object
org.apache.pekko.stream.testkit.scaladsl.StreamTestKit$
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StreamTestKit$Static reference to the singleton instance of this Scala object. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> TassertAllStagesStopped(scala.Function0<T> block, Materializer materializer) Asserts that after the given code block is ran, no stages are left over that were created by the given materializer with an overridden duration that ignoresstream.testkit.all-stages-stopped-timeout.<T> TassertAllStagesStopped(scala.Function0<T> block, scala.concurrent.duration.FiniteDuration overrideTimeout, Materializer materializer) Asserts that after the given code block is ran, no stages are left over that were created by the given materializer.
-
Field Details
-
MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Constructor Details
-
StreamTestKit$
public StreamTestKit$()
-
-
Method Details
-
assertAllStagesStopped
public <T> T assertAllStagesStopped(scala.Function0<T> block, scala.concurrent.duration.FiniteDuration overrideTimeout, Materializer materializer) Asserts that after the given code block is ran, no stages are left over that were created by the given materializer.This assertion is useful to check that all of the stages have terminated successfully.
-
assertAllStagesStopped
Asserts that after the given code block is ran, no stages are left over that were created by the given materializer with an overridden duration that ignoresstream.testkit.all-stages-stopped-timeout.This assertion is useful to check that all of the stages have terminated successfully.
-