Examples of IOperation


Examples of net.sf.jmd.metarepresentation.IOperation

        if (!(other instanceof Operation)) {
            return false;
        }

        boolean superEquals = super.equals(other);
        IOperation otherOperation = (IOperation) other;

        boolean parametersSizeEqual = this.parameters.size() == otherOperation
                .getParameters().size();

        boolean parametersContainsEqual = this.parameters
                .containsAll(otherOperation.getParameters());
       
       result = (superEquals && parametersSizeEqual && parametersContainsEqual);

        return result;
    }
View Full Code Here

Examples of net.sf.jmd.metarepresentation.IOperation

    /**
     * <b>The equals method is reflexive:</b> for any reference value x,
     * x.equals(x) should return true.
     */
    public void testOperationEqualsReflexive() {
        IOperation x = new Operation();
        assertTrue(x.equals(x));
    }
View Full Code Here

Examples of net.sf.jmd.metarepresentation.IOperation

    /**
     * <b>The equals method is symmetric:</b> for any reference values x and y,
     * x.equals(y) should return true if and only if y.equals(x) returns true.
     */
    public void testOperationEqualsSymmetric() {
        IOperation x = new Operation();
        IOperation y = new Operation();
        assertTrue(x.equals(y) && y.equals(x));
    }
View Full Code Here

Examples of net.sf.jmd.metarepresentation.IOperation

     * <b>The equals method is transitive:</b> for any reference values x, y,
     * and z, if x.equals(y) returns true and y.equals(z) returns true, then
     * x.equals(z) should return true.
     */
    public void testOperationEqualsTransivity() {
        IOperation x = new Operation();
        IOperation y = new Operation();
        IOperation z = new Operation();
        assertTrue(x.equals(y) && y.equals(z) && x.equals(z));
    }
View Full Code Here

Examples of net.sf.jmd.metarepresentation.IOperation

    /**
     * <b>The equals method is reflexive:</b> for any reference value x,
     * x.equals(x) should return true.
     */
    public void testOperationEqualsReflexive() {
        IOperation x = new Operation();
        assertTrue(x.equals(x));
    }
View Full Code Here

Examples of net.sf.jmd.metarepresentation.IOperation

    /**
     * <b>The equals method is symmetric:</b> for any reference values x and y,
     * x.equals(y) should return true if and only if y.equals(x) returns true.
     */
    public void testOperationEqualsSymmetric() {
        IOperation x = new Operation();
        IOperation y = new Operation();
        assertTrue(x.equals(y) && y.equals(x));
    }
View Full Code Here

Examples of net.sf.jmd.metarepresentation.IOperation

     * <b>The equals method is transitive:</b> for any reference values x, y,
     * and z, if x.equals(y) returns true and y.equals(z) returns true, then
     * x.equals(z) should return true.
     */
    public void testOperationEqualsTransivity() {
        IOperation x = new Operation();
        IOperation y = new Operation();
        IOperation z = new Operation();
        assertTrue(x.equals(y) && y.equals(z) && x.equals(z));
    }
View Full Code Here

Examples of net.sf.jmd.metarepresentation.IOperation

        if (!(other instanceof Operation)) {
            return false;
        }

        boolean superEquals = super.equals(other);
        IOperation otherOperation = (IOperation) other;

        boolean parametersSizeEqual = this.parameters.size() == otherOperation
                .getParameters().size();

        boolean parametersContainsEqual = this.parameters
                .containsAll(otherOperation.getParameters());
       
       result = (superEquals && parametersSizeEqual && parametersContainsEqual);

        return result;
    }
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.