X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatastore%2Factors%2FDataTreeNotificationListenerRegistrationActorTest.java;h=0ae15d6c0833684c706f61441aad4acd22b8fb4a;hp=12428e925682916eca8cfeddedf6242d0cd04887;hb=refs%2Fchanges%2F22%2F65622%2F11;hpb=cc7d70b6fa32b99e1013c3b3c26006d9798d2b95 diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/actors/DataTreeNotificationListenerRegistrationActorTest.java b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/actors/DataTreeNotificationListenerRegistrationActorTest.java index 12428e9256..0ae15d6c08 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/actors/DataTreeNotificationListenerRegistrationActorTest.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/actors/DataTreeNotificationListenerRegistrationActorTest.java @@ -10,7 +10,7 @@ package org.opendaylight.controller.cluster.datastore.actors; import static org.mockito.Mockito.timeout; import akka.actor.ActorRef; -import akka.testkit.JavaTestKit; +import akka.testkit.javadsl.TestKit; import org.junit.Before; import org.junit.Test; import org.mockito.Mock; @@ -36,7 +36,7 @@ public class DataTreeNotificationListenerRegistrationActorTest extends AbstractA @Test public void testOnReceiveCloseListenerRegistrationAfterSetRegistration() throws Exception { - new JavaTestKit(getSystem()) { + new TestKit(getSystem()) { { final ActorRef subject = getSystem().actorOf(DataTreeNotificationListenerRegistrationActor.props(), "testOnReceiveCloseListenerRegistrationAfterSetRegistration"); @@ -58,7 +58,7 @@ public class DataTreeNotificationListenerRegistrationActorTest extends AbstractA @Test public void testOnReceiveCloseListenerRegistrationBeforeSetRegistration() throws Exception { - new JavaTestKit(getSystem()) { + new TestKit(getSystem()) { { final ActorRef subject = getSystem().actorOf(DataTreeNotificationListenerRegistrationActor.props(), "testOnReceiveSetRegistrationAfterPriorClose"); @@ -80,7 +80,7 @@ public class DataTreeNotificationListenerRegistrationActorTest extends AbstractA @Test public void testOnReceiveSetRegistrationAfterPriorClose() throws Exception { - new JavaTestKit(getSystem()) { + new TestKit(getSystem()) { { DataTreeNotificationListenerRegistrationActor.killDelay = 1000; final ListenerRegistration mockListenerReg2 = Mockito.mock(ListenerRegistration.class);