Project

General

Profile

Bug #3594

tests only validate documents in test dir against SAX not EML

Added by Shaun Walbridge almost 13 years ago. Updated almost 13 years ago.

Status:
Resolved
Priority:
Normal
Category:
eml-parser
Target version:
Start date:
11/05/2008
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
3594

Description

EML files residing within the test/ folder should be tested for EML validity along with SAX validation, to keep in line with how the emlparser servlet validates documents. Files known to be bad should reside within test/invalidEML/ folder, leaving only valid EML within the base test/ folder.

History

#1 Updated by Margaret O'Brien almost 13 years ago

targeting for 2.1

#2 Updated by Shaun Walbridge almost 13 years ago

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.

#3 Updated by Redmine Admin over 8 years ago

Original Bugzilla ID was 3594

Also available in: Atom PDF