I have the following directory structure for the resource folder of unit tests:
src/test/resources/*.files
In order for me to read binary files (such as a PDF for example) to complete a unit test, I am putting these files in the test / resources folder, but reading the Maven documentation, this directory is appropriate for files that are loaded in runtime, and such files would be called with getClass().getClassLoader().getResourceAsStream()
.
What would be the best practice to store and read PDF files that will be used for testing on one or more unit tests?