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


The following commit(s) were added to refs/heads/master by this push:
     new 8040009  Add missing test
8040009 is described below

commit 8040009eb7bec0ab0cd11c8b5dcf37de758952e5
Author: Gary Gregory <[email protected]>
AuthorDate: Sun Apr 7 13:15:02 2024 -0400

    Add missing test
---
 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 e2a3bfc..9dc4b1f 100644
--- a/src/test/java/org/apache/commons/cli/TypeHandlerTest.java
+++ b/src/test/java/org/apache/commons/cli/TypeHandlerTest.java
@@ -204,6 +204,12 @@ public class TypeHandlerTest {
         assertEquals(file, TypeHandler.createFile(file.toString()));
     }
 
+    @Test
+    public void testCreateURL() throws ParseException, MalformedURLException {
+        final URL file = Paths.get("").toAbsolutePath().toUri().toURL();
+        assertEquals(file, TypeHandler.createURL(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