You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Marshall Schor (JIRA)" <de...@uima.apache.org> on 2014/10/15 16:50:33 UTC

[jira] [Created] (UIMA-4056) fix JSON tests which do XML compares to use XMLUnit

Marshall Schor created UIMA-4056:
------------------------------------

             Summary: fix JSON tests which do XML compares to use XMLUnit
                 Key: UIMA-4056
                 URL: https://issues.apache.org/jira/browse/UIMA-4056
             Project: UIMA
          Issue Type: Improvement
          Components: Core Java Framework
    Affects Versions: 2.6.1SDK
            Reporter: Marshall Schor
            Assignee: Marshall Schor
            Priority: Minor
             Fix For: 2.6.1SDK


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), to check for "equality" instead that allows for these differences.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)