[jboss-jira] [JBoss JIRA] (DROOLS-2419) Validator fails schema validation for definition xml element with prefix
Matteo Mortari (JIRA)
issues at jboss.org
Mon Mar 26 05:01:01 EDT 2018
[ https://issues.jboss.org/browse/DROOLS-2419?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Matteo Mortari updated DROOLS-2419:
-----------------------------------
Attachment: UsingSemanticNS.dmn
> 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: Matteo Mortari
> 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}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
More information about the jboss-jira
mailing list