Teach sal-remoterpc-connector to route actions
[controller.git] / opendaylight / md-sal / sal-remoterpc-connector / src / test / java / org / opendaylight / controller / remote / rpc / OpsBrokerTest.java
@@ -25,7 +25,7 @@ import org.opendaylight.mdsal.dom.spi.DefaultDOMRpcResult;
 import org.opendaylight.yangtools.util.concurrent.FluentFutures;
 import org.opendaylight.yangtools.yang.data.api.schema.ContainerNode;
 
 import org.opendaylight.yangtools.util.concurrent.FluentFutures;
 import org.opendaylight.yangtools.yang.data.api.schema.ContainerNode;
 
-public class RpcBrokerTest extends AbstractRpcTest {
+public class OpsBrokerTest extends AbstractOpsTest {
 
     @Test
     public void testExecuteRpc() {
 
     @Test
     public void testExecuteRpc() {
@@ -33,14 +33,13 @@ public class RpcBrokerTest extends AbstractRpcTest {
         final DOMRpcResult rpcResult = new DefaultDOMRpcResult(invokeRpcResult);
         when(domRpcService1.invokeRpc(eq(TEST_RPC_TYPE), any())).thenReturn(
             FluentFutures.immediateFluentFuture(rpcResult));
         final DOMRpcResult rpcResult = new DefaultDOMRpcResult(invokeRpcResult);
         when(domRpcService1.invokeRpc(eq(TEST_RPC_TYPE), any())).thenReturn(
             FluentFutures.immediateFluentFuture(rpcResult));
+        final ExecuteRpc executeRpc = ExecuteRpc.from(TEST_RPC_ID, null);
 
 
-        final ExecuteRpc executeMsg = ExecuteRpc.from(TEST_RPC_ID, null);
-
-        rpcInvoker1.tell(executeMsg, rpcRegistry1Probe.getRef());
+        rpcInvoker1.tell(executeRpc, rpcRegistry1Probe.getRef());
 
         final RpcResponse rpcResponse = rpcRegistry1Probe.expectMsgClass(Duration.ofSeconds(5), RpcResponse.class);
 
 
         final RpcResponse rpcResponse = rpcRegistry1Probe.expectMsgClass(Duration.ofSeconds(5), RpcResponse.class);
 
-        assertEquals(rpcResult.getResult(), rpcResponse.getResultNormalizedNode());
+        assertEquals(rpcResult.getResult(), rpcResponse.getOutput());
     }
 
     @Test
     }
 
     @Test

©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.