Java 类org.springframework.boot.autoconfigure.liquibase.LiquibaseAutoConfiguration 实例源码

项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:EndpointAutoConfigurationTests.java   
@Test
public void testLiquibaseEndpoint() {
    this.context = new AnnotationConfigApplicationContext();
    this.context.register(EmbeddedDataSourceConfiguration.class,
            LiquibaseAutoConfiguration.class, EndpointAutoConfiguration.class);
    this.context.refresh();
    LiquibaseEndpoint endpoint = this.context.getBean(LiquibaseEndpoint.class);
    assertThat(endpoint).isNotNull();
    assertThat(endpoint.invoke()).hasSize(1);
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:HibernateJpaAutoConfigurationTests.java   
@Test
public void testLiquibasePlusValidation() throws Exception {
    EnvironmentTestUtils.addEnvironment(this.context,
            "spring.datasource.initialize:false",
            "liquibase.changeLog:classpath:db/changelog/db.changelog-city.yaml",
            "spring.jpa.hibernate.ddl-auto:validate");
    setupTestConfiguration();
    this.context.register(LiquibaseAutoConfiguration.class);
    this.context.refresh();
}
项目:spring-boot-concourse    文件:EndpointAutoConfigurationTests.java   
@Test
public void testLiquibaseEndpoint() {
    this.context = new AnnotationConfigApplicationContext();
    this.context.register(EmbeddedDataSourceConfiguration.class,
            LiquibaseAutoConfiguration.class, EndpointAutoConfiguration.class);
    this.context.refresh();
    LiquibaseEndpoint endpoint = this.context.getBean(LiquibaseEndpoint.class);
    assertThat(endpoint).isNotNull();
    assertThat(endpoint.invoke()).hasSize(1);
}
项目:spring-boot-concourse    文件:HibernateJpaAutoConfigurationTests.java   
@Test
public void testLiquibasePlusValidation() throws Exception {
    EnvironmentTestUtils.addEnvironment(this.context,
            "spring.datasource.initialize:false",
            "liquibase.changeLog:classpath:db/changelog/db.changelog-city.yaml",
            "spring.jpa.hibernate.ddl-auto:validate");
    setupTestConfiguration();
    this.context.register(LiquibaseAutoConfiguration.class);
    this.context.refresh();
}
项目:contestparser    文件:EndpointAutoConfigurationTests.java   
@Test
public void testLiquibaseEndpoint() {
    this.context = new AnnotationConfigApplicationContext();
    this.context.register(EmbeddedDataSourceConfiguration.class,
            LiquibaseAutoConfiguration.class, EndpointAutoConfiguration.class);
    this.context.refresh();
    LiquibaseEndpoint endpoint = this.context.getBean(LiquibaseEndpoint.class);
    assertNotNull(endpoint);
    assertEquals(1, endpoint.invoke().size());
}
项目:contestparser    文件:HibernateJpaAutoConfigurationTests.java   
@Test
public void testLiquibasePlusValidation() throws Exception {
    EnvironmentTestUtils.addEnvironment(this.context,
            "spring.datasource.initialize:false",
            "liquibase.changeLog:classpath:db/changelog/db.changelog-city.yaml",
            "spring.jpa.hibernate.ddl-auto:validate");
    setupTestConfiguration();
    this.context.register(LiquibaseAutoConfiguration.class);
    this.context.refresh();
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:DataJpaTestIntegrationTests.java   
@Test
public void liquibaseAutoConfigurationWasImported() {
    assertThat(this.applicationContext)
            .has(importedAutoConfiguration(LiquibaseAutoConfiguration.class));
}
项目:spring-boot-concourse    文件:DataJpaTestIntegrationTests.java   
@Test
public void liquibaseAutoConfigurationWasImported() {
    assertThat(this.applicationContext)
            .has(importedAutoConfiguration(LiquibaseAutoConfiguration.class));
}