Teach sal-remoterpc-connector to route actions
[controller.git] / opendaylight / md-sal / sal-remoterpc-connector / src / test / java / org / opendaylight / controller / remote / rpc / messages / ExecuteOpsTest.java
@@ -1,5 +1,5 @@
 /*
 /*
- * Copyright (c) 2016 2015 Brocade Communications Systems, Inc. and others.  All rights reserved.
+ * Copyright (c) 2019 Nordix Foundation.  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,
  *
  * This program and the accompanying materials are made available under the
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
@@ -11,23 +11,19 @@ import static org.junit.Assert.assertEquals;
 
 import org.apache.commons.lang.SerializationUtils;
 import org.junit.Test;
 
 import org.apache.commons.lang.SerializationUtils;
 import org.junit.Test;
-import org.opendaylight.controller.remote.rpc.AbstractRpcTest;
+import org.opendaylight.controller.remote.rpc.AbstractOpsTest;
 
 
-/**
- * Unit tests for ExecuteRpc.
- *
- * @author Thomas Pantelis
- */
-public class ExecuteRpcTest {
+public class ExecuteOpsTest {
 
     @Test
 
     @Test
-    public void testSerialization() {
-        ExecuteRpc expected = ExecuteRpc.from(AbstractRpcTest.TEST_RPC_ID,
-                AbstractRpcTest.makeRPCInput("serialization-test"));
+    public void testOpsSerialization() {
+        ExecuteRpc expected = ExecuteRpc.from(AbstractOpsTest.TEST_RPC_ID,
+                AbstractOpsTest.makeRPCInput("serialization-test"));
 
         ExecuteRpc actual = (ExecuteRpc) SerializationUtils.clone(expected);
 
 
         ExecuteRpc actual = (ExecuteRpc) SerializationUtils.clone(expected);
 
-        assertEquals("getRpc", expected.getRpc(), actual.getRpc());
-        assertEquals("getInputNormalizedNode", expected.getInputNormalizedNode(), actual.getInputNormalizedNode());
+        assertEquals("getName", expected.getType(), actual.getType());
+        assertEquals("getInputNormalizedNode", expected.getInput(), actual.getInput());
+        assertEquals("getPath", expected.getType(), actual.getType());
     }
 }
     }
 }

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