Use uint types in interfacemanager tests
[genius.git] / interfacemanager / interfacemanager-impl / src / test / java / org / opendaylight / genius / interfacemanager / test / xtend / ExpectedEgressInstructionsForInterface.xtend
index 86ef6ce2f5599e57f6ac5c0d7d66f5a14e842149..1ad12e0b005119d327e48c5fbf47654d345e86f4 100644 (file)
@@ -19,6 +19,9 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.openflowplugin.^extension.n
 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflowplugin.^extension.nicira.action.rev140714.nx.action.reg.load.grouping.NxRegLoadBuilder
 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflowplugin.^extension.nicira.action.rev140714.nx.action.reg.load.grouping.nx.reg.load.DstBuilder
 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflowplugin.^extension.nicira.action.rev140714.nx.action.resubmit.grouping.NxResubmitBuilder
+import org.opendaylight.yangtools.yang.common.Uint16
+import org.opendaylight.yangtools.yang.common.Uint64
+import org.opendaylight.yangtools.yang.common.Uint8
 
 import static extension org.opendaylight.mdsal.binding.testutils.XtendBuilderExtensions.operator_doubleGreaterThan
 
@@ -38,10 +41,10 @@ class EgressInstructionsForInterfaceOutput {
                                                 dstChoice = new DstNxRegCaseBuilder >> [
                                                     nxReg = NxmNxReg6
                                                 ]
-                                                end = 31
-                                                start = 0
+                                                end = Uint16.valueOf(31)
+                                                start = Uint16.ZERO
                                             ]
-                                            value = 256bi
+                                            value = Uint64.valueOf(256)
                                         ]
                                     ]
                                     order = 0
@@ -49,7 +52,7 @@ class EgressInstructionsForInterfaceOutput {
                                 new ActionBuilder >> [
                                     action = new NxActionResubmitRpcAddGroupCaseBuilder >> [
                                         nxResubmit = new NxResubmitBuilder >> [
-                                            table = 220 as short
+                                            table = Uint8.valueOf(220)
                                         ]
                                     ]
                                     order = 1