The CanonicalXTMWriterTestGenerator is never used in tests as it is missing
from test-data/config/tests.xml. Adding it to the test config results in test
failures since the test-data/cxtm/baseline is outdated. It still contains
<locator> without newlines, <topicName> instead of <name>, missing <rolePlayed>
and urls without trailing slash. Reification also differs, but I'm not sure
about the exact syntax.
I attach 2 patches. Patch1 fixes all issues mentioned (done by hand), except
reification. Patch2 fixes all issues, but has changes for 6 files  that I
need feedback on. These are files from the out directory, generated by
I'll apply changes to config/tests.xml and cxtm/baseline/ after a confirm that
the syntax in patch 2 is correct. All tests succeed without failures with the
This would have emerged earlier in Maven (it actually originated from the Maven
branch), since Maven uses convention over configuration. All tests will be
included automatically without using a config file. Fixing this issue will
bring us closer to completing the Maven branch.
 reified-association.ltm.cxtm, reified-name.ltm.cxtm,
reified-occurrence.ltm.cxtm, reified-role.ltm.cxtmm, reifytm.ltm.cxtm,
Original issue reported on code.google.com by p.kruijsen on 17 Jan 2011 at 10:41
Further research shows that another 3 files from the topicmaps.xml package are
not included in config/tests.xml: TMExporterFilterTestCase,
XTMFragmentExporterTestCase and XTMPathTopicMapSourceTest. Out of date
directories in test-data that are affected by including these tests are
filter-tests/baseline and xtmFragmentExporter/baseline. Differences are far
worse than in cxtm/baseline, so I won't even bother posting a patch.
Original comment by p.kruijsen on 17 Jan 2011 at 3:48
I've attached the output files that my machine generated by running the tests
CanonicalXTMWriterTestGenerator, TMExporterFilterTestGenerator and
XTMFragmentExporterTestGenerator. You can compare these to the baselines
mentioned earlier. Thanks.
Original comment by p.kruijsen on 28 Jan 2011 at 2:04
I went through all the six files now, and they are all correct as far as I can
I think TMExporterFilterTestCase, XTMFragmentExporterTestCase and
XTMPathTopicMapSourceTest merit a separate issue each. Otherwise it's going to
take forever to close this one.
Was that everything you needed to close this issue, or did I miss something?
Original comment by lar...@gmail.com on 28 Jan 2011 at 2:22
I've committed the changes to the CXTM testdata baseline in revisions r1607
(trunk) and r1608 (Maven branch). CanonicalXTMWriterTestGenerator is still not
included in test-data/config/tests.xml. I'll leave that untouched. I'll open
separate issues for the other cases.
Original comment by p.kruijsen on 31 Jan 2011 at 8:58