You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by "Varun Zaver (Jira)" <ji...@apache.org> on 2022/12/23 19:12:00 UTC
[jira] [Created] (DAFFODIL-2760) withDistinguishedRootNode() Not Working As Expected
Varun Zaver created DAFFODIL-2760:
-------------------------------------
Summary: withDistinguishedRootNode() Not Working As Expected
Key: DAFFODIL-2760
URL: https://issues.apache.org/jira/browse/DAFFODIL-2760
Project: Daffodil
Issue Type: Bug
Reporter: Varun Zaver
Assignee: Varun Zaver
When the user uses withDistinguishedRootNode(), the specified element to act as the rootNode is not set. Instead it seems like the order of the elements of the schema file decides the root element.
Steps to reproduce:
1. Run: sbt "testOnly org.apache.daffodil.TestScalaAPI" => Should succeed
2. Change "e3" to "e4" in test testScalaAPI3
3. Run: sbt "testOnly org.apache.daffodil.TestScalaAPI" => Should succeed
Note: Despite needing "e3" to be the root node, the test still passes when the root node is supposedly changed to "e4" with withDistinguishedRootNode()
4. Move element "e4" above element "e3" in mySchema3.dfdl.xsd
5. Run: sbt "testOnly org.apache.daffodil.TestScalaAPI" => Two test should fail.
Note: The two tests that fail use withDistinguishedRootNode() to define the root element, however, despite defining the root element, the tests still fail because of the order of the elements in the schema file.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)