fix up wrong includecode comments in FaultHandlingDocSpec

This commit is contained in:
Roland Kuhn 2015-01-27 16:25:13 +01:00
parent c0867e1308
commit a18c1bbafb
2 changed files with 3 additions and 7 deletions

View file

@ -18,8 +18,6 @@ object FaultHandlingDocSpec {
import akka.actor.Actor import akka.actor.Actor
//#child //#child
//#supervisor
//#supervisor
class Supervisor extends Actor { class Supervisor extends Actor {
//#strategy //#strategy
import akka.actor.OneForOneStrategy import akka.actor.OneForOneStrategy
@ -81,7 +79,6 @@ object FaultHandlingDocSpec {
def receive = Actor.emptyBehavior def receive = Actor.emptyBehavior
} }
//#supervisor
//#child //#child
class Child extends Actor { class Child extends Actor {
@ -109,10 +106,9 @@ class FaultHandlingDocSpec extends TestKit(ActorSystem("FaultHandlingDocSpec", t
override def afterAll() { override def afterAll() {
system.terminate() system.terminate()
} }
//#testkit
"A supervisor" must "apply the chosen strategy for its child" in { "A supervisor" must "apply the chosen strategy for its child" in {
//#testkit //#testkit
//#create //#create
val supervisor = system.actorOf(Props[Supervisor], "supervisor") val supervisor = system.actorOf(Props[Supervisor], "supervisor")

View file

@ -127,8 +127,8 @@ This supervisor will be used to create a child, with which we can experiment:
:include: child :include: child
The test is easier by using the utilities described in :ref:`akka-testkit`, The test is easier by using the utilities described in :ref:`akka-testkit`,
where ``AkkaSpec`` is a convenient mixture of ``TestKit with WordSpec with where ``AkkaSpec`` is a convenient mixture of
MustMatchers`` ``TestKit with WordSpec with MustMatchers``
.. includecode:: code/docs/actor/FaultHandlingDocSpec.scala .. includecode:: code/docs/actor/FaultHandlingDocSpec.scala
:include: testkit :include: testkit