use of gov.cms.qpp.conversion.api.helper.MetadataHelper.Outcome in project qpp-conversion-tool by CMSgov.
the class MetadataHelperTest method testGenerateMetadataForNullNodeReturnsSkinnyMetadata.
@Test
void testGenerateMetadataForNullNodeReturnsSkinnyMetadata() {
MetadataHelper.Outcome outcome = MetadataHelper.Outcome.VALIDATION_ERROR;
Metadata comparison = new Metadata();
comparison.setOverallStatus(false);
comparison.setConversionStatus(true);
comparison.setValidationStatus(false);
Metadata metadata = MetadataHelper.generateMetadata(null, outcome);
metadata.setCreatedDate(comparison.getCreatedDate());
assertThat(metadata).isEqualTo(comparison);
}