use of com.jayway.restassured.path.xml.element.NodeChildren in project ddf by codice.
the class TestConfiguration method assertMetacardsIngested.
private void assertMetacardsIngested(int expectedumberOfMetacards) throws Exception {
String queryUrl = OPENSEARCH_PATH.getUrl() + "?q=*&format=xml&src=local";
Response response = when().get(queryUrl);
String bodyXml = response.body().asString();
NodeChildren metacards = new XmlPath(bodyXml).get("metacards.metacard");
assertThat(metacards.size(), is(expectedumberOfMetacards));
}
Aggregations