You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Juergen Donnerstag (JIRA)" <ji...@apache.org> on 2008/12/14 10:08:44 UTC

[jira] Resolved: (WICKET-1938) Use XMLUnit for framework tests

     [ https://issues.apache.org/jira/browse/WICKET-1938?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Juergen Donnerstag resolved WICKET-1938.
----------------------------------------

       Resolution: Duplicate
    Fix Version/s:     (was: 1.5-M1)
                   1.4-RC2

WICKET-1389

> Use XMLUnit for framework tests
> -------------------------------
>
>                 Key: WICKET-1938
>                 URL: https://issues.apache.org/jira/browse/WICKET-1938
>             Project: Wicket
>          Issue Type: Improvement
>            Reporter: Geoff Reedy
>             Fix For: 1.4-RC2
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.