Examples of UnresolvedMethodInvocation


Examples of org.evolizer.famix.importer.unresolved.UnresolvedMethodInvocation

        int successfullResolvingCounter = countResolvedArguments();

        if ((getMethodBinding() != null) && (successfullResolvingCounter == getArguments().size())) {
            lMethod = createMethod();
        } else {
            lMethod = rememberUnresolvedInvocation(new UnresolvedMethodInvocation(getCurrMethod(), this));
        }
        return lMethod;
    }
View Full Code Here

Examples of org.evolizer.famix.importer.unresolved.UnresolvedMethodInvocation

    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);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.