@Test public void testPositiveExisting() throws IOException { assertTrue(victim.isValid(folder.newFolder(), null)); }
@Override public boolean isValid(File value, ConstraintValidatorContext context) { if (value != null && value.exists()) { return value.isDirectory(); } return true; }
DirectoryValidator implements ConstraintValidator<Directory, File> { @Override public boolean isValid(File value, ConstraintValidatorContext context) { if (value != null && value.exists()) { return value.isDirectory(); } return true; } }
DirectoryValidator implements ConstraintValidator<Directory, File> { @Override public boolean isValid(File value, ConstraintValidatorContext context) { if (value != null && value.exists()) { return value.isDirectory(); } return true; }  }
DirectoryValidator implements ConstraintValidator<Directory, File> { @Override public boolean isValid(File value, ConstraintValidatorContext context) { if (value != null && value.exists()) { return value.isDirectory(); } return true; }  @Override void initialize(Directory constraintAnnotation); @Override boolean isValid(File value, ConstraintValidatorContext context); }
DirectoryValidator implements ConstraintValidator<Directory, File> { @Override public boolean isValid(File value, ConstraintValidatorContext context) { if (value != null && value.exists()) { return value.isDirectory(); } return true; }  @Override void initialize(Directory constraintAnnotation); @Override boolean isValid(File value, ConstraintValidatorContext context);  }