@Test public void checkOwnerUserId_is_called_on_validation() { validatorToTest.validate(input, errors); verify(validation).checkOwnerUserId(errors, input); }
@Override public void validate(Object target, Errors errors) { validation.checkApiVersion(errors, validation.asInput(target)); validation.checkProjectId(errors, validation.asInput(target)); validation.checkOwnerUserId(errors, validation.asInput(target)); }
CreateProjectInputValidator implements Validator { @Override public void validate(Object target, Errors errors) { validation.checkApiVersion(errors, validation.asInput(target)); validation.checkProjectId(errors, validation.asInput(target)); validation.checkOwnerUserId(errors, validation.asInput(target)); } }
CreateProjectInputValidator implements Validator { @Override public void validate(Object target, Errors errors) { validation.checkApiVersion(errors, validation.asInput(target)); validation.checkProjectId(errors, validation.asInput(target)); validation.checkOwnerUserId(errors, validation.asInput(target)); } CreateProjectInputValidator(); }
CreateProjectInputValidator implements Validator { @Override public void validate(Object target, Errors errors) { validation.checkApiVersion(errors, validation.asInput(target)); validation.checkProjectId(errors, validation.asInput(target)); validation.checkOwnerUserId(errors, validation.asInput(target)); } CreateProjectInputValidator(); @Override boolean supports(Class<?> clazz); @Override void validate(Object target, Errors errors); }
CreateProjectInputValidator implements Validator { @Override public void validate(Object target, Errors errors) { validation.checkApiVersion(errors, validation.asInput(target)); validation.checkProjectId(errors, validation.asInput(target)); validation.checkOwnerUserId(errors, validation.asInput(target)); } CreateProjectInputValidator(); @Override boolean supports(Class<?> clazz); @Override void validate(Object target, Errors errors);  }