瀏覽代碼

Replaced OS-Check with Assumptions

See: https://github.com/cryptomator/cryptomator/pull/2996#discussion_r1269461956
JaniruTEC 1 年之前
父節點
當前提交
1942850888
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      src/test/java/org/cryptomator/common/mount/MountWithinParentUtilTest.java

+ 3 - 2
src/test/java/org/cryptomator/common/mount/MountWithinParentUtilTest.java

@@ -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