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
|
||||
|
||||
//#child
|
||||
//#supervisor
|
||||
//#supervisor
|
||||
class Supervisor extends Actor {
|
||||
//#strategy
|
||||
import akka.actor.OneForOneStrategy
|
||||
|
|
@ -81,7 +79,6 @@ object FaultHandlingDocSpec {
|
|||
|
||||
def receive = Actor.emptyBehavior
|
||||
}
|
||||
//#supervisor
|
||||
|
||||
//#child
|
||||
class Child extends Actor {
|
||||
|
|
@ -109,10 +106,9 @@ class FaultHandlingDocSpec extends TestKit(ActorSystem("FaultHandlingDocSpec", t
|
|||
override def afterAll() {
|
||||
system.terminate()
|
||||
}
|
||||
//#testkit
|
||||
|
||||
"A supervisor" must "apply the chosen strategy for its child" in {
|
||||
//#testkit
|
||||
//#testkit
|
||||
|
||||
//#create
|
||||
val supervisor = system.actorOf(Props[Supervisor], "supervisor")
|
||||
|
|
|
|||
|
|
@ -127,8 +127,8 @@ This supervisor will be used to create a child, with which we can experiment:
|
|||
:include: child
|
||||
|
||||
The test is easier by using the utilities described in :ref:`akka-testkit`,
|
||||
where ``AkkaSpec`` is a convenient mixture of ``TestKit with WordSpec with
|
||||
MustMatchers``
|
||||
where ``AkkaSpec`` is a convenient mixture of
|
||||
``TestKit with WordSpec with MustMatchers``
|
||||
|
||||
.. includecode:: code/docs/actor/FaultHandlingDocSpec.scala
|
||||
:include: testkit
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue