I have some files in src/main/resources
. During the main program run, I can load them fine using Source.fromResource(pathWithoutSlash)
. But in tests, if I try to use the same method to load them, it returns null unless I copy over the files to src/test/resources
. This is an issue for some large sized files.
Any ideas how to fix this?