Search in sources :

Example 1 with Validator

use of gov.cms.qpp.conversion.model.Validator in project qpp-conversion-tool by CMSgov.

the class AggregateCountValidatorTest method testIsAggregateCount.

@Test
void testIsAggregateCount() {
    Node aggregateCountNode = new Node(TemplateId.ACI_AGGREGATE_COUNT);
    AggregateCountValidator validator = new AggregateCountValidator();
    assertWithMessage("validator and node are compatible").that(validator.getClass().getAnnotation(Validator.class).value()).isEqualTo(aggregateCountNode.getType());
}
Also used : Node(gov.cms.qpp.conversion.model.Node) Validator(gov.cms.qpp.conversion.model.Validator) Test(org.junit.jupiter.api.Test)

Aggregations

Node (gov.cms.qpp.conversion.model.Node)1 Validator (gov.cms.qpp.conversion.model.Validator)1 Test (org.junit.jupiter.api.Test)1