Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-2419

Validator fails schema validation for definition xml element with prefix

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • None
    • dmn engine
    • None
    • 2018 Week 13-14
    • NEW
    • NEW

      Given the attached model and the following test

          @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));
          }
      

      fails with:

      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)
      	...
      

              mmortari@redhat.com Matteo Mortari
              mmortari@redhat.com Matteo Mortari
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: