Skip to content

Commit c258dae

Browse files
committed
Testing TypeHandler.createFile() should not have been removed
1 parent 1e98376 commit c258dae

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/test/java/org/apache/commons/cli/TypeHandlerTest.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,12 @@ public void testCreateDate(final Date date) {
198198
assertEquals(date, TypeHandler.createDate(date.toString()));
199199
}
200200

201+
@Test
202+
public void testCreateFile() {
203+
final File file = new File("").getAbsoluteFile();
204+
assertEquals(file, TypeHandler.createFile(file.toString()));
205+
}
206+
201207
@Test
202208
public void testCreateValueExistingFile() throws Exception {
203209
try (FileInputStream result = TypeHandler.createValue("src/test/resources/org/apache/commons/cli/existing-readable.file",

0 commit comments

Comments
 (0)