Examples of verifyConstraintViolations()


Examples of com.buschmais.jqassistant.core.report.api.ReportHelper.verifyConstraintViolations()

        }
        store.beginTransaction();
        try {
            final ReportHelper reportHelper = new ReportHelper(getLog());
            reportHelper.verifyConceptResults(inMemoryReportWriter);
            reportHelper.verifyConstraintViolations(inMemoryReportWriter);
        } catch (AnalysisListenerException e) {
            throw new RuntimeException("Cannot print report.", e);
        } finally {
            store.commitTransaction();
        }
View Full Code Here

Examples of com.buschmais.jqassistant.core.report.api.ReportHelper.verifyConstraintViolations()

        ShellConsole console = new ShellConsole(out);
        Analyzer analyzer = new AnalyzerImpl(store, reportWriter, console);
        analyzer.execute(effectiveRuleSet);
        ReportHelper reportHelper = new ReportHelper(console);
        reportHelper.verifyConceptResults(reportWriter);
        reportHelper.verifyConstraintViolations(reportWriter);
        store.stop();
        return Continuation.INPUT_COMPLETE;
    }

}
View Full Code Here

Examples of com.buschmais.jqassistant.core.report.api.ReportHelper.verifyConstraintViolations()

        Slf4jConsole console = new Slf4jConsole();
        Analyzer analyzer = new AnalyzerImpl(store, reportWriter, console);
        analyzer.execute(effectiveRuleSet);
        ReportHelper reportHelper = new ReportHelper(console);
        reportHelper.verifyConceptResults(reportWriter);
        reportHelper.verifyConstraintViolations(reportWriter);
        return reportWriter;
    }
}
View Full Code Here

Examples of com.buschmais.jqassistant.core.report.api.ReportHelper.verifyConstraintViolations()

        }
        ReportHelper reportHelper = new ReportHelper(console);
        store.beginTransaction();
        try {
            reportHelper.verifyConceptResults(inMemoryReportWriter);
            int violations = reportHelper.verifyConstraintViolations(inMemoryReportWriter);
            if (failOnConstraintViolations && violations > 0) {
                throw new MojoFailureException(violations + " constraints have been violated!");
            }
        } catch (AnalysisListenerException e) {
            throw new MojoExecutionException("Cannot print report.", e);
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.