Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save JorgenRingen/7c049265d2c9d4187b9e7a763bfad21d to your computer and use it in GitHub Desktop.
Save JorgenRingen/7c049265d2c9d4187b9e7a763bfad21d to your computer and use it in GitHub Desktop.
Testfile located in src/test/resources/testdata/my-test-data.xml.
src/test/resources is current directory when running the test, so not needed in path.
new String(Files.readAllBytes(Paths.get(this.getClass().getResource("/testdata/my-test-data.xml").getPath())))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment