@Test public void testValidate() { final boolean isCacheEnabled = true; final boolean isPushEnabled = true; final boolean isRefreshEnabled = true; tested.validate(beanDataSetDef, isCacheEnabled, isPushEnabled, isRefreshEnabled); verify(validator, times(1)).validate(beanDataSetDef, DataSetDefBasicAttributesGroup.class, DataSetDefProviderTypeGroup.class, DataSetDefCacheRowsValidation.class, DataSetDefPushSizeValidation.class, DataSetDefRefreshIntervalValidation.class, BeanDataSetDefValidation.class); }
@Override public Iterable<ConstraintViolation<?>> validate( BeanDataSetDef dataSetDef, boolean isCacheEnabled, boolean isPushEnabled, boolean isRefreshEnabled, Object... params ) { Set<ConstraintViolation<BeanDataSetDef>> _violations = validator.validate( dataSetDef, getValidationGroups( isCacheEnabled, isPushEnabled, isRefreshEnabled, BeanDataSetDefValidation.class ) ); return toIterable( _violations ); }
BeanDataSetDefValidator extends AbstractDataSetDefValidator<BeanDataSetDef> { @Override public Iterable<ConstraintViolation<?>> validate( BeanDataSetDef dataSetDef, boolean isCacheEnabled, boolean isPushEnabled, boolean isRefreshEnabled, Object... params ) { Set<ConstraintViolation<BeanDataSetDef>> _violations = validator.validate( dataSetDef, getValidationGroups( isCacheEnabled, isPushEnabled, isRefreshEnabled, BeanDataSetDefValidation.class ) ); return toIterable( _violations ); } }
BeanDataSetDefValidator extends AbstractDataSetDefValidator<BeanDataSetDef> { @Override public Iterable<ConstraintViolation<?>> validate( BeanDataSetDef dataSetDef, boolean isCacheEnabled, boolean isPushEnabled, boolean isRefreshEnabled, Object... params ) { Set<ConstraintViolation<BeanDataSetDef>> _violations = validator.validate( dataSetDef, getValidationGroups( isCacheEnabled, isPushEnabled, isRefreshEnabled, BeanDataSetDefValidation.class ) ); return toIterable( _violations ); } @Inject  BeanDataSetDefValidator( Validator validator ); }
BeanDataSetDefValidator extends AbstractDataSetDefValidator<BeanDataSetDef> { @Override public Iterable<ConstraintViolation<?>> validate( BeanDataSetDef dataSetDef, boolean isCacheEnabled, boolean isPushEnabled, boolean isRefreshEnabled, Object... params ) { Set<ConstraintViolation<BeanDataSetDef>> _violations = validator.validate( dataSetDef, getValidationGroups( isCacheEnabled, isPushEnabled, isRefreshEnabled, BeanDataSetDefValidation.class ) ); return toIterable( _violations ); } @Inject  BeanDataSetDefValidator( Validator validator ); @Override DataSetProviderType getSupportedProvider(); @Override Iterable<ConstraintViolation<?>> validateCustomAttributes( BeanDataSetDef dataSetDef, Object... params ); @Override Iterable<ConstraintViolation<?>> validate( BeanDataSetDef dataSetDef,
                                                      boolean isCacheEnabled,
                                                      boolean isPushEnabled,
                                                      boolean isRefreshEnabled,
                                                      Object... params ); }
BeanDataSetDefValidator extends AbstractDataSetDefValidator<BeanDataSetDef> { @Override public Iterable<ConstraintViolation<?>> validate( BeanDataSetDef dataSetDef, boolean isCacheEnabled, boolean isPushEnabled, boolean isRefreshEnabled, Object... params ) { Set<ConstraintViolation<BeanDataSetDef>> _violations = validator.validate( dataSetDef, getValidationGroups( isCacheEnabled, isPushEnabled, isRefreshEnabled, BeanDataSetDefValidation.class ) ); return toIterable( _violations ); } @Inject  BeanDataSetDefValidator( Validator validator ); @Override DataSetProviderType getSupportedProvider(); @Override Iterable<ConstraintViolation<?>> validateCustomAttributes( BeanDataSetDef dataSetDef, Object... params ); @Override Iterable<ConstraintViolation<?>> validate( BeanDataSetDef dataSetDef,
                                                      boolean isCacheEnabled,
                                                      boolean isPushEnabled,
                                                      boolean isRefreshEnabled,
                                                      Object... params );  }