Package net.sf.jmd.report.impl

Examples of net.sf.jmd.report.impl.Report


   
    /**
     * Evaluates all known Checks in the order they have been added.
     */
    public IReport evaluate() {
        IReport result = new Report();
        result.setDate(new GregorianCalendar().getTime());

        for (ICheck check : checks) {
            List<IDifference> differences = check
                    .check(result.getDifferences());
            result.addAll(differences);
        }

        return result;
    }
View Full Code Here


        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()));
        report.add(diffHigh);
        report.add(diffMedium);
        report.add(diffLow);

        IReporter htmlReporter = ReporterFactory.create(ReportStyle.HTML);
        htmlReporter.report(report);// the report is now stored on the harddrive
       
        return report;
View Full Code Here

    /**
     * Test method for {@link de.dlr.sistec.modi.checks.impl
     *  .CheckTemplate#Check()}.
     */
    public void testCheck() {
        List<IDifference> differences = new Report().getDifferences();
        assertNotNull(check.check(differences));
        assertTrue(check.check(differences) instanceof List);
        assertTrue(check.check(differences).isEmpty());
    }
View Full Code Here

     * Test method for evaluate.
     * {@link de.dlr.sistec.modi.evaluation.checks.ModelItemsRemoved#
     * evaluate(java.util.List, java.util.List)}.
     */
    public void testInterfacesRemoved() {
        IReport report = new Report();
        List<IDifference> differencesFound = interfacesRemovedCheck
                .check(report.getDifferences());

        assertNotNull("There should be at least an empty list of differences",
                differencesFound);
        int differences = differencesFound.size();
        assertTrue("There must be 1 difference, found: " + differences,
View Full Code Here

    /* (non-Javadoc)
     * @see junit.framework.TestCase#setUp()
     */
    protected void setUp() throws Exception {
        super.setUp();
        report = new Report();
    }
View Full Code Here

   
    /**
     * Evaluates all known Checks in the order they have been added.
     */
    public IReport evaluate() {
        IReport result = new Report();
        result.setDate(new GregorianCalendar().getTime());

        for (ICheck check : checks) {
            List<IDifference> differences = check
                    .check(result.getDifferences());
            result.addAll(differences);
        }

        return result;
    }
View Full Code Here

     * Test method for evaluate.
     * {@link de.dlr.sistec.modi.evaluation.checks.ModelItemsRemoved#
     * evaluate(java.util.List, java.util.List)}.
     */
    public void testInterfacesRemoved() {
        IReport report = new Report();
        List<IDifference> differencesFound = interfacesRemovedCheck
                .check(report.getDifferences());

        assertNotNull("There should be at least an empty list of differences",
                differencesFound);
        int differences = differencesFound.size();
        assertTrue("There must be 1 difference, found: " + differences,
View Full Code Here

        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()));
        report.add(diffHigh);
        report.add(diffMedium);
        report.add(diffLow);

        IReporter htmlReporter = ReporterFactory.create(ReportStyle.HTML);
        htmlReporter.report(report);// the report is now stored on the harddrive
       
        return report;
View Full Code Here

    /* (non-Javadoc)
     * @see junit.framework.TestCase#setUp()
     */
    protected void setUp() throws Exception {
        super.setUp();
        report = new Report();
    }
View Full Code Here

    /**
     * Test method for {@link de.dlr.sistec.modi.checks.impl
     *  .CheckTemplate#Check()}.
     */
    public void testCheck() {
        List<IDifference> differences = new Report().getDifferences();
        assertNotNull(check.check(differences));
        assertTrue(check.check(differences) instanceof List);
        assertTrue(check.check(differences).isEmpty());
    }
View Full Code Here

TOP

Related Classes of net.sf.jmd.report.impl.Report

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.