Fix sal-remoterpc-connector checkstyle
[controller.git] / opendaylight / md-sal / sal-remoterpc-connector / src / test / java / org / opendaylight / controller / remote / rpc / registry / gossip / BucketStoreTest.java
index 4898b27ec9ec0e97341caf68131487ce5b0276b6..fc364015986085d7351a8ebe9a58d186af1da3d3 100644 (file)
@@ -11,8 +11,8 @@ import akka.actor.ActorRef;
 import akka.actor.ActorSystem;
 import akka.actor.Address;
 import akka.actor.Props;
-import akka.testkit.JavaTestKit;
 import akka.testkit.TestActorRef;
+import akka.testkit.javadsl.TestKit;
 import com.google.common.collect.ImmutableMap;
 import com.typesafe.config.ConfigFactory;
 import java.util.HashMap;
@@ -22,18 +22,16 @@ import org.junit.AfterClass;
 import org.junit.Assert;
 import org.junit.BeforeClass;
 import org.junit.Test;
-import org.opendaylight.controller.remote.rpc.RemoteRpcProviderConfig;
+import org.opendaylight.controller.remote.rpc.RemoteOpsProviderConfig;
 import org.opendaylight.controller.remote.rpc.TerminationMonitor;
 
 public class BucketStoreTest {
-
     /**
      * Dummy class to eliminate rawtype warnings.
      *
      * @author gwu
-     *
      */
-    private static class T implements BucketData<T> {
+    private static final class T implements BucketData<T> {
         @Override
         public Optional<ActorRef> getWatchActor() {
             return Optional.empty();
@@ -50,7 +48,7 @@ public class BucketStoreTest {
 
     @AfterClass
     public static void teardown() {
-        JavaTestKit.shutdownActorSystem(system);
+        TestKit.shutdownActorSystem(system);
     }
 
     /**
@@ -140,13 +138,13 @@ public class BucketStoreTest {
      */
     private static BucketStoreActor<T> createStore() {
         final Props props = Props.create(TestingBucketStoreActor.class,
-                new RemoteRpcProviderConfig(system.settings().config()), "testing-store",new T());
+                new RemoteOpsProviderConfig(system.settings().config()), "testing-store",new T());
         return TestActorRef.<BucketStoreActor<T>>create(system, props, "testStore").underlyingActor();
     }
 
     private static final class TestingBucketStoreActor extends BucketStoreActor<T> {
 
-        protected TestingBucketStoreActor(final RemoteRpcProviderConfig config,
+        protected TestingBucketStoreActor(final RemoteOpsProviderConfig config,
                                           final String persistenceId,
                                           final T initialData) {
             super(config, persistenceId, initialData);