]
Matteo Mortari reassigned DROOLS-2419:
--------------------------------------
Assignee: Fedor Gavrilov (was: Matteo Mortari)
Validator fails schema validation for definition xml element with
prefix
------------------------------------------------------------------------
Key: DROOLS-2419
URL:
https://issues.jboss.org/browse/DROOLS-2419
Project: Drools
Issue Type: Bug
Components: dmn engine
Reporter: Matteo Mortari
Assignee: Fedor Gavrilov
Attachments: UsingSemanticNS.dmn
Given the attached model and the following test
{code:java}
@Test
public void testTEMP() {
List<DMNMessage> validate =
validator.validate(getReader("UsingSemanticNS.dmn"), VALIDATE_SCHEMA,
VALIDATE_MODEL, VALIDATE_COMPILATION);
assertThat(ValidatorUtil.formatMessages(validate), validate.size(), is(0));
}
{code}
fails with:
{code:java}
java.lang.AssertionError: DMNMessage{ severity=ERROR, type=FAILED_XML_VALIDATION,
message='Failed XML validation of DMN file: cvc-elt.1: Cannot find the declaration of
element 'semantic:definitions'.', sourceId='null',
exception='SAXParseException : cvc-elt.1: Cannot find the declaration of element
'semantic:definitions'.', feelEvent=''}
Expected: is <0>
but: was <1>
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
at org.junit.Assert.assertThat(Assert.java:956)
at org.kie.dmn.validation.ValidatorTest.testTEMP(ValidatorTest.java:92)
...
{code}