ValidationIgnore { public boolean shouldIgnore(RaveError error) { if (!error.getClazz().equals(clazz)) { return false; } return ignoreClassAll || ignoreMethods.contains(error.getClassElement()); } ValidationIgnore(Class<?> clazz); boolean shouldIgnore(RaveError error);  }
@Test public void shouldIgnore_whenIgnoreAllNotSet_shouldReturnFalse() { ValidationIgnore ignore = new ValidationIgnore(String.class); RaveError error = new RaveError(String.class, "", ""); assertThat(ignore.shouldIgnore(error)).isFalse(); }
@Test public void shouldIgnore_whenClassDifferent_shouldReturnFalse() { ValidationIgnore ignore = new ValidationIgnore(Object.class); RaveError error = new RaveError(String.class, "", ""); assertThat(ignore.shouldIgnore(error)).isFalse(); }