Migrate test to use javadsl.TestKit 23/70423/1
authorRobert Varga <robert.varga@pantheon.tech>
Fri, 6 Apr 2018 11:32:45 +0000 (13:32 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Fri, 6 Apr 2018 11:32:45 +0000 (13:32 +0200)
Forward-porting of this patch missed the need to change to new
TestKit instead of legacy JavaTestKit. Fix that.

Change-Id: Ic7bc6edae198c785ca4473eeff83cdbc516c8d2e
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/messages/ReadyLocalTransactionSerializerTest.java

index 5a585bc..16e1ab3 100644 (file)
@@ -11,7 +11,7 @@ import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertNotNull;
 
 import akka.actor.ExtendedActorSystem;
-import akka.testkit.JavaTestKit;
+import akka.testkit.javadsl.TestKit;
 import java.io.NotSerializableException;
 import java.util.List;
 import org.junit.Test;
@@ -58,7 +58,7 @@ public class ReadyLocalTransactionSerializerTest extends AbstractTest {
             final byte[] bytes = serializer.toBinary(readyMessage);
             deserialized = serializer.fromBinary(bytes, ReadyLocalTransaction.class);
         } finally {
-            JavaTestKit.shutdownActorSystem(system);
+            TestKit.shutdownActorSystem(system);
         }
 
         assertNotNull("fromBinary returned null", deserialized);

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.