From b947b7208dbb8708f4f9f38fe7c30d18ff13c737 Mon Sep 17 00:00:00 2001 From: Dario Rexin Date: Fri, 26 Apr 2013 21:12:58 +0200 Subject: [PATCH] removed some deprecation warnings from akka-testkit --- akka-testkit/src/main/scala/akka/testkit/TestKit.scala | 2 +- akka-testkit/src/test/scala/akka/testkit/TestActorRefSpec.scala | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/akka-testkit/src/main/scala/akka/testkit/TestKit.scala b/akka-testkit/src/main/scala/akka/testkit/TestKit.scala index 869d0d146f..b771d8a1d5 100644 --- a/akka-testkit/src/main/scala/akka/testkit/TestKit.scala +++ b/akka-testkit/src/main/scala/akka/testkit/TestKit.scala @@ -50,7 +50,7 @@ object TestActor { val FALSE = (x: Any) ⇒ false // make creator serializable, for VerifySerializabilitySpec - def props(queue: BlockingDeque[Message]): Props = Props(new TestActor(queue)) + def props(queue: BlockingDeque[Message]): Props = Props(classOf[TestActor], queue) } class TestActor(queue: BlockingDeque[TestActor.Message]) extends Actor { diff --git a/akka-testkit/src/test/scala/akka/testkit/TestActorRefSpec.scala b/akka-testkit/src/test/scala/akka/testkit/TestActorRefSpec.scala index 1c06a63043..b1296711c2 100644 --- a/akka-testkit/src/test/scala/akka/testkit/TestActorRefSpec.scala +++ b/akka-testkit/src/test/scala/akka/testkit/TestActorRefSpec.scala @@ -143,7 +143,7 @@ class TestActorRefSpec extends AkkaSpec("disp1.type=Dispatcher") with BeforeAndA "support reply via sender" in { val serverRef = TestActorRef(Props[ReplyActor]) - val clientRef = TestActorRef(Props(new SenderActor(serverRef))) + val clientRef = TestActorRef(Props(classOf[SenderActor], serverRef)) counter = 4