Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
None
-
None
-
None
Description
Currently the framework tests are comparing xml/html documents as strings. This causes spurious test failures when executed on a 1.6 JDK. For example:
Running org.apache.wicket.ajax.AjaxRequestTargetTest
2c2
< <style type="text/css" id="org-apache-wicket-ajax-MockComponent1-0">
—
> <style id="org-apache-wicket-ajax-MockComponent1-0" type="text/css">
2c2
< <link href="resources/org.apache.wicket.ajax.MockComponent3/mockStyleSheet3.css" rel="stylesheet" type="text/css"/>
—
> <link rel="stylesheet" type="text/css" href="resources/org.apache.wicket.ajax.MockComponent3/mockStyleSheet3.css"/>
Tests run: 3, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 0.087 sec <<< FAILURE!
Obviously the snippets are semantically equivalent. XMLUnit would have recognized this and not failed the test.