Java 类org.springframework.transaction.annotation.AbstractTransactionManagementConfiguration 实例源码

项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:DataSourceTransactionManagerAutoConfigurationTests.java   
@Test
public void testDataSourceExists() throws Exception {
    this.context.register(EmbeddedDataSourceConfiguration.class,
            DataSourceTransactionManagerAutoConfiguration.class);
    this.context.refresh();
    assertThat(this.context.getBean(DataSource.class)).isNotNull();
    assertThat(this.context.getBean(DataSourceTransactionManager.class)).isNotNull();
    assertThat(this.context.getBean(AbstractTransactionManagementConfiguration.class))
            .isNotNull();
}
项目:spring-boot-concourse    文件:DataSourceTransactionManagerAutoConfigurationTests.java   
@Test
public void testDataSourceExists() throws Exception {
    this.context.register(EmbeddedDataSourceConfiguration.class,
            DataSourceTransactionManagerAutoConfiguration.class);
    this.context.refresh();
    assertThat(this.context.getBean(DataSource.class)).isNotNull();
    assertThat(this.context.getBean(DataSourceTransactionManager.class)).isNotNull();
    assertThat(this.context.getBean(AbstractTransactionManagementConfiguration.class))
            .isNotNull();
}
项目:contestparser    文件:DataSourceTransactionManagerAutoConfigurationTests.java   
@Test
public void testDataSourceExists() throws Exception {
    this.context.register(EmbeddedDataSourceConfiguration.class,
            DataSourceTransactionManagerAutoConfiguration.class);
    this.context.refresh();
    assertNotNull(this.context.getBean(DataSource.class));
    assertNotNull(this.context.getBean(DataSourceTransactionManager.class));
    assertNotNull(
            this.context.getBean(AbstractTransactionManagementConfiguration.class));
}