Skip to content

Commit

Permalink
tests: use temp dir real path
Browse files Browse the repository at this point in the history
  • Loading branch information
mjeanroy committed Nov 28, 2023
1 parent 6ff304b commit b5b3261
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ void it_should_get_original_jetty() {

@Test
void it_should_add_parent_classloader(@TempDir Path tmp) throws Exception {
final File tmpFile = Files.createTempFile(tmp, null, null).toFile();
final File tmpFile = Files.createTempFile(tmp.toRealPath(), null, null).toFile();
final File dir = tmpFile.getParentFile();
final URL url = dir.toURI().toURL();
final String name = tmpFile.getName();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ void it_should_get_original_jetty() {

@Test
void it_should_add_parent_classloader(@TempDir Path tmp) throws Exception {
final File tmpFile = Files.createTempFile(tmp, null, null).toFile();
final File tmpFile = Files.createTempFile(tmp.toRealPath(), null, null).toFile();
final File dir = tmpFile.getParentFile();
final URL url = dir.toURI().toURL();
final String name = tmpFile.getName();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ void it_should_get_original_jetty() {

@Test
void it_should_add_parent_classloader(@TempDir Path tmp) throws Exception {
final File tmpFile = Files.createTempFile(tmp, null, null).toFile();
final File tmpFile = Files.createTempFile(tmp.toRealPath(), null, null).toFile();
final File dir = tmpFile.getParentFile();
final URL url = dir.toURI().toURL();
final String name = tmpFile.getName();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ void it_should_get_original_jetty() {

@Test
void it_should_add_parent_classloader(@TempDir Path tmp) throws Exception {
final File tmpFile = Files.createTempFile(tmp, null, null).toFile();
final File tmpFile = Files.createTempFile(tmp.toRealPath(), null, null).toFile();
final File dir = tmpFile.getParentFile();
final URL url = dir.toURI().toURL();
final String name = tmpFile.getName();
Expand Down

0 comments on commit b5b3261

Please sign in to comment.