I have a file under resources folder src/test/resources/file.xml
and another under src/test/resources/test.properties
. I want to set a property in properties file to point to file.xml
. How can I achieve this?
Say I have a property
test.file = file.xml
and my java class reads the file as follows:
File cert = new File(fileName); // fileName is the value of test.file
This does not work however.