Tag Archives: Java

Find the full Path of a Resource File in the Classpath

Hardcoding the filesystem location of a file in your tests, can become a maintenance problem. If the resource file changes location, you’ll have to update and re-compile your code to match the new path. One way to solve this problem is to add the file to the Classpath and get it as a Resource. import […]

Posted in Java | Also tagged | Leave a comment