mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-05-29 16:10:19 +00:00
Stopped wrapping IOEs as UncheckedIOEs
See: https://github.com/cryptomator/cryptomator/pull/2996#discussion_r1269444937 https://github.com/cryptomator/cryptomator/pull/2996#discussion_r1269445672 https://github.com/cryptomator/cryptomator/pull/2996#discussion_r1269445894
This commit is contained in:
@@ -9,7 +9,6 @@ import org.junit.jupiter.api.io.TempDir;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.io.UncheckedIOException;
|
||||
import java.nio.file.DirectoryNotEmptyException;
|
||||
import java.nio.file.Files;
|
||||
import java.nio.file.Path;
|
||||
@@ -79,10 +78,9 @@ class MountWithinParentUtilTest {
|
||||
Files.createFile(hideaway.resolve("dummy"));
|
||||
Files.createDirectory(mount);
|
||||
|
||||
var exc = assertThrows(UncheckedIOException.class, () -> {
|
||||
assertThrows(DirectoryNotEmptyException.class, () -> {
|
||||
prepareParentNoMountPoint(mount);
|
||||
});
|
||||
assertInstanceOf(DirectoryNotEmptyException.class, exc.getCause());
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user