[
https://issues.apache.org/jira/browse/DAFFODIL-652?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dave Thompson closed DAFFODIL-652.
----------------------------------
Verified that a clear error message is being rendered for the specified test.
> Unclear error message for test_whiteSpaceDuringLengthExceededByte
> -----------------------------------------------------------------
>
> Key: DAFFODIL-652
> URL: https://issues.apache.org/jira/browse/DAFFODIL-652
> Project: Daffodil
> Issue Type: Bug
> Components: Diagnostics, Middle "End", Usability
> Reporter: Josh Adams
> Priority: Minor
> Labels: beginner
> Fix For: 3.0.0
>
>
> In section05/simple_types/SimpleTypes,
> test_whiteSpaceDuringLengthExceededByte fails with an unclear error message.
> The test is expecting a byte and receives "99 99". The test currently fails
> with the following message:
> Schema context: element.b_01 Location line 47 column 27 in
> file:/root/dfdl/daffodil-test/target/scala-2.9.2/test-classes/edu/illinois/ncsa/daffodil/section05/simple_types/SimpleTypes.tdml
> Data location was preceding byte 4
> UTF-8 text starting at byte 0 is: (99 99)
> Data (hex) starting at byte 0 is: (0x3939203939)]
> [info] - test_whiteSpaceDuringLengthExceededByte *** FAILED ***
> [info] java.lang.Exception: Did not find diagnostic message "Placeholder"
> in any of the actual diagnostic messages:
> [info] Parse Error: Convert to Byte (for xs:byte): Out of Range: '99 9'
> converted to 999, is not in range for the type.
> [info] Schema context: element.b_01 Location line 47 column 27 in
> file:/root/dfdl/daffodil-test/target/scala-2.9.2/test-classes/edu/illinois/ncsa/daffodil/section05/simple_types/SimpleTypes.tdml
> [info] Data location was preceding byte 4
> [info] UTF-8 text starting at byte 0 is: (99 99)
> [info] Data (hex) starting at byte 0 is: (0x3939203939)
> [info] at
> edu.illinois.ncsa.daffodil.tdml.TestCase$$anonfun$verifyAllDiagnosticsFound$2.apply(TDMLRunner.scala:378)
> [info] at
> edu.illinois.ncsa.daffodil.tdml.TestCase$$anonfun$verifyAllDiagnosticsFound$2.apply(TDMLRunner.scala:372)
> [info] at
> scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:59)
> [info] at scala.collection.immutable.List.foreach(List.scala:76)
> [info] at
> edu.illinois.ncsa.daffodil.tdml.TestCase.verifyAllDiagnosticsFound(TDMLRunner.scala:371)
> [info] at
> edu.illinois.ncsa.daffodil.tdml.ParserTestCase.runParseExpectErrors(TDMLRunner.scala:485)
> [info] at
> edu.illinois.ncsa.daffodil.tdml.ParserTestCase.runProcessor(TDMLRunner.scala:402)
> [info] at edu.illinois.ncsa.daffodil.tdml.TestCase.run(TDMLRunner.scala:350)
> [info] at
> edu.illinois.ncsa.daffodil.tdml.DFDLTestSuite.runOneTestWithDataVolumes(TDMLRunner.scala:222)
> [info] at
> edu.illinois.ncsa.daffodil.tdml.DFDLTestSuite.runOneTest(TDMLRunner.scala:213)
> [info] ...
> In order to see the error message, you may need to edit the SimpleTypes.tdml
> file to expect an error message other than an empty string (this was one of
> the tests that simply had <tdml:error/> or <tdml:error />, so it wasn't
> looking for any specific error message).
> This bug also applies to the other whiteSpace*Byte tests that are expecting a
> non-specific error message
--
This message was sent by Atlassian Jira
(v8.3.4#803005)