@Test public void testPositive() { assertTrue(victim.isValid(mockFile, null)); }
@Override public boolean isValid(File value, ConstraintValidatorContext context) { if (value != null) { return value.exists(); } return true; }
ExistingFileValidator implements ConstraintValidator<ExistingFile, File> { @Override public boolean isValid(File value, ConstraintValidatorContext context) { if (value != null) { return value.exists(); } return true; } }
ExistingFileValidator implements ConstraintValidator<ExistingFile, File> { @Override public boolean isValid(File value, ConstraintValidatorContext context) { if (value != null) { return value.exists(); } return true; }  }
ExistingFileValidator implements ConstraintValidator<ExistingFile, File> { @Override public boolean isValid(File value, ConstraintValidatorContext context) { if (value != null) { return value.exists(); } return true; }  @Override void initialize(ExistingFile constraintAnnotation); @Override boolean isValid(File value, ConstraintValidatorContext context); }
ExistingFileValidator implements ConstraintValidator<ExistingFile, File> { @Override public boolean isValid(File value, ConstraintValidatorContext context) { if (value != null) { return value.exists(); } return true; }  @Override void initialize(ExistingFile constraintAnnotation); @Override boolean isValid(File value, ConstraintValidatorContext context);  }