@Test public void testBottomGreater() { TestUtils.setProperty(box, "bottom", 11); assertFalse(victim.isValid(box, null)); }
@Override public boolean isValid(RectangularBox value, ConstraintValidatorContext context) { if (value != null) { return value.getTop() > value.getBottom() && value.getRight() > value.getLeft(); } return true; }
CoordinatesValidator implements ConstraintValidator<ValidCoordinates, RectangularBox> { @Override public boolean isValid(RectangularBox value, ConstraintValidatorContext context) { if (value != null) { return value.getTop() > value.getBottom() && value.getRight() > value.getLeft(); } return true; } }
CoordinatesValidator implements ConstraintValidator<ValidCoordinates, RectangularBox> { @Override public boolean isValid(RectangularBox value, ConstraintValidatorContext context) { if (value != null) { return value.getTop() > value.getBottom() && value.getRight() > value.getLeft(); } return true; }  }
CoordinatesValidator implements ConstraintValidator<ValidCoordinates, RectangularBox> { @Override public boolean isValid(RectangularBox value, ConstraintValidatorContext context) { if (value != null) { return value.getTop() > value.getBottom() && value.getRight() > value.getLeft(); } return true; }  @Override void initialize(ValidCoordinates constraintAnnotation); @Override boolean isValid(RectangularBox value, ConstraintValidatorContext context); }
CoordinatesValidator implements ConstraintValidator<ValidCoordinates, RectangularBox> { @Override public boolean isValid(RectangularBox value, ConstraintValidatorContext context) { if (value != null) { return value.getTop() > value.getBottom() && value.getRight() > value.getLeft(); } return true; }  @Override void initialize(ValidCoordinates constraintAnnotation); @Override boolean isValid(RectangularBox value, ConstraintValidatorContext context);  }