Skip to content

Commit 8040009

Browse files
committed
Add missing test
1 parent c258dae commit 8040009

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
@@ -204,6 +204,12 @@ public void testCreateFile() {
204204
assertEquals(file, TypeHandler.createFile(file.toString()));
205205
}
206206

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+
207213
@Test
208214
public void testCreateValueExistingFile() throws Exception {
209215
try (FileInputStream result = TypeHandler.createValue("src/test/resources/org/apache/commons/cli/existing-readable.file",

0 commit comments

Comments
 (0)