use of gov.cms.qpp.acceptance.helper.JsonPathToXpathHelper in project qpp-conversion-tool by CMSgov.
the class CpcPlusRoundTripTest method setup.
@BeforeAll
static void setup() throws URISyntaxException {
ApmEntityIds.setApmDataFile("test_apm_entity_ids.json");
URL sample = CpcPlusRoundTripTest.class.getClassLoader().getResource("cpc_plus/success/CPCPlus_CMSPrgrm_LowerCase_SampleQRDA-III.xml");
Path path = Paths.get(sample.toURI());
new JsonPathToXpathHelper(path, wrapper, false);
ctx = JsonPath.parse(wrapper.toString());
}
use of gov.cms.qpp.acceptance.helper.JsonPathToXpathHelper 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