test_class.declarator: sqlDataSetDef
test_class.modifier: @Mock
test_class.original_string: @Mock SQLDataSetDef sqlDataSetDef;
test_class.type: SQLDataSetDef
test_class.var_name: sqlDataSetDef
test_class.declarator: tested
test_class.modifier: private
test_class.original_string: private SQLDataSetDefValidator tested;
test_class.type: SQLDataSetDefValidator
test_class.var_name: tested
test_class.file: dashbuilder-shared/dashbuilder-validations/src/test/java/org/dashbuilder/validations/dataset/SQLDataSetDefValidatorTest.java
test_class.identifier: SQLDataSetDefValidatorTest
test_class.superclass: extends AbstractValidationTest
test_case.body: @Test
      public void testValidateNoCache() {
          final boolean isCacheEnabled = false;
          final boolean isPushEnabled = true;
          final boolean isRefreshEnabled = true;
          final boolean isUsingQuery = false;
          tested.validate(sqlDataSetDef, isCacheEnabled, isPushEnabled, isRefreshEnabled, isUsingQuery);
          verify(validator, times(1)).validate(sqlDataSetDef,
                  DataSetDefBasicAttributesGroup.class,
                  DataSetDefProviderTypeGroup.class,
                  DataSetDefPushSizeValidation.class,
                  DataSetDefRefreshIntervalValidation.class,
                  SQLDataSetDefValidation.class,
                  SQLDataSetDefDbTableValidation.class);
      }
test_case.class_method_signature: SQLDataSetDefValidatorTest.testValidateNoCache()
test_case.full_signature: @Test public void testValidateNoCache()
test_case.identifier: testValidateNoCache
test_case.invocations: validate validate verify times
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testValidateNoCache()
focal_class.file: dashbuilder-shared/dashbuilder-validations/src/main/java/org/dashbuilder/validations/dataset/SQLDataSetDefValidator.java
focal_class.identifier: SQLDataSetDefValidator
focal_class.class_method_signature: SQLDataSetDefValidator.SQLDataSetDefValidator( Validator validator )
focal_class.full_signature: @Inject public  SQLDataSetDefValidator( Validator validator )
focal_class.identifier: SQLDataSetDefValidator
focal_class.modifiers: @Inject public
focal_class.parameters: ( Validator validator )
focal_class.signature:  SQLDataSetDefValidator( Validator validator )
focal_class.class_method_signature: SQLDataSetDefValidator.getSupportedProvider()
focal_class.full_signature: @Override public DataSetProviderType getSupportedProvider()
focal_class.identifier: getSupportedProvider
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: DataSetProviderType
focal_class.signature: DataSetProviderType getSupportedProvider()
focal_class.class_method_signature: SQLDataSetDefValidator.validateCustomAttributes( SQLDataSetDef dataSetDef, Object... params )
focal_class.full_signature: @Override public Iterable<ConstraintViolation<?>> validateCustomAttributes( SQLDataSetDef dataSetDef, Object... params )
focal_class.identifier: validateCustomAttributes
focal_class.modifiers: @Override public
focal_class.parameters: ( SQLDataSetDef dataSetDef, Object... params )
focal_class.return: Iterable<ConstraintViolation<?>>
focal_class.signature: Iterable<ConstraintViolation<?>> validateCustomAttributes( SQLDataSetDef dataSetDef, Object... params )
focal_class.class_method_signature: SQLDataSetDefValidator.validate( SQLDataSetDef dataSetDef,
                                                        boolean isCacheEnabled,
                                                        boolean isPushEnabled,
                                                        boolean isRefreshEnabled,
                                                        Object... params )
focal_class.full_signature: @Override public Iterable<ConstraintViolation<?>> validate( SQLDataSetDef dataSetDef,
                                                        boolean isCacheEnabled,
                                                        boolean isPushEnabled,
                                                        boolean isRefreshEnabled,
                                                        Object... params )
focal_class.identifier: validate
focal_class.modifiers: @Override public
focal_class.parameters: ( SQLDataSetDef dataSetDef,
                                                        boolean isCacheEnabled,
                                                        boolean isPushEnabled,
                                                        boolean isRefreshEnabled,
                                                        Object... params )
focal_class.return: Iterable<ConstraintViolation<?>>
focal_class.signature: Iterable<ConstraintViolation<?>> validate( SQLDataSetDef dataSetDef,
                                                        boolean isCacheEnabled,
                                                        boolean isPushEnabled,
                                                        boolean isRefreshEnabled,
                                                        Object... params )
focal_class.superclass: extends AbstractDataSetDefValidator<SQLDataSetDef>
focal_method.body: @Override
      public Iterable<ConstraintViolation<?>> validate( SQLDataSetDef dataSetDef,
                                                        boolean isCacheEnabled,
                                                        boolean isPushEnabled,
                                                        boolean isRefreshEnabled,
                                                        Object... params ) {
          assert params != null && params.length == 1;
          final Boolean isQuery = (Boolean) params[0];
          Set<ConstraintViolation<SQLDataSetDef>> _violations = validator.validate( dataSetDef,
                                                                                    getValidationGroups( isCacheEnabled,
                                                                                                         isPushEnabled,
                                                                                                         isRefreshEnabled,
                                                                                                         SQLDataSetDefValidation.class,
                                                                                                         isQuery ? SQLDataSetDefDbSQLValidation.class : SQLDataSetDefDbTableValidation.class ) );
          return toIterable( _violations );
      }
focal_method.class_method_signature: SQLDataSetDefValidator.validate( SQLDataSetDef dataSetDef,
                                                        boolean isCacheEnabled,
                                                        boolean isPushEnabled,
                                                        boolean isRefreshEnabled,
                                                        Object... params )
focal_method.full_signature: @Override public Iterable<ConstraintViolation<?>> validate( SQLDataSetDef dataSetDef,
                                                        boolean isCacheEnabled,
                                                        boolean isPushEnabled,
                                                        boolean isRefreshEnabled,
                                                        Object... params )
focal_method.identifier: validate
focal_method.invocations: validate getValidationGroups toIterable
focal_method.modifiers: @Override public
focal_method.parameters: ( SQLDataSetDef dataSetDef,
                                                        boolean isCacheEnabled,
                                                        boolean isPushEnabled,
                                                        boolean isRefreshEnabled,
                                                        Object... params )
focal_method.return: Iterable<ConstraintViolation<?>>
focal_method.signature: Iterable<ConstraintViolation<?>> validate( SQLDataSetDef dataSetDef,
                                                        boolean isCacheEnabled,
                                                        boolean isPushEnabled,
                                                        boolean isRefreshEnabled,
                                                        Object... params )