@Test public void testHasDefault() { when(params.getDefaultTransition()).thenReturn(mockTransition); assertTrue(victim.isValid(params, null)); }
@Override public boolean isValid(SetPagesTransitionParameters value, ConstraintValidatorContext context) { if (value != null) { return value.getDefaultTransition() != null || !value.getTransitions().isEmpty(); } return true; }
HasTransitionsValidator implements ConstraintValidator<HasTransitions, SetPagesTransitionParameters> { @Override public boolean isValid(SetPagesTransitionParameters value, ConstraintValidatorContext context) { if (value != null) { return value.getDefaultTransition() != null || !value.getTransitions().isEmpty(); } return true; } }
HasTransitionsValidator implements ConstraintValidator<HasTransitions, SetPagesTransitionParameters> { @Override public boolean isValid(SetPagesTransitionParameters value, ConstraintValidatorContext context) { if (value != null) { return value.getDefaultTransition() != null || !value.getTransitions().isEmpty(); } return true; }  }
HasTransitionsValidator implements ConstraintValidator<HasTransitions, SetPagesTransitionParameters> { @Override public boolean isValid(SetPagesTransitionParameters value, ConstraintValidatorContext context) { if (value != null) { return value.getDefaultTransition() != null || !value.getTransitions().isEmpty(); } return true; }  @Override void initialize(HasTransitions constraintAnnotation); @Override boolean isValid(SetPagesTransitionParameters value, ConstraintValidatorContext context); }
HasTransitionsValidator implements ConstraintValidator<HasTransitions, SetPagesTransitionParameters> { @Override public boolean isValid(SetPagesTransitionParameters value, ConstraintValidatorContext context) { if (value != null) { return value.getDefaultTransition() != null || !value.getTransitions().isEmpty(); } return true; }  @Override void initialize(HasTransitions constraintAnnotation); @Override boolean isValid(SetPagesTransitionParameters value, ConstraintValidatorContext context);  }