@Test public void testNull() { assertFalse(validator.isValid(null, null)); }
@Override public boolean isValid(final Duration duration, final ConstraintValidatorContext context) { return duration != null && !duration.isNegative() && !duration.isZero(); }
PositiveDurationValidator implements ConstraintValidator<PositiveDuration, Duration> { @Override public boolean isValid(final Duration duration, final ConstraintValidatorContext context) { return duration != null && !duration.isNegative() && !duration.isZero(); } }
PositiveDurationValidator implements ConstraintValidator<PositiveDuration, Duration> { @Override public boolean isValid(final Duration duration, final ConstraintValidatorContext context) { return duration != null && !duration.isNegative() && !duration.isZero(); }  }
PositiveDurationValidator implements ConstraintValidator<PositiveDuration, Duration> { @Override public boolean isValid(final Duration duration, final ConstraintValidatorContext context) { return duration != null && !duration.isNegative() && !duration.isZero(); }  @Override void initialize(final PositiveDuration positiveDuration); @Override boolean isValid(final Duration duration, final ConstraintValidatorContext context); }
PositiveDurationValidator implements ConstraintValidator<PositiveDuration, Duration> { @Override public boolean isValid(final Duration duration, final ConstraintValidatorContext context) { return duration != null && !duration.isNegative() && !duration.isZero(); }  @Override void initialize(final PositiveDuration positiveDuration); @Override boolean isValid(final Duration duration, final ConstraintValidatorContext context);  }