Java 类org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration 实例源码

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