Package org.evolizer.famix.model.entities

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


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

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

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


     * @param method FamixMethod that contains the instanceof expression.
     * @param type Type against which the object is checked.
     * @return FamixCheckInstanceOf.
     */
    public FamixCheckInstanceOf createCheckInstanceOf(FamixMethod method, FamixClass type) {
        return new FamixCheckInstanceOf(method, type);
    }
View Full Code Here

TOP

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

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.