Description
I copied testJavaAPI3 in
daffodil-core/src/test/java/edu/illinois/ncsa/daffodil/example/TestJavaAPI.java
and added a new element to
daffodil-core/src/test/resources/test/japi/mySchema3.dfdl.xsd
I modified the test (new test is testJavaAPI4) to reference my new element (e4) and my new data file (myData2.bat)
When I run the test it still seems to be referencing element e3, the first element in the schema. When I swap e3 and e4 in the schema, all tests that reference that schema use e4 - the first element.
Steve suggested trying the compiler's setDistinguishedRootNode before running compile, and that worked with no problems. It only seems to be the ProcessorFactory's setDistinguishedRootNode method that isn't working.
I commented out the failing test (testJavaAPI4) and added the passing test that uses the compiler's method (testJavaAPI4b)