use of gov.cms.qpp.acceptance.helper.JsonPathAggregator in project qpp-conversion-tool by CMSgov.
the class JsonPathToXpathCoverageTest method testCoverage.
@ParameterizedTest
@MethodSource("paths")
void testCoverage(Path path) throws IOException {
JsonWrapper metaWrapper = new JsonWrapper(false);
helper = new JsonPathToXpathHelper(path, metaWrapper, false);
JsonWrapper wrapper = new JsonWrapper(metaWrapper, true);
JsonNode root = om.readTree(wrapper.toString());
JsonPathAggregator agg = new JsonPathAggregator(root);
agg.getJsonPaths().forEach((key, value) -> helper.executeAttributeTest(key, value));
}
Aggregations