@Test public void shouldDoNothingWhenYouDontSpecifyTheValidationPage() throws Exception { validator.checking(new Validations() {{ that(false, "", ""); }}); verifyZeroInteractions(result, outjector, instance); }
public void checking(Validations validations) { addAll(validations.getErrors(new LocalizationSupplier())); }
DefaultValidator extends AbstractValidator { public void checking(Validations validations) { addAll(validations.getErrors(new LocalizationSupplier())); } }
DefaultValidator extends AbstractValidator { public void checking(Validations validations) { addAll(validations.getErrors(new LocalizationSupplier())); } DefaultValidator(); @Inject  DefaultValidator(Result result, ValidationViewsFactory factory, Outjector outjector, Proxifier proxifier, BeanValidator beanValidator, Localization localization); }
DefaultValidator extends AbstractValidator { public void checking(Validations validations) { addAll(validations.getErrors(new LocalizationSupplier())); } DefaultValidator(); @Inject  DefaultValidator(Result result, ValidationViewsFactory factory, Outjector outjector, Proxifier proxifier, BeanValidator beanValidator, Localization localization); void checking(Validations validations); void validate(Object object, Class<?>... groups); void validateProperties(Object object, String... properties); void validateProperty(Object object, String property, Class<?>... groups); T onErrorUse(Class<T> view); void addAll(Collection<? extends Message> messages); void add(Message message); boolean hasErrors(); List<Message> getErrors(); }
DefaultValidator extends AbstractValidator { public void checking(Validations validations) { addAll(validations.getErrors(new LocalizationSupplier())); } DefaultValidator(); @Inject  DefaultValidator(Result result, ValidationViewsFactory factory, Outjector outjector, Proxifier proxifier, BeanValidator beanValidator, Localization localization); void checking(Validations validations); void validate(Object object, Class<?>... groups); void validateProperties(Object object, String... properties); void validateProperty(Object object, String property, Class<?>... groups); T onErrorUse(Class<T> view); void addAll(Collection<? extends Message> messages); void add(Message message); boolean hasErrors(); List<Message> getErrors();  }