X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=extension%2Ftest-extension%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fopenflowplugin%2Fextension%2Ftest%2FTest.java;h=04f35928379fb7660279583551b85d6f9c200029;hb=137e4d7d86e8f402f3d52fd0fa162792f9ff60eb;hp=3be3103914b392ff75081bfd5fedcd01918ffad7;hpb=fd2efa3599ec1d9ac8728d14c5c04756985443a3;p=openflowplugin.git diff --git a/extension/test-extension/src/main/java/org/opendaylight/openflowplugin/extension/test/Test.java b/extension/test-extension/src/main/java/org/opendaylight/openflowplugin/extension/test/Test.java index 3be3103914..04f3592837 100644 --- a/extension/test-extension/src/main/java/org/opendaylight/openflowplugin/extension/test/Test.java +++ b/extension/test-extension/src/main/java/org/opendaylight/openflowplugin/extension/test/Test.java @@ -142,14 +142,14 @@ public class Test implements TestService { // Wrap our Apply Action in an Instruction InstructionBuilder ib = new InstructionBuilder(); ib.setInstruction(new ApplyActionsCaseBuilder().setApplyActions(aab.build()).build()); - ib.setKey(new InstructionKey(0)); + ib.withKey(new InstructionKey(0)); ib.setOrder(0); // Put our Instruction in a list of Instructions InstructionsBuilder isb = new InstructionsBuilder(); List instructions = new ArrayList<>(); instructions.add(ib.build()); - ib.setKey(new InstructionKey(0)); + ib.withKey(new InstructionKey(0)); isb.setInstruction(instructions); return isb; } @@ -159,7 +159,7 @@ public class Test implements TestService { DecNwTtl decNwTtl = ta.build(); ActionBuilder ab = new ActionBuilder(); ab.setAction(new DecNwTtlCaseBuilder().setDecNwTtl(decNwTtl).build()); - ab.setKey(new ActionKey(actionKeyVal)); + ab.withKey(new ActionKey(actionKeyVal)); return ab; } @@ -179,7 +179,7 @@ public class Test implements TestService { // base part ActionBuilder abExt = new ActionBuilder(); - abExt.setKey(new ActionKey(actionKeyVal)); + abExt.withKey(new ActionKey(actionKeyVal)); abExt.setAction(topNxActionCaseBld.build()); return abExt; }