Github user zmacomber commented on a diff in the pull request:
https://github.com/apache/commons-lang/pull/358#discussion_r225537457
--- Diff: src/test/java/org/apache/commons/lang3/ClassUtilsTest.java ---
@@ -1202,6 +1206,56 @@ public void testGetInnerClass() throws
ClassNotFoundException {
assertEquals( Inner.DeeplyNested.class, ClassUtils.getClass(
"org.apache.commons.lang3.ClassUtilsTest$Inner.DeeplyNested" ) );
}
+ @Test
+ public void testGetBaseClassesExtends() throws Exception {
+ List<AnotherParent> classes =
ClassUtils.getBaseClasses(AnotherParent.class,
"org.apache.commons.lang3.reflect.testbed");
+ assertTrue(classes.size() > 0);
--- End diff --
This is a good idea but the Objects under test are hard to verify...I
believe the getBaseClasses() will fail if the Objects returned are invalid.
---