@@ -0,0 +1,1132 @@
+package jp.furplag.spring.booster.validation;%0A%0Aimport java.util.Set;%0A%0Aimport javax.validation.ConstraintViolation;%0Aimport javax.validation.Validation;%0Aimport javax.validation.Validator;%0Aimport javax.validation.ValidatorFactory;%0A%0Apublic abstract class ValidationTestBase %7B%0A%0A  protected Validator validator;%0A%0A  @Before%0A  public void before() throws Exception %7B%0A    ValidatorFactory validatorFactory = Validation.buildDefaultValidatorFactory();%0A    validator = validatorFactory.getValidator();%0A  %7D%0A%0A  protected %3CT%3E void printViolations(Set%3CConstraintViolation%3CT%3E%3E violations) %7B%0A    for (ConstraintViolation%3CT%3E violation : violations) %7B%0A      StringBuilder sb = new StringBuilder();%0A      sb.append(%22%5BPath%5D%22 + violation.getPropertyPath() + %22 %22);%0A      sb.append(%22%5BValue%5D%22 + violation.getInvalidValue() + %22 %22);%0A      sb.append(%22%5BMessage%5D%22 + violation.getMessage());%0A      System.err.println(sb.toString());%0A    %7D%0A  %7D%0A%0A  protected %3CT%3E void validate(Object object, Class%3C?%3E... groups) %7B%0A    printViolations(validator.validate(object, groups));%0A  %7D%0A%0A  protected %3CT%3E void validateThis(Class%3C?%3E... groups) %7B%0A    validate(this, groups);%0A  %7D%0A%7D%0A

Create ValidationTestBase.java