Java 类org.springframework.boot.actuate.endpoint.LiquibaseEndpoint 实例源码

项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:MvcEndpointPathConfigurationTests.java   
@Parameters(name = "{0}")
public static Object[] parameters() {
    return new Object[] { new Object[] { "actuator", HalJsonMvcEndpoint.class },
            new Object[] { "autoconfig", AutoConfigurationReportEndpoint.class },
            new Object[] { "beans", BeansEndpoint.class },
            new Object[] { "configprops",
                    ConfigurationPropertiesReportEndpoint.class },
            new Object[] { "docs", DocsMvcEndpoint.class },
            new Object[] { "dump", DumpEndpoint.class },
            new Object[] { "env", EnvironmentMvcEndpoint.class },
            new Object[] { "flyway", FlywayEndpoint.class },
            new Object[] { "health", HealthMvcEndpoint.class },
            new Object[] { "info", InfoEndpoint.class },
            new Object[] { "jolokia", JolokiaMvcEndpoint.class },
            new Object[] { "liquibase", LiquibaseEndpoint.class },
            new Object[] { "logfile", LogFileMvcEndpoint.class },
            new Object[] { "mappings", RequestMappingEndpoint.class },
            new Object[] { "metrics", MetricsMvcEndpoint.class },
            new Object[] { "shutdown", ShutdownEndpoint.class },
            new Object[] { "trace", TraceEndpoint.class } };
}
项目:spring-boot-concourse    文件:MvcEndpointPathConfigurationTests.java   
@Parameters(name = "{0}")
public static Object[] parameters() {
    return new Object[] { new Object[] { "actuator", HalJsonMvcEndpoint.class },
            new Object[] { "autoconfig", AutoConfigurationReportEndpoint.class },
            new Object[] { "beans", BeansEndpoint.class },
            new Object[] { "configprops",
                    ConfigurationPropertiesReportEndpoint.class },
            new Object[] { "docs", DocsMvcEndpoint.class },
            new Object[] { "dump", DumpEndpoint.class },
            new Object[] { "env", EnvironmentMvcEndpoint.class },
            new Object[] { "flyway", FlywayEndpoint.class },
            new Object[] { "health", HealthMvcEndpoint.class },
            new Object[] { "info", InfoEndpoint.class },
            new Object[] { "jolokia", JolokiaMvcEndpoint.class },
            new Object[] { "liquibase", LiquibaseEndpoint.class },
            new Object[] { "logfile", LogFileMvcEndpoint.class },
            new Object[] { "mappings", RequestMappingEndpoint.class },
            new Object[] { "metrics", MetricsMvcEndpoint.class },
            new Object[] { "shutdown", ShutdownEndpoint.class },
            new Object[] { "trace", TraceEndpoint.class } };
}
项目: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);
}
项目: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);
}
项目: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());
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:EndpointAutoConfiguration.java   
@Bean
@ConditionalOnMissingBean
public LiquibaseEndpoint liquibaseEndpoint(SpringLiquibase liquibase) {
    return new LiquibaseEndpoint(liquibase);
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:MvcEndpointPathConfigurationTests.java   
@Bean
public LiquibaseEndpoint liquibase() {
    return new LiquibaseEndpoint(new SpringLiquibase());
}
项目:spring-boot-concourse    文件:EndpointAutoConfiguration.java   
@Bean
@ConditionalOnMissingBean
public LiquibaseEndpoint liquibaseEndpoint(SpringLiquibase liquibase) {
    return new LiquibaseEndpoint(liquibase);
}
项目:spring-boot-concourse    文件:MvcEndpointPathConfigurationTests.java   
@Bean
public LiquibaseEndpoint liquibase() {
    return new LiquibaseEndpoint(new SpringLiquibase());
}
项目:contestparser    文件:EndpointAutoConfiguration.java   
@Bean
@ConditionalOnMissingBean
public LiquibaseEndpoint liquibaseEndpoint(SpringLiquibase liquibase) {
    return new LiquibaseEndpoint(liquibase);
}