Skip to content

Commit 19e9918

Browse files
committed
Add standalone test for PathUtils.getDosFileAttributeView(Path)
1 parent 9fe52e1 commit 19e9918

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/test/java/org/apache/commons/io/file/PathUtilsTest.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,11 @@ public void testGetBaseNamePathCornerCases() {
250250
assertEquals("", PathUtils.getBaseName(Paths.get("bar/.foo")));
251251
}
252252

253+
@Test
254+
public void testGetDosFileAttributeView() {
255+
assertNotNull(PathUtils.getDosFileAttributeView(current()));
256+
}
257+
253258
@Test
254259
public void testGetExtension() {
255260
assertNull(PathUtils.getExtension(null));
@@ -453,7 +458,7 @@ public void testReadStringSimpleUtf8() throws IOException {
453458
assertEquals(expected, PathUtils.readString(path, StandardCharsets.UTF_8));
454459
assertEquals(expected, PathUtils.readString(path, null));
455460
}
456-
461+
457462
@Test
458463
public void testSetReadOnlyFile() throws IOException {
459464
final Path resolved = tempDirPath.resolve("testSetReadOnlyFile.txt");

0 commit comments

Comments
 (0)