Bug 752 - removed model ambiguities
[openflowjava.git] / openflow-protocol-impl / src / test / java / org / opendaylight / openflowjava / protocol / impl / deserialization / factories / OF10StatsReplyMessageFactoryTest.java
index d1f3de31a940c262054b60e7e6c85ce34877ad06..553ac79f43075dfe29578fb7ee85542ef9c98808 100644 (file)
@@ -20,7 +20,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.augments.rev131002
 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.augments.rev131002.VlanVidAction;\r
 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common.action.rev130731.Output;\r
 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common.action.rev130731.SetVlanVid;\r
-import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common.action.rev130731.actions.actions.list.Action;\r
+import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common.action.rev130731.actions.grouping.Action;\r
 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common.types.rev130731.FlowWildcardsV10;\r
 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.MultipartReplyMessage;\r
 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.multipart.reply.multipart.reply.body.MultipartReplyAggregateCase;\r
@@ -131,13 +131,13 @@ public class OF10StatsReplyMessageFactoryTest {
         Assert.assertEquals("Wrong byteCount",\r
                 new BigInteger(1, new byte[]{(byte) 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20}), \r
                 message.getFlowStats().get(0).getByteCount());\r
-        Action action1 = message.getFlowStats().get(0).getActionsList().get(0).getAction();\r
+        Action action1 = message.getFlowStats().get(0).getAction().get(0);\r
         Assert.assertEquals("Wrong action type", Output.class, action1.getType());\r
         Assert.assertEquals("Wrong action port", 1, action1.getAugmentation(PortAction.class)\r
                 .getPort().getValue().intValue());\r
         Assert.assertEquals("Wrong action port", 2, action1.getAugmentation(MaxLengthAction.class)\r
                 .getMaxLength().intValue());\r
-        Action action2 = message.getFlowStats().get(0).getActionsList().get(1).getAction();\r
+        Action action2 = message.getFlowStats().get(0).getAction().get(1);\r
         Assert.assertEquals("Wrong action type", SetVlanVid.class, action2.getType());\r
         Assert.assertEquals("Wrong action port", 3, action2.getAugmentation(VlanVidAction.class)\r
                 .getVlanVid().intValue());\r