Examples of FamixInvocation


Examples of org.evolizer.famix.model.entities.FamixInvocation

        FamixMethod innerConstructor = (FamixMethod) aModel.getElement(aFactory.createMethod("testPackage.ae.Test$Inner.<init>()", null));
        Set<FamixAssociation> lRelations = aModel.getAssociations(caller);
        assertTrue("FamixMethod " + caller.getUniqueName() + " must contain relationships", lRelations.size() > 0);

        // invokes Inner class constructor
        boolean containsInvocationTo = TestHelper.containsRelationTo(new FamixInvocation(caller, innerConstructor), lRelations);
        assertTrue("Missing constructor invocation relationship from " + caller.getUniqueName() + " to " + innerConstructor.getUniqueName(), containsInvocationTo);

        // invokes innerMethod
        containsInvocationTo = TestHelper.containsRelationTo(new FamixInvocation(caller, innerMethod), lRelations);
        assertTrue("Missing invocation relationship from " + caller.getUniqueName() + " to " + innerMethod.getUniqueName(), containsInvocationTo);
    }
View Full Code Here

Examples of org.evolizer.famix.model.entities.FamixInvocation

     * @param caller Methods that calls a method.
     * @param callee Called method.
     * @return FamixInvocation.
     */
    public FamixInvocation createInvocation(FamixMethod caller, FamixMethod callee) {
        return new FamixInvocation(caller, callee);
    }
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.