@Test public void testClear() { final DefaultRuleViolations violations = new DefaultRuleViolations() .addViolation(violationWarn) .addViolation(violationInfo) .addViolation(violationErr); violations.clear(); assertNotNull(violations); assertTrue(violations.isEmpty()); }
public DefaultRuleViolations clear() { violations.clear(); return this; }
DefaultRuleViolations implements RuleViolations { public DefaultRuleViolations clear() { violations.clear(); return this; } }
DefaultRuleViolations implements RuleViolations { public DefaultRuleViolations clear() { violations.clear(); return this; }  }
DefaultRuleViolations implements RuleViolations { public DefaultRuleViolations clear() { violations.clear(); return this; }  DefaultRuleViolations addViolations(final RuleViolations violations); DefaultRuleViolations addViolation(final RuleViolation violation); DefaultRuleViolations clear(); boolean isEmpty(); @Override Iterable<RuleViolation> violations(); @Override Iterable<RuleViolation> violations(final RuleViolation.Type violationType); @Override String toString(); }
DefaultRuleViolations implements RuleViolations { public DefaultRuleViolations clear() { violations.clear(); return this; }  DefaultRuleViolations addViolations(final RuleViolations violations); DefaultRuleViolations addViolation(final RuleViolation violation); DefaultRuleViolations clear(); boolean isEmpty(); @Override Iterable<RuleViolation> violations(); @Override Iterable<RuleViolation> violations(final RuleViolation.Type violationType); @Override String toString();  }