osvaldjr/easy-cucumber

JdbcTemplate bean required

eduardongarcia opened this issue · 1 comments

Describe the bug
When I try to use only steps about security context, the execution crashes requiring jdbcTemplate bean

To Reproduce
Steps to reproduce the behavior:

  1. A project with default config
  2. Create a scenario using only security steps
  3. Try to run tests
  4. See error
Field jdbcTemplate in io.github.osvaldjr.usecases.DatabaseTableSelectUseCase required a bean of type 'org.springframework.jdbc.core.JdbcTemplate' that could not be found.
        - Bean method 'easyCucumberJdbcTemplate' in 'DatabaseConfig' not loaded because @ConditionalOnBean (names: easyCucumberDataSource; SearchStrategy: all) did not find any beans
        - Bean method 'jdbcTemplate' not loaded because @ConditionalOnSingleCandidate (types: javax.sql.DataSource; SearchStrategy: all) did not find any beans

Expected behavior
The scenario should be executed with success

Additional context
easy.cucumber version: 0.0.16
Java version: 1.8.0_144, vendor: Oracle Corporation
Apache Maven 3.5.3
OS name: "mac os x", version: "10.14.6", arch: "x86_64", family: "mac"