Skip to content

Commit

Permalink
Adjusty test for macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Jun 6, 2024
1 parent cf12941 commit 9a7a963
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/test/java/org/apache/commons/io/file/PathUtilsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,12 @@ public void testGetBaseNamePathCornerCases() {
@Test
public void testGetDosFileAttributeView() {
// dir
assertNotNull(PathUtils.getDosFileAttributeView(current()));
final DosFileAttributeView dosFileAttributeView = PathUtils.getDosFileAttributeView(current());
if (SystemUtils.IS_OS_MAC) {
assertNull(dosFileAttributeView);
} else {
assertNotNull(dosFileAttributeView);
}
// missing file
final Path path = Paths.get("this-file-does-not-exist-at.all");
assertFalse(Files.exists(path));
Expand Down

0 comments on commit 9a7a963

Please sign in to comment.