All Downloads are FREE. Search and download functionalities are using the official Maven repository.

akka.stream.testkit.javadsl.StreamTestKit.scala Maven / Gradle / Ivy

The newest version!
/*
 * Copyright (C) 2018-2020 Lightbend Inc. 
 */

package akka.stream.testkit.javadsl

import akka.stream.Materializer
import akka.stream.impl.PhasedFusingActorMaterializer
import akka.stream.testkit.scaladsl

object StreamTestKit {

  /**
   * 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.
   */
  def assertAllStagesStopped(mat: Materializer): Unit =
    mat match {
      case impl: PhasedFusingActorMaterializer =>
        scaladsl.StreamTestKit.assertNoChildren(impl.system, impl.supervisor)
      case _ =>
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy