import akka.actor.ActorRef;
import akka.actor.ActorSystem;
-import akka.testkit.JavaTestKit;
+import akka.testkit.javadsl.TestKit;
import java.net.URI;
import java.util.Collection;
import org.junit.AfterClass;
import org.opendaylight.controller.md.sal.dom.api.DOMRpcIdentifier;
import org.opendaylight.controller.md.sal.dom.api.DOMRpcResult;
import org.opendaylight.controller.md.sal.dom.api.DOMRpcService;
-import org.opendaylight.controller.sal.core.api.Broker;
import org.opendaylight.yangtools.yang.common.QName;
import org.opendaylight.yangtools.yang.common.RpcError;
import org.opendaylight.yangtools.yang.common.RpcError.ErrorSeverity;
static final QName TEST_RPC_INPUT = QName.create(TEST_NS, TEST_REV, "input");
static final QName TEST_RPC_INPUT_DATA = QName.create(TEST_NS, TEST_REV, "input-data");
static final QName TEST_RPC_OUTPUT = QName.create(TEST_NS, TEST_REV, "output");
- static final QName TEST_RPC_OUTPUT_DATA = new QName(TEST_URI, "output-data");
+ static final QName TEST_RPC_OUTPUT_DATA = QName.create(TEST_URI, "output-data");
static final SchemaPath TEST_RPC_TYPE = SchemaPath.create(true, TEST_RPC);
static RemoteRpcProviderConfig config2;
protected ActorRef rpcInvoker1;
- protected JavaTestKit rpcRegistry1Probe;
+ protected TestKit rpcRegistry1Probe;
protected ActorRef rpcInvoker2;
- protected JavaTestKit rpcRegistry2Probe;
- protected Broker.ProviderSession brokerSession;
+ protected TestKit rpcRegistry2Probe;
protected SchemaContext schemaContext;
protected RemoteRpcImplementation remoteRpcImpl1;
protected RemoteRpcImplementation remoteRpcImpl2;
@AfterClass
public static void teardown() {
- JavaTestKit.shutdownActorSystem(node1);
- JavaTestKit.shutdownActorSystem(node2);
+ TestKit.shutdownActorSystem(node1);
+ TestKit.shutdownActorSystem(node2);
node1 = null;
node2 = null;
}
MockitoAnnotations.initMocks(this);
- rpcRegistry1Probe = new JavaTestKit(node1);
+ rpcRegistry1Probe = new TestKit(node1);
rpcInvoker1 = node1.actorOf(RpcInvoker.props(domRpcService1));
- rpcRegistry2Probe = new JavaTestKit(node2);
+ rpcRegistry2Probe = new TestKit(node2);
rpcInvoker2 = node2.actorOf(RpcInvoker.props(domRpcService2));
remoteRpcImpl1 = new RemoteRpcImplementation(rpcInvoker2, config1);
remoteRpcImpl2 = new RemoteRpcImplementation(rpcInvoker1, config2);