Search in sources :

Example 1 with UnMapped

use of com.b2international.snowowl.fhir.core.model.conceptmap.UnMapped in project snow-owl by b2ihealthcare.

the class UnMappedTest method deserialize.

@Test
public void deserialize() throws Exception {
    UnMapped readUnMapped = objectMapper.readValue(objectMapper.writeValueAsString(unMapped), UnMapped.class);
    validate(readUnMapped);
}
Also used : UnMapped(com.b2international.snowowl.fhir.core.model.conceptmap.UnMapped) FhirTest(com.b2international.snowowl.fhir.tests.FhirTest) Test(org.junit.Test)

Example 2 with UnMapped

use of com.b2international.snowowl.fhir.core.model.conceptmap.UnMapped in project snow-owl by b2ihealthcare.

the class UnMappedTest method serializeWithMissingOptionalFields.

@Test
public void serializeWithMissingOptionalFields() throws Exception {
    UnMapped unMapped = UnMapped.builder().mode("Mode").build();
    JsonPath jsonPath = getJsonPath(unMapped);
    assertNull(jsonPath.get("code"));
}
Also used : JsonPath(io.restassured.path.json.JsonPath) UnMapped(com.b2international.snowowl.fhir.core.model.conceptmap.UnMapped) FhirTest(com.b2international.snowowl.fhir.tests.FhirTest) Test(org.junit.Test)

Aggregations

UnMapped (com.b2international.snowowl.fhir.core.model.conceptmap.UnMapped)2 FhirTest (com.b2international.snowowl.fhir.tests.FhirTest)2 Test (org.junit.Test)2 JsonPath (io.restassured.path.json.JsonPath)1