Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-1938

Use XMLUnit for framework tests

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • 1.4-RC2
    • 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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            gereedy Geoff Reedy
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: