Uploaded image for project: 'Daffodil'
  1. Daffodil
  2. DFDL-524

Expected error is substring of actual error but test still fails (OOLAGException)

XMLWordPrintableJSON

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • s9
    • s7
    • None
    • None

      I expect minMaxInEx10 to get an error similar to the error seen in checkMaxInclusive_Fail_MaxInt, except for the short datatype instead of int. I do get this error but in the following form, which does not correctly match the expected error in my test:
      [info] - test_minMaxInEx10 *** FAILED ***
      [info] daffodil.exceptions.Abort: Invariant broken. OOLAGException's like daffodil.dsom.OOLAG$ErrorAlreadyHandled: Schema Definition Error: maxInclusive facet value (33000) was found to be outside of Short range. Schema context: element.mImE_e8::simpleType.ex:mImE_st8::simpleType.mImE_st8. Location line 4727 column 36 in file:/home/jchab/NGF/dfdl/daffodil-test/target/scala-2.9.2/test-classes/daffodil/section05/facets/Facets.tdml are compiler stuff. This is runtime.
      [info] daffodil.exceptions.Assert$.abort(Assert.scala:52)
      [info] daffodil.exceptions.Assert$.invariantFailed(Assert.scala:89)
      [info] daffodil.processors.DataProcessor$$anon$1.liftedTree1$1(Runtime.scala:102)
      [info] daffodil.processors.DataProcessor$$anon$1.<init>(Runtime.scala:79)
      [info] at daffodil.exceptions.Assert$.abort(Assert.scala:52)
      [info] at daffodil.exceptions.Assert$.invariantFailed(Assert.scala:89)
      [info] at daffodil.processors.DataProcessor$$anon$1.liftedTree1$1(Runtime.scala:102)
      [info] at daffodil.processors.DataProcessor$$anon$1.<init>(Runtime.scala:79)
      [info] at daffodil.processors.DataProcessor.parse(Runtime.scala:76)
      [info] at daffodil.processors.DataProcessor.parse(Runtime.scala:72)
      [info] at daffodil.tdml.ParserTestCase.runParseExpectErrors(TDMLRunner.scala:409)
      [info] at daffodil.tdml.ParserTestCase.runProcessor(TDMLRunner.scala:340)
      [info] at daffodil.tdml.TestCase.run(TDMLRunner.scala:293)
      [info] at daffodil.tdml.DFDLTestSuite.runOneTest(TDMLRunner.scala:165)

      minMaxInEx10 in the following files:
      daffodil-test/src/test/scala/edu/illinois/ncsa/daffodil/section05/facets/TestFacets.scala
      daffodil-test/src/test/resources/edu/illinois/ncsa/daffodil/section05/facets/Facets.tdml

              jchab Jessie Chab
              jchab Jessie Chab
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: