use of gov.cms.qpp.conversion.model.Registry in project qpp-conversion-tool by CMSgov.
the class EncoderTest method decodeTemplateIds.
/**
* decodeTemplateIds for each TemplateId in the list ensure that it exists in
* the registry.
* @throws Exception
*/
@Test
void decodeTemplateIds() throws Exception {
Registry<OutputEncoder> registry = new Registry<>(new Context(), Encoder.class);
for (TemplateId templateId : templateIds) {
OutputEncoder encoder = registry.get(templateId);
assertWithMessage(templateId + " returned node should not be null").that(encoder).isNotNull();
}
}
use of gov.cms.qpp.conversion.model.Registry in project qpp-conversion-tool by CMSgov.
the class DecoderTest method decodeTemplateIds.
@Test
void decodeTemplateIds() throws Exception {
Registry<QrdaDecoder> registry = new Registry<>(new Context(), Decoder.class);
for (TemplateId templateId : templateIds) {
QrdaDecoder decoder = registry.get(templateId);
assertWithMessage("%s returned node should not be null", templateId.name()).that(decoder).isNotNull();
}
}
Aggregations