@Test public void matchMetadataTest() { Criterion criterion = Criteria.matchMetadata(0xabcdL); ObjectNode result = criterionCodec.encode(criterion, context); assertThat(result, matchesCriterion(criterion)); }
@Override public ObjectNode encode(Criterion criterion, CodecContext context) { EncodeCriterionCodecHelper encoder = new EncodeCriterionCodecHelper(criterion, context); return encoder.encode(); }
CriterionCodec extends JsonCodec<Criterion> { @Override public ObjectNode encode(Criterion criterion, CodecContext context) { EncodeCriterionCodecHelper encoder = new EncodeCriterionCodecHelper(criterion, context); return encoder.encode(); } }
CriterionCodec extends JsonCodec<Criterion> { @Override public ObjectNode encode(Criterion criterion, CodecContext context) { EncodeCriterionCodecHelper encoder = new EncodeCriterionCodecHelper(criterion, context); return encoder.encode(); }  }
CriterionCodec extends JsonCodec<Criterion> { @Override public ObjectNode encode(Criterion criterion, CodecContext context) { EncodeCriterionCodecHelper encoder = new EncodeCriterionCodecHelper(criterion, context); return encoder.encode(); }  @Override ObjectNode encode(Criterion criterion, CodecContext context); @Override Criterion decode(ObjectNode json, CodecContext context); }
CriterionCodec extends JsonCodec<Criterion> { @Override public ObjectNode encode(Criterion criterion, CodecContext context) { EncodeCriterionCodecHelper encoder = new EncodeCriterionCodecHelper(criterion, context); return encoder.encode(); }  @Override ObjectNode encode(Criterion criterion, CodecContext context); @Override Criterion decode(ObjectNode json, CodecContext context);  }