Class StreamTestKit

java.lang.Object
org.apache.pekko.stream.testkit.javadsl.StreamTestKit

public class StreamTestKit extends Object
  • Constructor Details

    • StreamTestKit

      public StreamTestKit()
  • Method Details

    • assertAllStagesStopped

      public static void assertAllStagesStopped(Materializer mat)
      Assert that there are no stages running under a given materializer. Usually this assertion is run after a test-case to check that all of the stages have terminated successfully.
    • assertAllStagesStopped

      public static void assertAllStagesStopped(Materializer mat, Duration overrideTimeout)
      Assert that there are no stages running under a given materializer. Usually this assertion is run after a test-case to check that all of the stages have terminated successfully with an overridden duration that ignores stream.testkit.all-stages-stopped-timeout.
    • assertAllStagesStopped

      public static void assertAllStagesStopped(ClassicActorSystemProvider system)
      Assert that there are no stages running under a given system's materializer. Usually this assertion is run after a test-case to check that all of the stages have terminated successfully.