
dev.chopsticks.testkit.AkkaTestKitAutoShutDown.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of chopsticks-testkit_2.13 Show documentation
Show all versions of chopsticks-testkit_2.13 Show documentation
Essential Scala libraries for everyday use
package dev.chopsticks.testkit
import akka.testkit.TestKit
import org.scalatest.{BeforeAndAfterAll, Suite}
trait AkkaTestKitAutoShutDown extends BeforeAndAfterAll {
this: AkkaTestKit with Suite =>
override val invokeBeforeAllAndAfterAllEvenIfNoTestsAreExpected = true
override protected def afterAll(): Unit = {
super.afterAll()
TestKit.shutdownActorSystem(system, verifySystemShutdown = true)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy