use of gov.cms.qpp.conversion.Converter in project qpp-conversion-tool by CMSgov.
the class QrdaQppAssociationTest method setup.
@BeforeAll
static void setup() {
Path path = Paths.get("../qrda-files/valid-QRDA-III-latest.xml");
Converter converter = new Converter(new PathSource(path));
qpp = converter.transform();
}
use of gov.cms.qpp.conversion.Converter in project qpp-conversion-tool by CMSgov.
the class ReportingParametersActRoundTripTest method setUp.
@BeforeAll
public static void setUp() {
Converter converter = new Converter(new PathSource(VALID_QRDA_III));
JsonWrapper qpp = converter.transform();
json = qpp.toString();
}
use of gov.cms.qpp.conversion.Converter in project qpp-conversion-tool by CMSgov.
the class SubmissionIntegrationTest method loadQpp.
private JsonWrapper loadQpp() {
Path path = Paths.get("../qrda-files/valid-QRDA-III-latest.xml");
Converter converter = new Converter(new PathSource(path));
return converter.transform();
}
use of gov.cms.qpp.conversion.Converter in project qpp-conversion-tool by CMSgov.
the class CpcPlusAcceptanceTest method testCpcPlusFileSuccesses.
@ParameterizedTest
@MethodSource("successData")
void testCpcPlusFileSuccesses(Path entry) {
AllErrors errors = null;
Converter converter = new Converter(new PathSource(entry));
try {
converter.transform();
} catch (TransformException failure) {
errors = failure.getDetails();
}
assertThat(errors).isNull();
}
use of gov.cms.qpp.conversion.Converter in project qpp-conversion-tool by CMSgov.
the class CpcPlusAcceptanceTest method testCpcPlusFileFailures.
@ParameterizedTest
@MethodSource("failureData")
void testCpcPlusFileFailures(Path entry) {
String fileName = entry.getFileName().toString();
assertWithMessage("No associated entry in fixture.json for the file %s", fileName).that(fixtureValues).containsKey(fileName);
Converter converter = new Converter(new PathSource(entry));
TransformException expected = Assertions.assertThrows(TransformException.class, converter::transform);
// runnning conversions on individual files
List<Detail> details = expected.getDetails().getErrors().get(0).getDetails();
verifyOutcome(fileName, details);
}
Aggregations