@Test public void amplificationRecordSkipIssuesWithIdTest() { String expected = "{\"id\":\"777\"," + "\"amplificationItems\":[{\"name\":\"n\"," + "\"identity\":3," + "\"appliedScientificName\":" + "\"sn\"," + "\"matchType\":\"mt\"," + "\"bitScore\":1," + "\"expectValue\":2," + "\"querySequence\":\"qs\"," + "\"subjectSequence\":" + "\"ss\"," + "\"qstart\":5," + "\"qend\":4," + "\"sstart\":8," + "\"send\":6," + "\"distanceToBestMatch\":\"dm\"," + "\"sequenceLength\":7}]}"; AmplificationRecord record = AmplificationRecord.newBuilder() .setId("777") .setAmplificationItems( Arrays.asList( Amplification.newBuilder() .setBlastResult( BlastResult.newBuilder() .setAppliedScientificName("sn") .setBitScore(1) .setDistanceToBestMatch("dm") .setExpectValue(2) .setIdentity(3) .setMatchType("mt") .setName("n") .setQend(4) .setQstart(5) .setQuerySequence("qs") .setSend(6) .setSequenceLength(7) .setSstart(8) .setSubjectSequence("ss") .build()) .build(), Amplification.newBuilder().build())) .build(); String result = GbifJsonConverter.toStringPartialJson(record); assertEquals(expected, result); assertTrue(JsonValidationUtils.isValid(result)); }
public static String toStringPartialJson(SpecificRecordBase... records) { return toPartialJson(records).toString(); }
GbifJsonConverter { public static String toStringPartialJson(SpecificRecordBase... records) { return toPartialJson(records).toString(); } }
GbifJsonConverter { public static String toStringPartialJson(SpecificRecordBase... records) { return toPartialJson(records).toString(); }  }
GbifJsonConverter { public static String toStringPartialJson(SpecificRecordBase... records) { return toPartialJson(records).toString(); }  static ObjectNode toJson(SpecificRecordBase... records); static ObjectNode toPartialJson(SpecificRecordBase... records); static String toStringJson(SpecificRecordBase... records); static String toStringPartialJson(SpecificRecordBase... records); ObjectNode toJson(); @Override String toString(); }
GbifJsonConverter { public static String toStringPartialJson(SpecificRecordBase... records) { return toPartialJson(records).toString(); }  static ObjectNode toJson(SpecificRecordBase... records); static ObjectNode toPartialJson(SpecificRecordBase... records); static String toStringJson(SpecificRecordBase... records); static String toStringPartialJson(SpecificRecordBase... records); ObjectNode toJson(); @Override String toString();  }