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/07 12:41:44 UTC

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

    [ https://issues.apache.org/jira/browse/WICKET-1938?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12654191#action_12654191 ] 

Juergen Donnerstag commented on WICKET-1938:
--------------------------------------------

true, but XMLUnit is not able to handle HTML. Some html tags are allowed to have no close tag.

> 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.5-M1
>
>
> 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.