Examples of Difference


Examples of com.asakusafw.testdriver.core.Difference

        try {
            Simple expected = new Simple();
            expected.text = "expected";
            Simple actual = new Simple();
            actual.text = "actual";
            sink.put(new Difference(
                    SIMPLE.toReflection(expected),
                    SIMPLE.toReflection(actual),
                    "testing"));
        } finally {
            sink.close();
View Full Code Here

Examples of com.cloudbees.diff.Difference

        if (differences.size() > 0) {
            String t1 = firstText.toString();
            if (t1.length() == 0) t1 = null;
            String t2 = secondText.toString();
            if (t2.length() == 0) t2 = null;
            Difference d = differences.remove(differences.size() - 1);
            differences.add(new Difference(d.getType(), d.getFirstStart(), d.getFirstEnd(),
            d.getSecondStart(), d.getSecondEnd(), t1, t2));
            firstText.delete(0, firstText.length());
            secondText.delete(0, secondText.length());
        }
    }
View Full Code Here

Examples of com.hp.hpl.jena.graph.compose.Difference

     
    public void testDifference()
    {
        Graph g1 = graphWith( "x R y; p R q" );
        Graph g2 = graphWith( "r A s; x R y" );
        Difference d = new Difference( g1, g2 );
        assertOmits( "Difference", d, "x R y" );
        assertContains( "Difference", "p R q", d );
    assertOmits( "Difference", d, "r A s" );
        if (d.size() != 1)
            fail( "oops: size of difference is not 1" );
        d.add( triple( "cats eat cheese" ) );
        assertContains( "Difference.L", "cats eat cheese", g1 );
        assertOmits( "Difference.R", g2, "cats eat cheese" );
    }
View Full Code Here

Examples of jmathexpr.set.op.Difference

        return Precedence.Multiplication;
    }

    @Override
    public Set domain() {
        return new CartesianProduct(Reals.getInstance(), new Difference(Reals.getInstance(), new FiniteSet(Naturals.zero())));
    }
View Full Code Here

Examples of liquibase.diff.Difference

     */
    private void ignoreConversionFromFloatToDouble64(DiffResult diffResult) throws Exception {
        Map<DatabaseObject, ObjectDifferences> differences = diffResult.getChangedObjects();
        for (Iterator<Entry<DatabaseObject, ObjectDifferences>> iterator = differences.entrySet().iterator(); iterator.hasNext(); ) {
            Entry<DatabaseObject, ObjectDifferences> changedObject = iterator.next();
            Difference difference = changedObject.getValue().getDifference("type");
            if (difference != null && difference.getReferenceValue() != null && difference.getComparedValue() != null
                    && difference.getReferenceValue().toString().equals("float") && difference.getComparedValue().toString().startsWith("DOUBLE(64)")) {
                log.info("Ignoring difference " + changedObject.getKey().toString() + " " + difference.toString());
                changedObject.getValue().removeDifference(difference.getField());
            }
        }
    }
View Full Code Here

Examples of net.sf.jmd.evaluation.impl.Difference

    }

    public IReport setUpTestReport(){

        IDifference diffHigh = new Difference();
        diffHigh.setSeverity(Severity.HIGH);
        diffHigh.setDescription("The interface IFoo has been brutally deleted "
                + "from the Architecture!!");

        IDifference diffMedium = new Difference();
        diffMedium.setSeverity(Severity.MEDIUM);
        diffMedium.setDescription("The interface IBar has been added to"
                + " the Architecture. Thx! :o)");

        IDifference diffLow = new Difference();
        diffLow.setSeverity(Severity.LOW);
        diffLow.setDescription("The class FooImpl has a new private method "
                + "generateStringFromODS");

        IReport report = new Report();
        report.setArchitect("Jan Hinzmann");
        report.setDate(new Date(System.currentTimeMillis()));
View Full Code Here

Examples of net.sf.jmd.evaluation.impl.Difference

                List<IMember> addedMethods = checkPublicMethods(
                        getPublicMethods(anInterface),
                        getPublicMethods(implementingClass));

                if (!addedMethods.isEmpty()) {
                    IDifference difference = new Difference();
                    difference.setDescription("The class "
                            + implementingClass.getIdentifier()
                            + " has a public method that is not specified in"
                            + " its interface " + anInterface.getIdentifier());
                    difference.setDMElement((IModelElement)implementingClass);
                    difference.setSeverity(super.getSeverity());
                    difference.setStatus(IDifference.Status.MODIFIED);
                   
                    result.add(difference);
                }
            }
        }
View Full Code Here

Examples of net.sf.jmd.evaluation.impl.Difference

            }

            // now we have the added members for this interface

            for (IParameter parameter : removedParameters) {
                IDifference difference = new Difference();
                difference.setName(super.getName());
                difference.setSeverity(super.getSeverity());
                difference.setDescription("The parameter \""
                        + parameter.getIdentifier()
                        + "\" has been removed from the method \""
                        + amElement.getIdentifier() + "\".");
                difference.setLayer(IDifference.Layer.PARAMETER);
                difference.setStatus(IDifference.Status.REMOVED);
                difference.setParentElement(amElement);
                difference.setAMElement((IModelElement) parameter);
                results.add(difference);
            }

        }
        return results;
View Full Code Here

Examples of net.sf.jmd.evaluation.impl.Difference

                }
            }
        }

        for (IModelElement amItem : modifiedInterfaces.keySet()) {
            IDifference difference = new Difference();
            difference.setName(super.getName());
            difference.setSeverity(super.getSeverity());
            difference.setDescription("The " + ((IModelItem) amItem).getType()
                    + " \"" + amItem.getIdentifier()
                    + "\" has been modified.");
            difference.setLayer(IDifference.Layer.MODELITEM);
            difference.setStatus(IDifference.Status.MODIFIED);
            difference.setAMElement(amItem);
            difference.setDMElement(modifiedInterfaces.get(amItem));
            results.add(difference);
        }

        return results;
    }
View Full Code Here

Examples of net.sf.jmd.evaluation.impl.Difference

                }
            }
        }

        for (IModelElement item : addedModelElements) {
            IDifference difference = new Difference();
            difference.setName(super.getName());
            difference.setSeverity(super.getSeverity());
            difference.setDescription("The " + ((IModelItem) item).getType()
                    + " \"" + item.getIdentifier()
                    + "\" has been added to the model.");
            difference.setLayer(IDifference.Layer.MODELITEM);
            difference.setStatus(IDifference.Status.ADDED);
            difference.setDMElement(item);
            results.add(difference);
        }

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