Migrate from JavaTestKit to javadsl.TestKit
[controller.git] / opendaylight / md-sal / sal-remoterpc-connector / src / test / java / org / opendaylight / controller / remote / rpc / RpcListenerTest.java
index 37d81c7afb7859e9e18b616afdef46befad71f42..680d55da9d11bb0d97ca51bb5bb6224098ee20d1 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014, 2017 Cisco Systems, Inc. and others.  All rights reserved.
  *
  * This program and the accompanying materials are made available under the
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
@@ -8,10 +8,9 @@
 
 package org.opendaylight.controller.remote.rpc;
 
-
 import akka.actor.ActorRef;
 import akka.actor.ActorSystem;
-import akka.testkit.JavaTestKit;
+import akka.testkit.javadsl.TestKit;
 import com.typesafe.config.ConfigFactory;
 import java.net.URISyntaxException;
 import java.util.Collections;
@@ -41,16 +40,16 @@ public class RpcListenerTest {
 
     @AfterClass
     public static void teardown() {
-        JavaTestKit.shutdownActorSystem(system);
+        TestKit.shutdownActorSystem(system);
         system = null;
     }
 
     @Test
     public void testRouteAdd() throws URISyntaxException, InterruptedException {
-        new JavaTestKit(system) {
+        new TestKit(system) {
             {
                 // Test announcements
-                final JavaTestKit probeReg = new JavaTestKit(system);
+                final TestKit probeReg = new TestKit(system);
                 final ActorRef rpcRegistry = probeReg.getRef();
 
                 final RpcListener rpcListener = new RpcListener(rpcRegistry);
@@ -62,10 +61,10 @@ public class RpcListenerTest {
 
     @Test
     public void testRouteRemove() throws URISyntaxException, InterruptedException {
-        new JavaTestKit(system) {
+        new TestKit(system) {
             {
                 // Test announcements
-                final JavaTestKit probeReg = new JavaTestKit(system);
+                final TestKit probeReg = new TestKit(system);
                 final ActorRef rpcRegistry = probeReg.getRef();
 
                 final RpcListener rpcListener = new RpcListener(rpcRegistry);