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

akka.testkit.TestActors.scala Maven / Gradle / Ivy

The newest version!
/**
 * Copyright (C) 2009-2014 Typesafe Inc. 
 */
package akka.testkit

import akka.actor.{ Props, Actor }

/**
 * A collection of common actor patterns used in tests.
 */
object TestActors {

  /**
   * EchoActor sends back received messages (unmodified).
   */
  class EchoActor extends Actor {
    override def receive = {
      case message ⇒ sender() ! message
    }
  }

  val echoActorProps = Props[EchoActor]()

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy