From 19e9918d57985cc564aad4cdd7a82e3e2e1ab508 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Thu, 6 Jun 2024 10:14:32 -0400 Subject: [PATCH] Add standalone test for PathUtils.getDosFileAttributeView(Path) --- .../java/org/apache/commons/io/file/PathUtilsTest.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/test/java/org/apache/commons/io/file/PathUtilsTest.java b/src/test/java/org/apache/commons/io/file/PathUtilsTest.java index 4643f640884..93c23c04cba 100644 --- a/src/test/java/org/apache/commons/io/file/PathUtilsTest.java +++ b/src/test/java/org/apache/commons/io/file/PathUtilsTest.java @@ -250,6 +250,11 @@ public void testGetBaseNamePathCornerCases() { assertEquals("", PathUtils.getBaseName(Paths.get("bar/.foo"))); } + @Test + public void testGetDosFileAttributeView() { + assertNotNull(PathUtils.getDosFileAttributeView(current())); + } + @Test public void testGetExtension() { assertNull(PathUtils.getExtension(null)); @@ -453,7 +458,7 @@ public void testReadStringSimpleUtf8() throws IOException { assertEquals(expected, PathUtils.readString(path, StandardCharsets.UTF_8)); assertEquals(expected, PathUtils.readString(path, null)); } - + @Test public void testSetReadOnlyFile() throws IOException { final Path resolved = tempDirPath.resolve("testSetReadOnlyFile.txt");