Skip to content

Commit

Permalink
Fix JarUtilsTest (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
ABHAY0O7 authored Mar 23, 2021
1 parent f8d1257 commit 640d822
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ void setUp() {
try {
// make a copy of the directory containing the JAR files
FileUtils.copyDirectory(
originalDir,
copyDir
originalDir, // If directory is empty/Null then NPE will be thrown.
copyDir // If directory is empty/Null then NPE will be thrown.
);
} catch (IOException e) {
} catch (IOException | NullPointerException e) {
log.error("Error copying the directory: src/test/resources/JarUtilsResources");
}
}
Expand All @@ -53,7 +53,7 @@ void whenDecompressJarFiles_thenJarFilesAreRemoved() throws RuntimeException, IO
if (jcabiSSHJar.exists() && jcabiXMLJar.exists()) {
decompress();
assertFalse(FileUtils.directoryContains(copyDir, jcabiSSHJar));
assertFalse(FileUtils.directoryContains(copyDir, jcabiSSHJar));
assertFalse(FileUtils.directoryContains(copyDir, jcabiXMLJar));
}
}

Expand Down

0 comments on commit 640d822

Please sign in to comment.