removed deprecation warnings from akka-remote-tests

This commit is contained in:
Dario Rexin 2013-04-26 20:54:33 +02:00
parent 4bdfb07653
commit cfb1dfa745
2 changed files with 2 additions and 2 deletions

View file

@ -523,7 +523,7 @@ class BarrierSpec extends AkkaSpec(BarrierSpec.config) with ImplicitSender {
private def withController(participants: Int)(f: (ActorRef) Unit): Unit = {
system.actorOf(Props(new Actor {
val controller = context.actorOf(Props(new Controller(participants, new InetSocketAddress(InetAddress.getLocalHost, 0))))
val controller = context.actorOf(Props(classOf[Controller], participants, new InetSocketAddress(InetAddress.getLocalHost, 0)))
controller ! GetSockAddr
override def supervisorStrategy = OneForOneStrategy() {
case x testActor ! Failed(controller, x); SupervisorStrategy.Restart

View file

@ -27,7 +27,7 @@ class ControllerSpec extends AkkaSpec(ControllerSpec.config) with ImplicitSender
"A Controller" must {
"publish its nodes" in {
val c = system.actorOf(Props(new Controller(1, new InetSocketAddress(InetAddress.getLocalHost, 0))))
val c = system.actorOf(Props(classOf[Controller], 1, new InetSocketAddress(InetAddress.getLocalHost, 0)))
c ! NodeInfo(A, AddressFromURIString("akka://sys"), testActor)
expectMsg(ToClient(Done))
c ! NodeInfo(B, AddressFromURIString("akka://sys"), testActor)