Project

General

Profile

Actions

Bug #3594

closed

tests only validate documents in test dir against SAX not EML

Added by Shaun Walbridge about 16 years ago. Updated about 16 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.

Actions #1

Updated by Margaret O'Brien about 16 years ago

targeting for 2.1

Actions #2

Updated by Shaun Walbridge about 16 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.

Actions #3

Updated by Redmine Admin over 11 years ago

Original Bugzilla ID was 3594

Actions

Also available in: Atom PDF