|
|
|
|
@ -24,6 +24,8 @@ import org.springframework.beans.factory.NoSuchBeanDefinitionException;
@@ -24,6 +24,8 @@ import org.springframework.beans.factory.NoSuchBeanDefinitionException;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
|
import org.springframework.boot.jpa.test.autoconfigure.TestEntityManager; |
|
|
|
|
import org.springframework.boot.testcontainers.service.connection.ServiceConnectionAutoConfiguration; |
|
|
|
|
import org.springframework.boot.transaction.autoconfigure.TransactionAutoConfiguration; |
|
|
|
|
import org.springframework.boot.transaction.autoconfigure.TransactionManagerCustomizationAutoConfiguration; |
|
|
|
|
import org.springframework.context.ApplicationContext; |
|
|
|
|
import org.springframework.data.repository.config.BootstrapMode; |
|
|
|
|
import org.springframework.jdbc.core.JdbcTemplate; |
|
|
|
|
@ -111,6 +113,13 @@ class DataJpaTestIntegrationTests {
@@ -111,6 +113,13 @@ class DataJpaTestIntegrationTests {
|
|
|
|
|
assertThat(this.applicationContext).has(importedAutoConfiguration(ServiceConnectionAutoConfiguration.class)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
void transactionAutoConfigurationWasImported() { |
|
|
|
|
assertThat(this.applicationContext).has(importedAutoConfiguration(TransactionAutoConfiguration.class)); |
|
|
|
|
assertThat(this.applicationContext) |
|
|
|
|
.has(importedAutoConfiguration(TransactionManagerCustomizationAutoConfiguration.class)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
void bootstrapModeIsDefaultByDefault() { |
|
|
|
|
assertThat(this.applicationContext.getEnvironment().getProperty("spring.data.jpa.repositories.bootstrap-mode")) |
|
|
|
|
|