java类org.springframework.transaction.annotation.AbstractTransactionManagementConfiguration的实例源码

DataSourceTransactionManagerAutoConfigurationTests.java 文件源码 项目:https-github.com-g0t4-jenkins2-course-spring-boot 阅读 22 收藏 0 点赞 0 评论 0
@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();
}
DataSourceTransactionManagerAutoConfigurationTests.java 文件源码 项目:spring-boot-concourse 阅读 20 收藏 0 点赞 0 评论 0
@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();
}
DataSourceTransactionManagerAutoConfigurationTests.java 文件源码 项目:contestparser 阅读 17 收藏 0 点赞 0 评论 0
@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));
}


问题


面经


文章

微信
公众号

扫码关注公众号