mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-05-18 18:51:26 +00:00
Replaced OS-Check with Assumptions
See: https://github.com/cryptomator/cryptomator/pull/2996#discussion_r1269461956
This commit is contained in:
@@ -25,6 +25,7 @@ import static org.junit.jupiter.api.Assertions.assertFalse;
|
||||
import static org.junit.jupiter.api.Assertions.assertInstanceOf;
|
||||
import static org.junit.jupiter.api.Assertions.assertThrows;
|
||||
import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
import static org.junit.jupiter.api.Assumptions.assumeTrue;
|
||||
|
||||
class MountWithinParentUtilTest {
|
||||
|
||||
@@ -55,7 +56,7 @@ class MountWithinParentUtilTest {
|
||||
|
||||
prepareParentNoMountPoint(mount);
|
||||
|
||||
assertTrue(!SystemUtils.IS_OS_WINDOWS || isHidden(hideaway));
|
||||
assumeTrue(isHidden(hideaway));
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -119,7 +120,7 @@ class MountWithinParentUtilTest {
|
||||
|
||||
prepareParentNoMountPoint(mount);
|
||||
assertTrue(Files.notExists(mount, NOFOLLOW_LINKS));
|
||||
assertTrue(!SystemUtils.IS_OS_WINDOWS || isHidden(hideaway));
|
||||
assumeTrue(isHidden(hideaway));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user