We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c258dae commit 8040009Copy full SHA for 8040009
1 file changed
src/test/java/org/apache/commons/cli/TypeHandlerTest.java
@@ -204,6 +204,12 @@ public void testCreateFile() {
204
assertEquals(file, TypeHandler.createFile(file.toString()));
205
}
206
207
+ @Test
208
+ public void testCreateURL() throws ParseException, MalformedURLException {
209
+ final URL file = Paths.get("").toAbsolutePath().toUri().toURL();
210
+ assertEquals(file, TypeHandler.createURL(file.toString()));
211
+ }
212
+
213
@Test
214
public void testCreateValueExistingFile() throws Exception {
215
try (FileInputStream result = TypeHandler.createValue("src/test/resources/org/apache/commons/cli/existing-readable.file",
0 commit comments