Assert.assertNotNull("There must be unresolved calls for method testPackage.UnresolvedCalls.handleMultipleMatches()", fUnresolvedInvocationHandler.getUnresolvedCalls().get(caller));
// determine the unresolved method call
List<UnresolvedMethodInvocation> unresolvedCalls = fUnresolvedInvocationHandler.getUnresolvedCalls().get(caller);
UnresolvedMethodInvocation selectedCall = null;
for (UnresolvedMethodInvocation unresolved : unresolvedCalls) {
if (unresolved.getStatement().equals("ds.foo(nd)")) {
selectedCall = unresolved;
}
}
Assert.assertEquals("Caller of statement ds.foo(nd) not equal ", caller, selectedCall.getCaller());
Assert.assertNotNull("There must be an unresolved call for the statement ds.foo(nd)", selectedCall);
Assert.assertEquals("Wrong number of matched callees for unresolved call ds.foo(nd)", 2, selectedCall.getMatchesByAllParametersType().size());
Set<FamixAssociation> lRelations = fModel.getAssociations(caller);
int nrContainsInvocation = TestHelper.containsRelationTo(callee, lRelations);
assertEquals("FamixInvocation relationships from " + caller.getUniqueName() + " to " + callee.getUniqueName(), 1, nrContainsInvocation);
}