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 e280f3f Add missing test
e280f3f is described below
commit e280f3fb33bd61f41c9eb5694eea36c4bc5cf2c4
Author: Gary Gregory <[email protected]>
AuthorDate: Sun Apr 7 13:18:36 2024 -0400
Add missing test
---
src/test/java/org/apache/commons/cli/TypeHandlerTest.java | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/test/java/org/apache/commons/cli/TypeHandlerTest.java
b/src/test/java/org/apache/commons/cli/TypeHandlerTest.java
index b9934fd..5a3abe0 100644
--- a/src/test/java/org/apache/commons/cli/TypeHandlerTest.java
+++ b/src/test/java/org/apache/commons/cli/TypeHandlerTest.java
@@ -210,6 +210,11 @@ public class TypeHandlerTest {
assertEquals(file, TypeHandler.createFile(file.toString()));
}
+ @Test
+ public void testCreateFiles() {
+ assertThrows(UnsupportedOperationException.class, () ->
TypeHandler.createFiles(null));
+ }
+
@Test
public void testCreateURL() throws ParseException, MalformedURLException {
final URL file = Paths.get("").toAbsolutePath().toUri().toURL();