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]()
}