Update MRI projects for Aluminium
[openflowplugin.git] / openflowplugin-impl / src / test / java / org / opendaylight / openflowplugin / impl / protocol / serialization / messages / FlowMessageSerializerTest.java
index 04fccd144786e56764c745f983be4d110979913c..cf9a024d8c6a1940b712bd2efb28404ab1fd4072 100644 (file)
@@ -92,12 +92,12 @@ public class FlowMessageSerializerTest extends AbstractSerializerTest {
             .setInstruction(Arrays.asList(
                     new InstructionBuilder()
                             .setOrder(0)
-                            .setKey(new InstructionKey(0))
+                            .withKey(new InstructionKey(0))
                             .setInstruction(new ApplyActionsCaseBuilder()
                                     .setApplyActions(new ApplyActionsBuilder()
                                             .setAction(Collections.singletonList(new ActionBuilder()
                                                     .setOrder(0)
-                                                    .setKey(new ActionKey(0))
+                                                    .withKey(new ActionKey(0))
                                                     .setAction(new SetVlanIdActionCaseBuilder()
                                                             .setSetVlanIdAction(new SetVlanIdActionBuilder()
                                                                     .setVlanId(new VlanId(VLAN_ID))
@@ -109,12 +109,12 @@ public class FlowMessageSerializerTest extends AbstractSerializerTest {
                             .build(),
                     new InstructionBuilder()
                             .setOrder(2)
-                            .setKey(new InstructionKey(2))
+                            .withKey(new InstructionKey(2))
                             .setInstruction(new ApplyActionsCaseBuilder()
                                     .setApplyActions(new ApplyActionsBuilder()
                                             .setAction(Collections.singletonList(new ActionBuilder()
-                                                    .setOrder(0)
-                                                    .setKey(new ActionKey(0))
+                                                    .setOrder(1)
+                                                    .withKey(new ActionKey(1))
                                                     .setAction(new SetTpDstActionCaseBuilder()
                                                             .setSetTpDstAction(new SetTpDstActionBuilder()
                                                                     .setIpProtocol(IP_PROTOCOL)
@@ -127,12 +127,12 @@ public class FlowMessageSerializerTest extends AbstractSerializerTest {
                             .build(),
                     new InstructionBuilder()
                             .setOrder(1)
-                            .setKey(new InstructionKey(1))
+                            .withKey(new InstructionKey(1))
                             .setInstruction(new ApplyActionsCaseBuilder()
                                     .setApplyActions(new ApplyActionsBuilder()
                                             .setAction(Collections.singletonList(new ActionBuilder()
-                                                    .setOrder(0)
-                                                    .setKey(new ActionKey(0))
+                                                    .setOrder(2)
+                                                    .withKey(new ActionKey(2))
                                                     .setAction(new SetTpSrcActionCaseBuilder()
                                                             .setSetTpSrcAction(new SetTpSrcActionBuilder()
                                                                     .setIpProtocol(IP_PROTOCOL)
@@ -184,7 +184,7 @@ public class FlowMessageSerializerTest extends AbstractSerializerTest {
     }
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final ByteBuf out = UnpooledByteBufAllocator.DEFAULT.buffer();
         serializer.serialize(MESSAGE, out);