=doc #16910 Fix include sections in fault tolerance docs
* and don't show AkkaSpec in doc code (cherry picked from commit 23be60395cdea846ef168960cd05e88c6bd29556) Conflicts: akka-docs/rst/scala/code/docs/actor/FaultHandlingDocSpec.scala akka-docs/rst/scala/fault-tolerance.rst
This commit is contained in:
parent
83854f87c9
commit
ef387af2fc
3 changed files with 18 additions and 14 deletions
|
|
@ -4,12 +4,13 @@
|
|||
package docs.actor
|
||||
|
||||
import language.postfixOps
|
||||
import akka.actor.{ ActorSystem, ActorRef, Props, Terminated }
|
||||
import FaultHandlingDocSpec._
|
||||
|
||||
//#testkit
|
||||
import akka.testkit.{ TestKit, ImplicitSender, EventFilter }
|
||||
import akka.actor.{ ActorRef, Props, ActorSystem, Terminated }
|
||||
import org.scalatest._
|
||||
import com.typesafe.config.{ Config, ConfigFactory }
|
||||
import org.scalatest.{ FlatSpecLike, Matchers, BeforeAndAfterAll }
|
||||
import akka.testkit.{ TestActors, TestKit, ImplicitSender, EventFilter }
|
||||
|
||||
//#testkit
|
||||
object FaultHandlingDocSpec {
|
||||
|
|
@ -97,14 +98,20 @@ object FaultHandlingDocSpec {
|
|||
}
|
||||
""")
|
||||
}
|
||||
|
||||
import FaultHandlingDocSpec._
|
||||
//#testkit
|
||||
class FaultHandlingDocSpec extends TestKit(ActorSystem("FaultHandlingDocSpec", testConf))
|
||||
with FlatSpecLike with BeforeAndAfterAll with ImplicitSender {
|
||||
class FaultHandlingDocSpec(_system: ActorSystem) extends TestKit(_system)
|
||||
with ImplicitSender with FlatSpecLike with Matchers with BeforeAndAfterAll {
|
||||
|
||||
override def afterAll() {
|
||||
system.terminate()
|
||||
def this() = this(ActorSystem("FaultHandlingDocSpec",
|
||||
ConfigFactory.parseString("""
|
||||
akka {
|
||||
loggers = ["akka.testkit.TestEventListener"]
|
||||
loglevel = "WARNING"
|
||||
}
|
||||
""")))
|
||||
|
||||
override def afterAll {
|
||||
TestKit.shutdownActorSystem(system)
|
||||
}
|
||||
|
||||
"A supervisor" must "apply the chosen strategy for its child" in {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue