use of io.restassured.path.json.JsonPath in project snow-owl by b2ihealthcare.
the class GroupTest method serialize.
@Test
public void serialize() throws Exception {
printPrettyJson(group);
JsonPath jsonPath = JsonPath.from(objectMapper.writeValueAsString(group));
assertThat(jsonPath.getString("source"), equalTo("Source"));
assertThat(jsonPath.getString("sourceVersion"), equalTo("SourceVersion"));
assertThat(jsonPath.get("target"), equalTo("Target"));
assertThat(jsonPath.get("targetVersion"), equalTo("TargetVersion"));
assertThat(jsonPath.get("element.code"), hasItem("ElementCode"));
assertThat(jsonPath.get("element.display"), hasItem("ElementDisplay"));
assertThat(jsonPath.get("unmapped.mode"), equalTo("Mode"));
}
use of io.restassured.path.json.JsonPath in project snow-owl by b2ihealthcare.
the class UnMappedTest method serialize.
@Test
public void serialize() throws Exception {
printPrettyJson(unMapped);
JsonPath jsonPath = JsonPath.from(objectMapper.writeValueAsString(unMapped));
assertThat(jsonPath.getString("url"), equalTo("uri"));
assertThat(jsonPath.getString("display"), equalTo("display"));
assertThat(jsonPath.getString("code"), equalTo("code"));
assertThat(jsonPath.getString("mode"), equalTo("fixed"));
}
use of io.restassured.path.json.JsonPath in project snow-owl by b2ihealthcare.
the class ParameterTest method serialize.
@Test
public void serialize() throws Exception {
printPrettyJson(parameter);
JsonPath jsonPath = JsonPath.from(objectMapper.writeValueAsString(parameter));
assertThat(jsonPath.getString("id"), equalTo("id"));
assertThat(jsonPath.getString("name"), equalTo("name"));
assertThat(jsonPath.getString("use"), equalTo("use"));
}
use of io.restassured.path.json.JsonPath in project snow-owl by b2ihealthcare.
the class InteractionTest method serialize.
@Test
public void serialize() throws Exception {
printPrettyJson(interaction);
JsonPath jsonPath = JsonPath.from(objectMapper.writeValueAsString(interaction));
assertThat(jsonPath.getString("code"), equalTo("code"));
assertThat(jsonPath.getString("documentation"), equalTo("documentation"));
}
use of io.restassured.path.json.JsonPath in project snow-owl by b2ihealthcare.
the class RestTest method serialize.
@Test
public void serialize() throws Exception {
printPrettyJson(rest);
JsonPath jsonPath = JsonPath.from(objectMapper.writeValueAsString(rest));
assertThat(jsonPath.getString("documentation"), equalTo("documentation"));
}
Aggregations