SimplifyTestKit doc async sample #18804

This commit is contained in:
Richard Imaoka 2016-02-28 23:48:53 +09:00
parent 19d8da60ee
commit 6c8673f1da

View file

@ -13,12 +13,10 @@ import org.scalatest.Matchers
import org.scalatest.BeforeAndAfterAll
//#implicit-sender
class MySpec(_system: ActorSystem) extends TestKit(_system) with ImplicitSender
class MySpec() extends TestKit(ActorSystem("MySpec")) with ImplicitSender
with WordSpecLike with Matchers with BeforeAndAfterAll {
//#implicit-sender
def this() = this(ActorSystem("MySpec"))
override def afterAll {
TestKit.shutdownActorSystem(system)
}