use of org.kie.dmn.validation.DMNValidator.Validation.VALIDATE_COMPILATION in project drools by kiegroup.
the class ValidatorBusinessContextTest method testORG_UNIT_DECISION_MADE_WRONG_TYPE_ReaderInput.
@Test
public void testORG_UNIT_DECISION_MADE_WRONG_TYPE_ReaderInput() throws IOException {
try (final Reader reader = getReader("businesscontext/ORG_UNIT_DECISION_MADE_WRONG_TYPE.dmn")) {
final List<DMNMessage> validate = validator.validate(reader, VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION);
assertThat(ValidatorUtil.formatMessages(validate), validate.size(), is(2));
assertTrue(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.REQ_NOT_FOUND)));
}
}
Aggregations