@Test public void testSupports() { assertTrue(imageValidator.supports(AjaxUpload.class)); assertFalse(imageValidator.supports(ImageInfo.class)); }
public boolean supports(Class<?> clazz) { return AjaxUpload.class.isAssignableFrom(clazz); }
ImageValidator implements Validator { public boolean supports(Class<?> clazz) { return AjaxUpload.class.isAssignableFrom(clazz); } }
ImageValidator implements Validator { public boolean supports(Class<?> clazz) { return AjaxUpload.class.isAssignableFrom(clazz); }  }
ImageValidator implements Validator { public boolean supports(Class<?> clazz) { return AjaxUpload.class.isAssignableFrom(clazz); }  boolean supports(Class<?> clazz); @Override void validate(Object obj, Errors errors); }
ImageValidator implements Validator { public boolean supports(Class<?> clazz) { return AjaxUpload.class.isAssignableFrom(clazz); }  boolean supports(Class<?> clazz); @Override void validate(Object obj, Errors errors);  }