I know I can load a file from src/test/resources with:
getClass().getResource(\"somefile\").getFile()
But how can I get the full path to th
If it's a spring project, we can use the below code to get files from src/test/resource folder.
File file = ResourceUtils.getFile(this.getClass().getResource("/some_file.txt"));