Details
-
Bug
-
Resolution: Fixed
-
Normal
-
1.1.0
-
None
Description
If you have an unparserTestCase that works, and you specify roundTrip="true", if for some reason there is an error in the parse step of the roundTrip, a blank TDMLException is thrown:
error] Test edu.illinois.ncsa.daffodil.section16.array_optional_elem.TestUnparseArrayOptionalElem.test_parsedOptArrayThenScalar02 failed: edu.illinois.ncsa.daffodil.tdml.TDMLException:
|
[error] at edu.illinois.ncsa.daffodil.tdml.UnparserTestCase.runUnparserExpectSuccess(TDMLRunner.scala:771)
|
[error] at edu.illinois.ncsa.daffodil.tdml.UnparserTestCase.runProcessor(TDMLRunner.scala:719)
|
[error] at edu.illinois.ncsa.daffodil.tdml.TestCase.run(TDMLRunner.scala:513)
|
[error] at edu.illinois.ncsa.daffodil.tdml.DFDLTestSuite.runOneTestWithDataVolumes(TDMLRunner.scala:292)
|
[error] at edu.illinois.ncsa.daffodil.tdml.DFDLTestSuite.runOneTest(TDMLRunner.scala:283)
|
[error] at edu.illinois.ncsa.daffodil.section16.array_optional_elem.TestUnparseArrayOptionalElem.test_parsedOptArrayThenScalar02(TestUnparseArrayOptionalElem.scala:125)
|
[error] ...
|
Since it's hard to find a case where unparse works and parse does not, this error can currently be seen by modifying parsedOptArrayThenScalar02 to be a roundTrip test. However, this relies on the bug seen in DFDL-1302.