X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-clustering-commons%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fpersistence%2FLocalSnapshotStoreTest.java;fp=opendaylight%2Fmd-sal%2Fsal-clustering-commons%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fpersistence%2FLocalSnapshotStoreTest.java;h=e23a37a8aece97c88bc0b3644402999f1395f8c3;hp=417a9db7eaa18deab97a8ca2ec5b4c40350dfb07;hb=e9fc7e7ed2b13d274518d6a872ab67749ef4507a;hpb=cc7d70b6fa32b99e1013c3b3c26006d9798d2b95 diff --git a/opendaylight/md-sal/sal-clustering-commons/src/test/java/org/opendaylight/controller/cluster/persistence/LocalSnapshotStoreTest.java b/opendaylight/md-sal/sal-clustering-commons/src/test/java/org/opendaylight/controller/cluster/persistence/LocalSnapshotStoreTest.java index 417a9db7ea..e23a37a8ae 100644 --- a/opendaylight/md-sal/sal-clustering-commons/src/test/java/org/opendaylight/controller/cluster/persistence/LocalSnapshotStoreTest.java +++ b/opendaylight/md-sal/sal-clustering-commons/src/test/java/org/opendaylight/controller/cluster/persistence/LocalSnapshotStoreTest.java @@ -27,7 +27,7 @@ import akka.persistence.SnapshotProtocol.LoadSnapshotResult; import akka.persistence.SnapshotSelectionCriteria; import akka.persistence.serialization.Snapshot; import akka.persistence.serialization.SnapshotSerializer; -import akka.testkit.JavaTestKit; +import akka.testkit.javadsl.TestKit; import com.typesafe.config.ConfigFactory; import java.io.File; import java.io.FileOutputStream; @@ -69,7 +69,7 @@ public class LocalSnapshotStoreTest { @AfterClass public static void staticCleanup() { FileUtils.deleteQuietly(SNAPSHOT_DIR); - JavaTestKit.shutdownActorSystem(system); + TestKit.shutdownActorSystem(system); } @Before @@ -100,7 +100,7 @@ public class LocalSnapshotStoreTest { SnapshotMetadata metadata3 = new SnapshotMetadata(PERSISTENCE_ID, 1, 3000); - JavaTestKit probe = new JavaTestKit(system); + TestKit probe = new TestKit(system); snapshotStore.tell(new LoadSnapshot(PERSISTENCE_ID, SnapshotSelectionCriteria.latest(), Long.MAX_VALUE), probe.getRef()); LoadSnapshotResult result = probe.expectMsgClass(LoadSnapshotResult.class); @@ -124,7 +124,7 @@ public class LocalSnapshotStoreTest { @Test public void testDoLoadAsyncWithNoSnapshots() throws IOException { - JavaTestKit probe = new JavaTestKit(system); + TestKit probe = new TestKit(system); snapshotStore.tell(new LoadSnapshot(PERSISTENCE_ID, SnapshotSelectionCriteria.latest(), Long.MAX_VALUE), probe.getRef()); LoadSnapshotResult result = probe.expectMsgClass(LoadSnapshotResult.class); @@ -140,7 +140,7 @@ public class LocalSnapshotStoreTest { SnapshotMetadata metadata = new SnapshotMetadata(PERSISTENCE_ID, 0, 1000); - JavaTestKit probe = new JavaTestKit(system); + TestKit probe = new TestKit(system); snapshotStore.tell(new LoadSnapshot(PERSISTENCE_ID, SnapshotSelectionCriteria.latest(), Long.MAX_VALUE), probe.getRef()); LoadSnapshotResult result = probe.expectMsgClass(LoadSnapshotResult.class); @@ -156,7 +156,7 @@ public class LocalSnapshotStoreTest { public void testDoLoadAsyncWithFailure() throws Throwable { createSnapshotFile(PERSISTENCE_ID, null, 1, 2000); - JavaTestKit probe = new JavaTestKit(system); + TestKit probe = new TestKit(system); snapshotStore.tell(new SnapshotProtocol.LoadSnapshot(PERSISTENCE_ID, SnapshotSelectionCriteria.latest(), Long.MAX_VALUE), probe.getRef()); LoadSnapshotFailed failed = probe.expectMsgClass(LoadSnapshotFailed.class); @@ -174,7 +174,7 @@ public class LocalSnapshotStoreTest { SnapshotMetadata metadata = new SnapshotMetadata(PERSISTENCE_ID, 1, 1000); - JavaTestKit probe = new JavaTestKit(system); + TestKit probe = new TestKit(system); snapshotStore.tell(new LoadSnapshot(PERSISTENCE_ID, SnapshotSelectionCriteria.latest(), Long.MAX_VALUE), probe.getRef()); LoadSnapshotResult result = probe.expectMsgClass(LoadSnapshotResult.class);