Skip to content

Commit 5a15ccb

Browse files
committed
Add tests related to [LANG-1771]
1 parent 733d575 commit 5a15ccb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/test/java/org/apache/commons/lang3/ClassUtilsTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -581,6 +581,9 @@ public void test_getShortCanonicalName_String() {
581581
}.getClass().getName());
582582
assertNull(new org.apache.commons.lang3.ClassUtilsTest() {
583583
}.getClass().getCanonicalName());
584+
assertEquals("String[]", ClassUtils.getShortCanonicalName(String[].class.getName()));
585+
assertEquals("String[]", ClassUtils.getShortCanonicalName(String[].class.getCanonicalName()));
586+
assertEquals("String[]", ClassUtils.getShortCanonicalName("String[]"));
584587
}
585588

586589
@Test

0 commit comments

Comments
 (0)