@Test public void modOchSignalInstructionTest() { L0ModificationInstruction.ModOchSignalInstruction instruction = (L0ModificationInstruction.ModOchSignalInstruction) Instructions.modL0Lambda(Lambda.ochSignal(GridType.DWDM, ChannelSpacing.CHL_100GHZ, 4, 8)); 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);  }