use of io.restassured.path.json.JsonPath in project snow-owl by b2ihealthcare.
the class SecurityTest method serialize.
@Test
public void serialize() throws Exception {
printPrettyJson(security);
JsonPath jsonPath = JsonPath.from(objectMapper.writeValueAsString(security));
assertThat(jsonPath.getString("description"), equalTo("description"));
assertThat(jsonPath.getBoolean("cors"), equalTo(true));
assertThat(jsonPath.getString("service[0].text"), equalTo("codingText"));
}
use of io.restassured.path.json.JsonPath in project snow-owl by b2ihealthcare.
the class SupportedMessageTest method serialize.
@Test
public void serialize() throws Exception {
printPrettyJson(supportedMessage);
JsonPath jsonPath = JsonPath.from(objectMapper.writeValueAsString(supportedMessage));
assertThat(jsonPath.getString("mode"), equalTo("receiver"));
assertThat(jsonPath.getString("definition"), equalTo("definition"));
}
use of io.restassured.path.json.JsonPath in project snow-owl by b2ihealthcare.
the class ConceptPropertyTest method serializeCodingConceptProperty.
@Test
public void serializeCodingConceptProperty() throws Exception {
CodingConceptProperty conceptProperty = CodingConceptProperty.builder().code(CommonConceptProperties.CHILD.getCode()).value(new Coding.Builder().code("codingCode").system("uri").build()).build();
JsonPath jsonPath = JsonPath.from(objectMapper.writeValueAsString(conceptProperty));
assertThat(jsonPath.getString("code"), equalTo("child"));
jsonPath.setRoot("valueCoding");
assertThat(jsonPath.getString("code"), equalTo("codingCode"));
assertThat(jsonPath.getString("system"), equalTo("uri"));
}
use of io.restassured.path.json.JsonPath in project snow-owl by b2ihealthcare.
the class ConceptMapTest method serialize.
@Test
public void serialize() throws Exception {
printPrettyJson(conceptMap);
JsonPath jsonPath = JsonPath.from(objectMapper.writeValueAsString(conceptMap));
assertThat(jsonPath.getString("id"), equalTo("-1"));
}
use of io.restassured.path.json.JsonPath in project snow-owl by b2ihealthcare.
the class TargetTest method serialize.
@Test
public void serialize() throws Exception {
printPrettyJson(target);
JsonPath jsonPath = JsonPath.from(objectMapper.writeValueAsString(target));
assertThat(jsonPath.getString("code"), equalTo("code"));
assertThat(jsonPath.getString("display"), equalTo("Display"));
assertThat(jsonPath.getString("equivalence"), equalTo("Equivalence"));
}
Aggregations