use of io.restassured.path.json.JsonPath in project snow-owl by b2ihealthcare.
the class OperationDefinitionTest method serialize.
@Test
public void serialize() throws Exception {
printPrettyJson(operationDefinition);
JsonPath jsonPath = JsonPath.from(objectMapper.writeValueAsString(operationDefinition));
assertThat(jsonPath.getString("base"), equalTo("base"));
assertThat(jsonPath.getString("parameter[0].id"), equalTo("id"));
assertThat(jsonPath.getString("parameter[0].name"), equalTo("name"));
assertThat(jsonPath.getString("parameter[0].use"), equalTo("use"));
}
use of io.restassured.path.json.JsonPath in project snow-owl by b2ihealthcare.
the class DiscriminatorTest method serialize.
@Test
public void serialize() throws Exception {
printPrettyJson(discriminator);
JsonPath jsonPath = JsonPath.from(objectMapper.writeValueAsString(discriminator));
assertThat(jsonPath.getString("id"), equalTo("id"));
assertThat(jsonPath.getString("type"), equalTo("value"));
assertThat(jsonPath.getString("path"), equalTo("path"));
}
use of io.restassured.path.json.JsonPath in project snow-owl by b2ihealthcare.
the class MappingTest method serialize.
@Test
public void serialize() throws Exception {
JsonPath jsonPath = JsonPath.from(objectMapper.writeValueAsString(mapping));
assertThat(jsonPath.getString("comment"), equalTo("comment"));
assertThat(jsonPath.getString("identity"), equalTo("identity"));
assertThat(jsonPath.getString("name"), equalTo("name"));
assertThat(jsonPath.getString("uri"), equalTo("uri"));
}
use of io.restassured.path.json.JsonPath in project snow-owl by b2ihealthcare.
the class StructureDefinitionTest method serialize.
@Test
public void serialize() throws Exception {
printPrettyJson(structureDefinition);
JsonPath jsonPath = JsonPath.from(objectMapper.writeValueAsString(structureDefinition));
assertThat(jsonPath.getString("id"), equalTo("id"));
}
use of io.restassured.path.json.JsonPath in project snow-owl by b2ihealthcare.
the class ExpansionTest method serialize.
@Test
public void serialize() throws Exception {
printPrettyJson(expansion);
JsonPath jsonPath = JsonPath.from(objectMapper.writeValueAsString(expansion));
assertThat(jsonPath.getString("identifier"), equalTo("identifier"));
assertThat(jsonPath.getString("total"), equalTo("200"));
assertThat(jsonPath.getString("contains[0].system"), equalTo("systemUri"));
assertThat(jsonPath.getString("parameter[0].name"), containsString("ParamName"));
}
Aggregations