Correction of Java doc Creating Actors Remotely, see #2537

This commit is contained in:
Patrik Nordwall 2012-09-21 15:08:56 +02:00
parent c0f60da8cc
commit ee65dbf184
5 changed files with 48 additions and 45 deletions

View file

@ -12,11 +12,11 @@ import akka.remote.RemoteScope
object RemoteDeploymentDocSpec {
//#sample-actor
class Echo extends Actor {
def receive = {
case x sender ! self
}
def receive = { case _ sender ! self }
}
//#sample-actor
}
@ -49,4 +49,12 @@ class RemoteDeploymentDocSpec extends AkkaSpec("""
one must be === two
}
"demonstrate sampleActor" in {
//#sample-actor
val actor = system.actorOf(Props[Echo], "sampleActor")
actor ! "Pretty slick"
//#sample-actor
}
}