Search in sources :

Example 1 with Outcome

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);
}
Also used : Metadata(gov.cms.qpp.conversion.api.model.Metadata) Outcome(gov.cms.qpp.conversion.api.helper.MetadataHelper.Outcome) Test(org.junit.jupiter.api.Test)

Aggregations

Outcome (gov.cms.qpp.conversion.api.helper.MetadataHelper.Outcome)1 Metadata (gov.cms.qpp.conversion.api.model.Metadata)1 Test (org.junit.jupiter.api.Test)1