tests only validate documents in test dir against SAX not EML
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.
#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.