SimplifyTestKit doc async sample #18804
This commit is contained in:
parent
19d8da60ee
commit
6c8673f1da
1 changed files with 1 additions and 3 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue