Disable unexpected datasource initialization

This commit restore the disabling of datasource initialization that was
accidently removed in db33a75 so that other tests aren't affected by it.
pull/8813/head
Stephane Nicoll 8 years ago
parent 0163731043
commit 5cc2e103f2

@ -69,7 +69,8 @@ public class TransactionAutoConfigurationTests {
@Test @Test
public void singleTransactionManager() { public void singleTransactionManager() {
load(new Class<?>[] { DataSourceAutoConfiguration.class, load(new Class<?>[] { DataSourceAutoConfiguration.class,
DataSourceTransactionManagerAutoConfiguration.class }); DataSourceTransactionManagerAutoConfiguration.class },
"spring.datasource.initialize:false");
PlatformTransactionManager transactionManager = this.context PlatformTransactionManager transactionManager = this.context
.getBean(PlatformTransactionManager.class); .getBean(PlatformTransactionManager.class);
TransactionTemplate transactionTemplate = this.context TransactionTemplate transactionTemplate = this.context

Loading…
Cancel
Save