spring-framework / org.springframework.test.context.testng / AbstractTransactionalTestNGSpringContextTests / setDataSource

setDataSource

@Autowired open fun setDataSource(dataSource: DataSource): Unit

Set the DataSource, typically provided via Dependency Injection.

This method also instantiates the #jdbcTemplate instance variable.