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 b5dfa54 Add missing test
b5dfa54 is described below
commit b5dfa54080610d9a5381357b304735e433b72aee
Author: Gary Gregory <[email protected]>
AuthorDate: Sun Apr 7 13:17:03 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 9dc4b1f..b9934fd 100644
--- a/src/test/java/org/apache/commons/cli/TypeHandlerTest.java
+++ b/src/test/java/org/apache/commons/cli/TypeHandlerTest.java
@@ -192,6 +192,12 @@ public class TypeHandlerTest {
}
}
+ @Test
+ public void testCreateClass() throws ParseException {
+ final Class<?> cls = getClass();
+ assertEquals(cls, TypeHandler.createClass(cls.getName()));
+ }
+
@ParameterizedTest
@MethodSource("createDateFixtures")
public void testCreateDate(final Date date) {