Snippets tagged “resources”
1 snippet uses this tag.
- How to get the path of src/test/resources directory in JUnit?Java
In JUnit, you can use the getClass().getClassLoader().getResource("").getPath() method to get the path of the src/test/resources directory.