StreamTestKit

org.apache.pekko.stream.testkit.scaladsl.StreamTestKit
object StreamTestKit

Attributes

Source
StreamTestKit.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def assertAllStagesStopped[T](block: => T, overrideTimeout: FiniteDuration)(implicit materializer: Materializer): T

Asserts that after the given code block is ran, no stages are left over that were created by the given 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.

Attributes

Source
StreamTestKit.scala
def assertAllStagesStopped[T](block: => T)(implicit materializer: Materializer): T

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 ignores stream.testkit.all-stages-stopped-timeout.

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 ignores stream.testkit.all-stages-stopped-timeout.

This assertion is useful to check that all of the stages have terminated successfully.

Attributes

Source
StreamTestKit.scala