X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=openflowplugin-impl%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fopenflowplugin%2Fimpl%2Fprotocol%2Fserialization%2Finstructions%2FApplyActionsInstructionSerializerTest.java;h=76ea051a28b3b54abc2d96d89ea7828f8353e169;hb=HEAD;hp=d2bd7f0846bba6194d59191980a1e44c0d4b6bc9;hpb=08614b02699a03ff8604f3bf7531f0575134cf90;p=openflowplugin.git diff --git a/openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/instructions/ApplyActionsInstructionSerializerTest.java b/openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/instructions/ApplyActionsInstructionSerializerTest.java index d2bd7f0846..76ea051a28 100644 --- a/openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/instructions/ApplyActionsInstructionSerializerTest.java +++ b/openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/instructions/ApplyActionsInstructionSerializerTest.java @@ -10,7 +10,6 @@ package org.opendaylight.openflowplugin.impl.protocol.serialization.instructions import static org.junit.Assert.assertArrayEquals; import static org.junit.Assert.assertEquals; -import java.util.Collections; import org.junit.Test; import org.opendaylight.openflowjava.protocol.api.util.OxmMatchConstants; import org.opendaylight.openflowjava.protocol.impl.util.ActionConstants; @@ -25,6 +24,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.instru import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.instruction.instruction.ApplyActionsCase; import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.instruction.instruction.ApplyActionsCaseBuilder; import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.instruction.instruction.apply.actions._case.ApplyActionsBuilder; +import org.opendaylight.yangtools.yang.binding.util.BindingMap; public class ApplyActionsInstructionSerializerTest extends AbstractInstructionSerializerTest { @Test @@ -34,7 +34,7 @@ public class ApplyActionsInstructionSerializerTest extends AbstractInstructionSe final Instruction instruction = new ApplyActionsCaseBuilder() .setApplyActions(new ApplyActionsBuilder() - .setAction(Collections.singletonList(new ActionBuilder() + .setAction(BindingMap.of(new ActionBuilder() .setOrder(order) .withKey(new ActionKey(order)) .setAction(new SetNwSrcActionCaseBuilder()