[eml-dev] [Bug 3594] - tests only validate documents in test dir against SAX not EML

bugzilla-daemon at ecoinformatics.org bugzilla-daemon at ecoinformatics.org
Wed Nov 5 15:15:45 PST 2008


http://bugzilla.ecoinformatics.org/show_bug.cgi?id=3594


walbridge at nceas.ucsb.edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Comment #2 from walbridge at nceas.ucsb.edu  2008-11-05 15:15 -------
Added code to EMLParserTest which uses the same method as SaxValidateTest to
glob all XML files within the test folder and test for validity. Similarly,
added a negative case test for all invalid EML documents which currently reside
in test/invalidEML/.  A new token was introduced called 'invalid.dir' for
referencing the invalid EML documents.

Additionally, EMLParser was modified to ignore insignificant whitespace within
reference elements, as manipulation programs will change these to improve the
XML readability and was causing EML to be invalided by both the servlet and
JUnit tests.


More information about the Eml-dev mailing list