Skip to content

Commit

Permalink
Fix urls
Browse files Browse the repository at this point in the history
  • Loading branch information
JPercival committed May 3, 2024
1 parent 717a2b0 commit 8004ec1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,7 @@ protected void copyResourcesToTargetDir(String targetDirectory, String resourceD
File outputDirectory = new File(targetDirectory);
outputDirectory.mkdirs();
URL url = RefreshTest.class.getResource(resourceDirectoryPath);
String path = url.getPath();
File resourceDirectory = new File(path);
File resourceDirectory = FileUtils.toFile(url);
FileUtils.copyDirectory(resourceDirectory, outputDirectory);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public void testBundledFiles() throws IOException {
}

// Call the method under test, which should use HttpClientUtils.post
copyResourcesToTargetDir("target" + separator + "refreshIG", "testfiles" + separator + "refreshIG");
copyResourcesToTargetDir("target" + separator + "refreshIG", "testfiles/refreshIG");
// build ini object
File iniFile = new File(INI_LOC);
String iniFileLocation = iniFile.getAbsolutePath();
Expand Down

0 comments on commit 8004ec1

Please sign in to comment.