Ate Douma created SCXML-168:
-------------------------------
Summary: Test failure in SCXMLWriterTest using Java 7
Key: SCXML-168
URL: https://issues.apache.org/jira/browse/SCXML-168
Project: Commons SCXML
Issue Type: Bug
Affects Versions: 1.0
Environment: Oracle Java 1.7.0_40-b43
Reporter: Ate Douma
Fix For: 1.0
Attachments: SCXML-168.patch
Tests in the SCXMLWriterTest use StaX to transform SCXML to a pretty printed
output and then compare this to a predefined expected output.
However this is not reliable across Java compilers as to how pretty printing is
precisely done.
In this case, with (Oracle) Java 6, a newline is inserted between the XML
declaration and the root element, while on (Oracle) Java 7 no such newline is
added. As result these tests fail with Java 7.
For these test I think it is easily to fix: there is no functional (here) need
to compare the XML output pretty formatted, so I simply remoted the pretty
printing and adjusted the predefined String to compare against.
I'll attach a patch file shortly.
--
This message was sent by Atlassian JIRA
(v6.1#6144)