/*
- * Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved.
+ * Copyright (c) 2014, 2017 Cisco Systems, Inc. and others. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
package org.opendaylight.controller.remote.rpc;
-
import akka.actor.ActorRef;
import akka.actor.ActorSystem;
-import akka.testkit.JavaTestKit;
+import akka.testkit.javadsl.TestKit;
import com.typesafe.config.ConfigFactory;
import java.net.URISyntaxException;
import java.util.Collections;
@AfterClass
public static void teardown() {
- JavaTestKit.shutdownActorSystem(system);
+ TestKit.shutdownActorSystem(system);
system = null;
}
@Test
public void testRouteAdd() throws URISyntaxException, InterruptedException {
- new JavaTestKit(system) {
+ new TestKit(system) {
{
// Test announcements
- final JavaTestKit probeReg = new JavaTestKit(system);
+ final TestKit probeReg = new TestKit(system);
final ActorRef rpcRegistry = probeReg.getRef();
final RpcListener rpcListener = new RpcListener(rpcRegistry);
@Test
public void testRouteRemove() throws URISyntaxException, InterruptedException {
- new JavaTestKit(system) {
+ new TestKit(system) {
{
// Test announcements
- final JavaTestKit probeReg = new JavaTestKit(system);
+ final TestKit probeReg = new TestKit(system);
final ActorRef rpcRegistry = probeReg.getRef();
final RpcListener rpcListener = new RpcListener(rpcRegistry);