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;
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();
@AfterClass
public static void teardown() {
- JavaTestKit.shutdownActorSystem(system);
+ TestKit.shutdownActorSystem(system);
}
/**
*/
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);