Skip to content

Commit

Permalink
Fix for commons-io:commons-io from 2.11.0 to 2.15.1
Browse files Browse the repository at this point in the history
  • Loading branch information
damianszczepanik committed Mar 3, 2024
1 parent a4d43b1 commit 01fbf58
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import java.io.File;
import java.io.FileFilter;
import java.io.IOException;
import java.nio.file.InvalidPathException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
Expand Down Expand Up @@ -187,10 +188,10 @@ void copyResources_OnInvalidPath_ThrowsException() throws Exception {

// then
try {
Whitebox.invokeMethod(builder, "copyResources", dir.getAbsolutePath(), new String[]{"someFile"});
Whitebox.invokeMethod(builder, "copyResources", dir.getAbsolutePath(), new String[] { "someFile" });
fail("Copying should fail!");
// exception depends of operating system
} catch (ValidationException | NullPointerException e) {
// exception depends on operating system
} catch (ValidationException | InvalidPathException | NullPointerException e) {
// passed
}
}
Expand Down

0 comments on commit 01fbf58

Please sign in to comment.