we have a module in our architecture which checks a SFTP(server)directory for new transmitted XML files, validates them against XSD and if successful it takes the XML file from the directory and does something with it.
My question is now: What is a good/the best way to tests this module automically. I know I could create XML files and check them against an XSD in eclipse using JAXB. But I want to create something like this:
- Design a set of XML files which fail/pass the XSD-Valiadation
- Run these tests automically (Maven [/Jenkisn])
Whats the best way to do this? Putting the XML files in the test/ressources
folder of the maven module and writing JUnitTests which reads the testXMLS and the XSD and checks them?