}
}
@Test
public void testCallUndefType() {
FamixMethod caller = (FamixMethod) fModel.getElement(fFactory.createMethod("testPackage.UnresolvedCalls.callUndefType()", null));
assertNotNull("FamixModel must contain method testPackage.UnresolvedCalls.callUndefType()", caller);
FamixMethod callee = (FamixMethod) fModel.getElement(fFactory.createMethod("<undef>.NotDef.undefMethod()", null));
assertNotNull("FamixModel must contain method <undef>.NotDef.undefMethod()", callee);
Set<FamixAssociation> lRelations = fModel.getAssociations(caller);
int nrContainsInvocation = TestHelper.containsRelationTo(callee, lRelations);
assertEquals("FamixInvocation relationships from " + caller.getUniqueName() + " to " + callee.getUniqueName(), 1, nrContainsInvocation);
callee = (FamixMethod) fModel.getElement(fFactory.createMethod("<undef>.NotDef2.undefMethod()", null));
assertNotNull("FamixModel must contain method <undef>.NotDef2.undefMethod()", callee);
nrContainsInvocation = TestHelper.containsRelationTo(callee, lRelations);
assertEquals("FamixInvocation relationships from " + caller.getUniqueName() + " to " + callee.getUniqueName(), 2, nrContainsInvocation);
caller = (FamixMethod) fModel.getElement(fFactory.createMethod("testPackage.UnresolvedCalls.callUndefType(<undef>.NotDef)", null));
assertNotNull("FamixModel must contain method testPackage.UnresolvedCalls.callUndefType(<undef>.NotDef)", caller);
callee = (FamixMethod) fModel.getElement(fFactory.createMethod("<undef>.NotDef.undefParameter()", null));
assertNotNull("FamixModel must contain method <undef>.NotDef.undefParameter()", callee);
lRelations = fModel.getAssociations(caller);
nrContainsInvocation = TestHelper.containsRelationTo(callee, lRelations);
assertEquals("FamixInvocation relationships from " + caller.getUniqueName() + " to " + callee.getUniqueName(), 1, nrContainsInvocation);
}