Skip to content
Browse files

Enhanced the template for an akka testkit test file

  • Loading branch information...
1 parent 585b124 commit 07c9399a448dd097f40486c4a51e500b9c60dfa8 @derekwyatt committed
Showing with 5 additions and 1 deletion.
  1. +5 −1 xpt-personal/ftplugin/scala/scala.xpt.vim
View
6 xpt-personal/ftplugin/scala/scala.xpt.vim
@@ -228,14 +228,18 @@ XPT akkatest hint=Test\ file\ for\ Akka\ code
import akka.actor.ActorSystem
import akka.testkit.{TestKit, ImplicitSender}
-import org.scalatest.WordSpec
+import org.scalatest.{WordSpec, BeforeAndAfterAll}
import org.scalatest.matchers.MustMatchers
class `classname()^(_system: ActorSystem) extends TestKit(_system)
with ImplicitSender
with WordSpec
+ with BeforeAndAfterAll
with MustMatchers {
def this() = this(ActorSystem("`classname()^"))
+ override def afterAll() {
+ system.shutdown()
+ }
"`classNameFromSpec()^" should { //{1
`cursor^

0 comments on commit 07c9399

Please sign in to comment.
Something went wrong with that request. Please try again.