@Test public void testNull() { assertTrue(victim.isValid(null, null)); }
@Override public boolean isValid(Dimension2D value, ConstraintValidatorContext context) { if (value != null) { return value.getWidth() > 0 && value.getHeight() > 0; } return true; }
PositiveDimensionValidator implements ConstraintValidator<PositiveDimensions, Dimension2D> { @Override public boolean isValid(Dimension2D value, ConstraintValidatorContext context) { if (value != null) { return value.getWidth() > 0 && value.getHeight() > 0; } return true; } }
PositiveDimensionValidator implements ConstraintValidator<PositiveDimensions, Dimension2D> { @Override public boolean isValid(Dimension2D value, ConstraintValidatorContext context) { if (value != null) { return value.getWidth() > 0 && value.getHeight() > 0; } return true; }  }
PositiveDimensionValidator implements ConstraintValidator<PositiveDimensions, Dimension2D> { @Override public boolean isValid(Dimension2D value, ConstraintValidatorContext context) { if (value != null) { return value.getWidth() > 0 && value.getHeight() > 0; } return true; }  @Override void initialize(PositiveDimensions constraintAnnotation); @Override boolean isValid(Dimension2D value, ConstraintValidatorContext context); }
PositiveDimensionValidator implements ConstraintValidator<PositiveDimensions, Dimension2D> { @Override public boolean isValid(Dimension2D value, ConstraintValidatorContext context) { if (value != null) { return value.getWidth() > 0 && value.getHeight() > 0; } return true; }  @Override void initialize(PositiveDimensions constraintAnnotation); @Override boolean isValid(Dimension2D value, ConstraintValidatorContext context);  }