@Test public void testSupports() { boolean result; try { TargetAccessValidator validator = new TargetAccessValidator(); result = validator.supports(TargetAccessCommand.class); assertTrue("TargetAccessValidator.supports() does not support the TargetAccessCommand class", result); result = validator.supports(TargetGeneralCommand.class); assertFalse("TargetAccessValidator.supports() should not support classes other than TargetAccessCommand", result); } catch (Exception e) { String message = e.getClass().toString() + " - " + e.getMessage(); log.debug(message); fail(message); } }
public boolean supports(Class clazz) { return TargetAccessCommand.class.equals(clazz); }
TargetAccessValidator extends AbstractBaseValidator { public boolean supports(Class clazz) { return TargetAccessCommand.class.equals(clazz); } }
TargetAccessValidator extends AbstractBaseValidator { public boolean supports(Class clazz) { return TargetAccessCommand.class.equals(clazz); }  }
TargetAccessValidator extends AbstractBaseValidator { public boolean supports(Class clazz) { return TargetAccessCommand.class.equals(clazz); }  boolean supports(Class clazz); void validate(Object comm, Errors errors); }
TargetAccessValidator extends AbstractBaseValidator { public boolean supports(Class clazz) { return TargetAccessCommand.class.equals(clazz); }  boolean supports(Class clazz); void validate(Object comm, Errors errors);  }