use of com.b2international.snowowl.fhir.core.model.conceptmap.TranslateResult in project snow-owl by b2ihealthcare.
the class TranslateResultSerializationTest method falseResultTest.
@Test
public void falseResultTest() throws Exception {
TranslateResult translateResult = TranslateResult.builder().build();
Fhir fhirParameters = new Parameters.Fhir(translateResult);
JsonPath jsonPath = JsonPath.from(objectMapper.writeValueAsString(fhirParameters));
assertThat(jsonPath.getString("resourceType"), equalTo("Parameters"));
assertThat(jsonPath.getList("parameter").size(), is(1));
assertThat(jsonPath, FhirParameterMatcher.hasParameter("result", FhirDataType.BOOLEAN, false));
}
use of com.b2international.snowowl.fhir.core.model.conceptmap.TranslateResult in project snow-owl by b2ihealthcare.
the class TranslateResultSerializationTest method parameterizedTest.
@Test
public void parameterizedTest() throws Exception {
TranslateResult translateResult = TranslateResult.builder().build();
Fhir fhirParameters = new Parameters.Fhir(translateResult);
JsonPath jsonPath = JsonPath.from(objectMapper.writeValueAsString(fhirParameters));
assertThat(jsonPath.getString("resourceType"), equalTo("Parameters"));
assertThat(jsonPath.getList("parameter").size(), is(1));
assertThat(jsonPath, FhirParameterMatcher.hasParameter("result", FhirDataType.BOOLEAN, false));
}
Aggregations