Uploaded image for project: 'UIMA'
  1. UIMA
  2. UIMA-4056

fix JSON tests which do XML compares to use XMLUnit

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.7.0SDK
    • 2.7.0SDK
    • Core Java Framework
    • None

    Description

      The JSON tests have a mode where they generate xmi/xml serializations as well, just for extra coverage. THe compare of these against expected can't be a string "equals" because different XML parsers, transformers, etc. do ordering of name-spaces and formatting of empty elements differently. Use instead the XMLUnit package (available from Maven Central - license OK) (thanks to suggestion from rec), to check for "equality" instead that allows for these differences.

      Attachments

        Activity

          People

            schor Marshall Schor
            schor Marshall Schor
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: