use of com.b2international.snowowl.fhir.core.model.conceptmap.ConceptMapElement in project snow-owl by b2ihealthcare.
the class ConceptMapElementTest method serializeWithMissingOptionalFields.
@Test
public void serializeWithMissingOptionalFields() throws Exception {
ConceptMapElement element = ConceptMapElement.builder().build();
JsonPath jsonPath = getJsonPath(element);
assertNull(jsonPath.get("code"));
assertNull(jsonPath.get("display"));
assertNull(jsonPath.get("target"));
assertNull(jsonPath.get("target"));
}
use of com.b2international.snowowl.fhir.core.model.conceptmap.ConceptMapElement in project snow-owl by b2ihealthcare.
the class ConceptMapElementTest method deserialize.
@Test
public void deserialize() throws Exception {
ConceptMapElement readElement = objectMapper.readValue(objectMapper.writeValueAsString(element), ConceptMapElement.class);
validate(readElement);
}
Aggregations