@Test public void testGetShortNameForInnerClass() { String className = ClassUtils.getShortName(InnerClass.class); assertEquals("Class name did not match", "ClassUtilsTests.InnerClass", className); }
@Test public void testGetShortNameForMultiDimensionalObjectArrayClass() { String className = ClassUtils.getShortName(Object[][].class); assertEquals("Class name did not match", "Object[][]", className); }
@Test public void testGetShortNameForMultiDimensionalPrimitiveArrayClass() { String className = ClassUtils.getShortName(byte[][][].class); assertEquals("Class name did not match", "byte[][][]", className); }
@Test public void testGetShortName() { String className = ClassUtils.getShortName(getClass()); assertEquals("Class name did not match", "ClassUtilsTests", className); }