}
public void testDBCHierarchy() {
JavaClassToDBCConverter converter = new JavaClassToDBCConverter(ChildClass.class);
HashMap<String, DescriptionBuilderComposite> dbcMap = converter.produceDBC();
DescriptionBuilderComposite dbc =
dbcMap.get("org.apache.axis2.jaxws.description.builder.converter.ChildClass");
assertNotNull(dbc);
List<MethodDescriptionComposite> mdcList = sortList(dbc.getMethodDescriptionsList());
assertNotNull(mdcList);
assertEquals(mdcList.size(), 3);
assertEquals("<init>", mdcList.get(0).getMethodName());
assertEquals("doAbstract", mdcList.get(1).getMethodName());
assertEquals("extraMethod", mdcList.get(2).getMethodName());
dbc = dbcMap.get("org.apache.axis2.jaxws.description.builder.converter.ParentClass");
assertNotNull(dbc);
mdcList = sortList(dbc.getMethodDescriptionsList());
assertNotNull(mdcList);
assertEquals(mdcList.size(), 2);
assertEquals("<init>", mdcList.get(0).getMethodName());
assertEquals("doParentAbstract", mdcList.get(1).getMethodName());
dbc = dbcMap.get("org.apache.axis2.jaxws.description.builder.converter.ServiceInterface");
assertNotNull(dbc);
mdcList = sortList(dbc.getMethodDescriptionsList());
assertNotNull(mdcList);
assertEquals(mdcList.size(), 1);
assertEquals("doAbstract", mdcList.get(0).getMethodName());
dbc = dbcMap.get("org.apache.axis2.jaxws.description.builder.converter.CommonService");
assertNotNull(dbc);
mdcList = sortList(dbc.getMethodDescriptionsList());
assertNotNull(mdcList);
assertEquals(mdcList.size(), 1);
assertEquals("extraMethod", mdcList.get(0).getMethodName());
dbc = dbcMap.get(
"org.apache.axis2.jaxws.description.builder.converter.ParentServiceInterface");
assertNotNull(dbc);
mdcList = sortList(dbc.getMethodDescriptionsList());
assertNotNull(mdcList);
assertEquals(mdcList.size(), 1);
assertEquals("doParentAbstract", mdcList.get(0).getMethodName());
dbc = dbcMap.get("org.apache.axis2.jaxws.description.builder.converter.AbstractService");
assertNotNull(dbc);
mdcList = sortList(dbc.getMethodDescriptionsList());
assertNotNull(mdcList);
assertEquals(mdcList.size(), 2);
assertEquals("<init>", mdcList.get(0).getMethodName());
assertEquals("someAbstractMethod", mdcList.get(1).getMethodName());