You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2025/05/28 17:37:07 UTC
(commons-lang) branch master updated: Add tests related to [LANG-1771]
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-lang.git
The following commit(s) were added to refs/heads/master by this push:
new 5a15ccb62 Add tests related to [LANG-1771]
5a15ccb62 is described below
commit 5a15ccb62eb88ffa41e6b62ac944066fb121afe8
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Wed May 28 13:36:47 2025 -0400
Add tests related to [LANG-1771]
---
src/test/java/org/apache/commons/lang3/ClassUtilsTest.java | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/test/java/org/apache/commons/lang3/ClassUtilsTest.java b/src/test/java/org/apache/commons/lang3/ClassUtilsTest.java
index b2173beb7..9f3b3490b 100644
--- a/src/test/java/org/apache/commons/lang3/ClassUtilsTest.java
+++ b/src/test/java/org/apache/commons/lang3/ClassUtilsTest.java
@@ -581,6 +581,9 @@ public void test_getShortCanonicalName_String() {
}.getClass().getName());
assertNull(new org.apache.commons.lang3.ClassUtilsTest() {
}.getClass().getCanonicalName());
+ assertEquals("String[]", ClassUtils.getShortCanonicalName(String[].class.getName()));
+ assertEquals("String[]", ClassUtils.getShortCanonicalName(String[].class.getCanonicalName()));
+ assertEquals("String[]", ClassUtils.getShortCanonicalName("String[]"));
}
@Test