Skip to content

Commit

Permalink
Add standalone test for PathUtils.getDosFileAttributeView(Path)
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Jun 6, 2024
1 parent 9fe52e1 commit 19e9918
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 @@ -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));
Expand Down Expand Up @@ -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");
Expand Down

0 comments on commit 19e9918

Please sign in to comment.