Skip to content

Commit a941407

Browse files
committed
Add testGetIllegalFileNameChars
1 parent d3cf8b0 commit a941407

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/test/java/org/apache/commons/io/FileSystemTest.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
import static org.junit.jupiter.api.Assertions.assertEquals;
2121
import static org.junit.jupiter.api.Assertions.assertFalse;
22+
import static org.junit.jupiter.api.Assertions.assertNotSame;
2223
import static org.junit.jupiter.api.Assertions.assertTrue;
2324

2425
import org.apache.commons.lang3.SystemUtils;
@@ -49,6 +50,12 @@ void testGetCurrent() {
4950
}
5051
}
5152

53+
@Test
54+
void testGetIllegalFileNameChars() {
55+
final FileSystem current = FileSystem.getCurrent();
56+
assertNotSame(current.getIllegalFileNameChars(), current.getIllegalFileNameChars());
57+
}
58+
5259
@Test
5360
void testIsLegalName() {
5461
for (final FileSystem fs : FileSystem.values()) {

0 commit comments

Comments
 (0)