use of org.kie.dmn.model.api.Context in project drools by kiegroup.
the class ValidatorContextTest method testCONTEXT_ENTRY_NOTYPEREF_ReaderInput.
@Test
public void testCONTEXT_ENTRY_NOTYPEREF_ReaderInput() throws IOException {
try (final Reader reader = getReader("context/CONTEXT_ENTRY_NOTYPEREF.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.MISSING_TYPE_REF)));
}
}
Aggregations