コード例 #1
0
 @Test
 public void testGetShortNameForInnerClass() {
   String className = ClassUtils.getShortName(InnerClass.class);
   assertEquals("Class name did not match", "ClassUtilsTests.InnerClass", className);
 }
コード例 #2
0
 @Test
 public void testGetShortNameForMultiDimensionalObjectArrayClass() {
   String className = ClassUtils.getShortName(Object[][].class);
   assertEquals("Class name did not match", "Object[][]", className);
 }
コード例 #3
0
 @Test
 public void testGetShortNameForMultiDimensionalPrimitiveArrayClass() {
   String className = ClassUtils.getShortName(byte[][][].class);
   assertEquals("Class name did not match", "byte[][][]", className);
 }
コード例 #4
0
 @Test
 public void testGetShortName() {
   String className = ClassUtils.getShortName(getClass());
   assertEquals("Class name did not match", "ClassUtilsTests", className);
 }