This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-io.git
The following commit(s) were added to refs/heads/master by this push:
new 19e9918d5 Add standalone test for
PathUtils.getDosFileAttributeView(Path)
19e9918d5 is described below
commit 19e9918d57985cc564aad4cdd7a82e3e2e1ab508
Author: Gary Gregory <[email protected]>
AuthorDate: Thu Jun 6 10:14:32 2024 -0400
Add standalone test for PathUtils.getDosFileAttributeView(Path)
---
src/test/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 4643f6408..93c23c04c 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 class PathUtilsTest extends AbstractTempDirTest {
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 class PathUtilsTest extends AbstractTempDirTest {
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");