Package org.evolizer.famix.model.entities

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


        FamixClass classSum = (FamixClass) aModel.getElement(aFactory.createClass("testPackage.Sum", null));

        // check method rel. container
        Set<FamixAssociation> lRelations = aModel.getAssociations(method);
        assertTrue("FamixMethod " + method.getUniqueName() + " must contain relationships", lRelations.size() > 0);
        boolean containsRelTo = TestHelper.containsRelationTo(new FamixCastTo(method, classSum), lRelations);
        assertTrue("Missing castTo relationship from " + method.getUniqueName() + " to " + classSum.getUniqueName(), containsRelTo);

        // check castTo class rel. container
        lRelations = aModel.getAssociations(classSum);
        assertTrue("FamixClass " + classSum.getUniqueName() + " must contain relationships", lRelations.size() > 0);
        containsRelTo = TestHelper.containsRelationTo(new FamixCastTo(method, classSum), lRelations);
        assertTrue("Missing castTo relationship from " + method.getUniqueName() + " to " + classSum.getUniqueName(), containsRelTo);
    }
View Full Code Here


     * @param method FamixMethod that contains the cast expression.
     * @param castTo Type which the object/class is casted to.
     * @return FamixCastTo.
     */
    public FamixCastTo createCastTo(FamixMethod method, FamixClass castTo) {
        return new FamixCastTo(method, castTo);
    }
View Full Code Here

TOP

Related Classes of org.evolizer.famix.model.entities.FamixCastTo

Copyright © 2018 www.massapicom. 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.