=pro #3759 Changed to using non-deprecated ScalaTest Matchers
This commit is contained in:
parent
b8c7d7badd
commit
003609c9c5
246 changed files with 2822 additions and 2822 deletions
|
|
@ -9,7 +9,7 @@ import akka.actor.Actor
|
|||
import akka.actor.Props
|
||||
import akka.testkit.TestKit
|
||||
import org.scalatest.WordSpecLike
|
||||
import org.scalatest.matchers.MustMatchers
|
||||
import org.scalatest.Matchers
|
||||
import org.scalatest.BeforeAndAfterAll
|
||||
import akka.testkit.ImplicitSender
|
||||
|
||||
|
|
@ -23,7 +23,7 @@ object MySpec {
|
|||
|
||||
//#implicit-sender
|
||||
class MySpec(_system: ActorSystem) extends TestKit(_system) with ImplicitSender
|
||||
with WordSpecLike with MustMatchers with BeforeAndAfterAll {
|
||||
with WordSpecLike with Matchers with BeforeAndAfterAll {
|
||||
//#implicit-sender
|
||||
|
||||
def this() = this(ActorSystem("MySpec"))
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ import scala.util.Random
|
|||
|
||||
import org.scalatest.BeforeAndAfterAll
|
||||
import org.scalatest.WordSpecLike
|
||||
import org.scalatest.matchers.ShouldMatchers
|
||||
import org.scalatest.Matchers
|
||||
|
||||
import com.typesafe.config.ConfigFactory
|
||||
|
||||
|
|
@ -31,7 +31,7 @@ class TestKitUsageSpec
|
|||
extends TestKit(ActorSystem("TestKitUsageSpec",
|
||||
ConfigFactory.parseString(TestKitUsageSpec.config)))
|
||||
with DefaultTimeout with ImplicitSender
|
||||
with WordSpecLike with ShouldMatchers with BeforeAndAfterAll {
|
||||
with WordSpecLike with Matchers with BeforeAndAfterAll {
|
||||
import TestKitUsageSpec._
|
||||
|
||||
val echoRef = system.actorOf(Props[EchoActor])
|
||||
|
|
|
|||
|
|
@ -131,7 +131,7 @@ class TestkitDocSpec extends AkkaSpec with DefaultTimeout with ImplicitSender {
|
|||
// hypothetical message stimulating a '42' answer
|
||||
val future = actorRef ? Say42
|
||||
val Success(result: Int) = future.value.get
|
||||
result must be(42)
|
||||
result should be(42)
|
||||
//#test-behavior
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue