You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

AkkaSpec.scala 435B

12345678910111213141516171819
  1. package de.codingchallenge
  2. import akka.actor.ActorSystem
  3. import akka.stream.ActorMaterializer
  4. import org.scalatest.BeforeAndAfterAll
  5. trait AkkaSpec extends BeforeAndAfterAll{ self: BaseSpec =>
  6. implicit val system = ActorSystem("test")
  7. implicit val dispatcher = system.dispatcher
  8. implicit val materializer = ActorMaterializer()
  9. override protected def afterAll(): Unit = {
  10. super.afterAll()
  11. system.terminate()
  12. }
  13. }