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-cli.git

commit c258dae36fd9d1543505fea8ec818631c8a3e34f
Author: Gary Gregory <[email protected]>
AuthorDate: Sun Apr 7 13:12:49 2024 -0400

    Testing TypeHandler.createFile() should not have been removed
---
 src/test/java/org/apache/commons/cli/TypeHandlerTest.java | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/test/java/org/apache/commons/cli/TypeHandlerTest.java 
b/src/test/java/org/apache/commons/cli/TypeHandlerTest.java
index cd1c33d..e2a3bfc 100644
--- a/src/test/java/org/apache/commons/cli/TypeHandlerTest.java
+++ b/src/test/java/org/apache/commons/cli/TypeHandlerTest.java
@@ -198,6 +198,12 @@ public class TypeHandlerTest {
         assertEquals(date, TypeHandler.createDate(date.toString()));
     }
 
+    @Test
+    public void testCreateFile() {
+        final File file = new File("").getAbsoluteFile();
+        assertEquals(file, TypeHandler.createFile(file.toString()));
+    }
+
     @Test
     public void testCreateValueExistingFile() throws Exception {
         try (FileInputStream result = 
TypeHandler.createValue("src/test/resources/org/apache/commons/cli/existing-readable.file",

Reply via email to