aModel = aDAOModel.loadModel(createdModel.getName());
}
@Test
public void testUnresolvedInheritance(){
FamixClass clazz = (FamixClass)aModel.getElement(aFactory.createClass("testPackage.Test",null));
assertNotNull(clazz);
FamixClass superClass = (FamixClass) aModel.getElement(aFactory.createClass("<undef>.SomeClass",null));
assertNotNull(superClass);
Set<FamixAssociation> lRelations = aModel.getAssociations(superClass);
assertTrue("FamixClass " + superClass.getUniqueName() + " must contain relationships", lRelations.size() > 0);
int containsInheritsTo = TestHelper.containsRelationTo(superClass, lRelations);
assertTrue("Missing inheritance relationship in base class" + clazz.getUniqueName() + " to " + superClass.getUniqueName(), containsInheritsTo > 0);
lRelations = aModel.getAssociations(clazz);
assertTrue("FamixClass " + clazz.getUniqueName() + " must contain relationships", lRelations.size() > 0);
containsInheritsTo = TestHelper.containsRelationTo(superClass, lRelations);
assertTrue("Missing inheritance relationship in sub class " + clazz.getUniqueName() + " to " + superClass.getUniqueName(), containsInheritsTo > 0);
}