Package org.jacoco.report.check

Examples of org.jacoco.report.check.RulesChecker


      this.violationsPropery = property;
    }

    @Override
    public IReportVisitor createVisitor() throws IOException {
      final RulesChecker formatter = new RulesChecker();
      formatter.setRules(rules);
      return formatter.createVisitor(this);
    }
View Full Code Here


  private void executeCheck() throws MojoExecutionException {
    final IBundleCoverage bundle = loadBundle();
    violations = false;

    final RulesChecker checker = new RulesChecker();
    final List<Rule> checkerrules = new ArrayList<Rule>();
    for (final RuleConfiguration r : rules) {
      checkerrules.add(r.rule);
    }
    checker.setRules(checkerrules);

    final IReportVisitor visitor = checker.createVisitor(this);
    try {
      visitor.visitBundle(bundle, null);
    } catch (final IOException e) {
      throw new MojoExecutionException(
          "Error while checking code coverage: " + e.getMessage(), e);
View Full Code Here

TOP

Related Classes of org.jacoco.report.check.RulesChecker

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.