@Test public void testReportViolation() { SimpleProgressCheck check = new SimpleProgressCheck(); SimpleViolation violation = new SimpleViolation(Severity.SEVERE, "description"); check.reportViolation(violation); assertTrue("contains violation", check.getReportedViolations().contains(violation)); }
protected void reportViolation(final Violation violation) { collector.reportViolation(violation); }
SimpleProgressCheck implements ProgressCheck { protected void reportViolation(final Violation violation) { collector.reportViolation(violation); } }
SimpleProgressCheck implements ProgressCheck { protected void reportViolation(final Violation violation) { collector.reportViolation(violation); }  }
SimpleProgressCheck implements ProgressCheck { protected void reportViolation(final Violation violation) { collector.reportViolation(violation); }  @Override void setResourceBundle(final ResourceBundle resourceBundle); @Override void startedScan(); @Override Collection<Violation> getReportedViolations(); }
SimpleProgressCheck implements ProgressCheck { protected void reportViolation(final Violation violation) { collector.reportViolation(violation); }  @Override void setResourceBundle(final ResourceBundle resourceBundle); @Override void startedScan(); @Override Collection<Violation> getReportedViolations();  }