fix up wrong includecode comments in FaultHandlingDocSpec
This commit is contained in:
parent
c0867e1308
commit
a18c1bbafb
2 changed files with 3 additions and 7 deletions
|
|
@ -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,7 +106,6 @@ 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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue