@Test public void modVlanPcpInstructionTest() { final L2ModificationInstruction.ModVlanPcpInstruction instruction = (L2ModificationInstruction.ModVlanPcpInstruction) Instructions.modVlanPcp((byte) 9); final ObjectNode instructionJson = instructionCodec.encode(instruction, context); assertThat(instructionJson, matchesInstruction(instruction)); }
@Override public ObjectNode encode(Instruction instruction, CodecContext context) { checkNotNull(instruction, "Instruction cannot be null"); return new EncodeInstructionCodecHelper(instruction, context).encode(); }
InstructionCodec extends JsonCodec<Instruction> { @Override public ObjectNode encode(Instruction instruction, CodecContext context) { checkNotNull(instruction, "Instruction cannot be null"); return new EncodeInstructionCodecHelper(instruction, context).encode(); } }
InstructionCodec extends JsonCodec<Instruction> { @Override public ObjectNode encode(Instruction instruction, CodecContext context) { checkNotNull(instruction, "Instruction cannot be null"); return new EncodeInstructionCodecHelper(instruction, context).encode(); }  }
InstructionCodec extends JsonCodec<Instruction> { @Override public ObjectNode encode(Instruction instruction, CodecContext context) { checkNotNull(instruction, "Instruction cannot be null"); return new EncodeInstructionCodecHelper(instruction, context).encode(); }  @Override ObjectNode encode(Instruction instruction, CodecContext context); @Override Instruction decode(ObjectNode json, CodecContext context); }
InstructionCodec extends JsonCodec<Instruction> { @Override public ObjectNode encode(Instruction instruction, CodecContext context) { checkNotNull(instruction, "Instruction cannot be null"); return new EncodeInstructionCodecHelper(instruction, context).encode(); }  @Override ObjectNode encode(Instruction instruction, CodecContext context); @Override Instruction decode(ObjectNode json, CodecContext context);  }