X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-remoterpc-connector%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fremote%2Frpc%2Fregistry%2Fmbeans%2FRemoteRpcRegistryMXBeanImplTest.java;h=8b23154232e59613301ff03eb76393816aa34bbe;hp=b48d40bac81a2e629911ca3aee1b26f8969c0a9f;hb=refs%2Fchanges%2F22%2F65622%2F11;hpb=cc7d70b6fa32b99e1013c3b3c26006d9798d2b95 diff --git a/opendaylight/md-sal/sal-remoterpc-connector/src/test/java/org/opendaylight/controller/remote/rpc/registry/mbeans/RemoteRpcRegistryMXBeanImplTest.java b/opendaylight/md-sal/sal-remoterpc-connector/src/test/java/org/opendaylight/controller/remote/rpc/registry/mbeans/RemoteRpcRegistryMXBeanImplTest.java index b48d40bac8..8b23154232 100644 --- a/opendaylight/md-sal/sal-remoterpc-connector/src/test/java/org/opendaylight/controller/remote/rpc/registry/mbeans/RemoteRpcRegistryMXBeanImplTest.java +++ b/opendaylight/md-sal/sal-remoterpc-connector/src/test/java/org/opendaylight/controller/remote/rpc/registry/mbeans/RemoteRpcRegistryMXBeanImplTest.java @@ -10,8 +10,8 @@ package org.opendaylight.controller.remote.rpc.registry.mbeans; import akka.actor.ActorRef; import akka.actor.ActorSystem; import akka.actor.Props; -import akka.testkit.JavaTestKit; import akka.testkit.TestActorRef; +import akka.testkit.javadsl.TestKit; import com.google.common.collect.Lists; import com.google.common.util.concurrent.Uninterruptibles; import java.util.Collections; @@ -53,9 +53,9 @@ public class RemoteRpcRegistryMXBeanImplTest { buckets = Lists.newArrayList(emptyRpcIdentifier, localRpcIdentifier); final RemoteRpcProviderConfig config = new RemoteRpcProviderConfig.Builder("system").build(); - final JavaTestKit invoker = new JavaTestKit(system); - final JavaTestKit registrar = new JavaTestKit(system); - final JavaTestKit supervisor = new JavaTestKit(system); + final TestKit invoker = new TestKit(system); + final TestKit registrar = new TestKit(system); + final TestKit supervisor = new TestKit(system); final Props props = RpcRegistry.props(config, invoker.getRef(), registrar.getRef()); testActor = new TestActorRef<>(system, props, supervisor.getRef(), "testActor"); final RpcRegistry rpcRegistry = testActor.underlyingActor(); @@ -66,7 +66,7 @@ public class RemoteRpcRegistryMXBeanImplTest { @After public void tearDown() throws Exception { - JavaTestKit.shutdownActorSystem(system, null, Boolean.TRUE); + TestKit.shutdownActorSystem(system, Boolean.TRUE); } @Test @@ -159,4 +159,4 @@ public class RemoteRpcRegistryMXBeanImplTest { Assert.assertTrue(bucketVersions.contains(testActor.provider().getDefaultAddress().toString())); } -} \ No newline at end of file +}