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

项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:EndpointWebMvcAutoConfigurationTests.java   
@Test
public void shutdownEndpointEnabled() {
    this.applicationContext.register(RootConfig.class, BaseConfiguration.class,
            ServerPortConfig.class, EndpointWebMvcAutoConfiguration.class);
    EnvironmentTestUtils.addEnvironment(this.applicationContext,
            "endpoints.shutdown.enabled:true");
    this.applicationContext.refresh();
    assertThat(this.applicationContext.getBeansOfType(ShutdownMvcEndpoint.class))
            .hasSize(1);
}
项目:spring-boot-concourse    文件:EndpointWebMvcAutoConfigurationTests.java   
@Test
public void shutdownEndpointEnabled() {
    this.applicationContext.register(RootConfig.class, BaseConfiguration.class,
            ServerPortConfig.class, EndpointWebMvcAutoConfiguration.class);
    EnvironmentTestUtils.addEnvironment(this.applicationContext,
            "endpoints.shutdown.enabled:true");
    this.applicationContext.refresh();
    assertThat(this.applicationContext.getBeansOfType(ShutdownMvcEndpoint.class))
            .hasSize(1);
}
项目:contestparser    文件:EndpointWebMvcAutoConfigurationTests.java   
@Test
public void shutdownEndpointEnabled() {
    this.applicationContext.register(RootConfig.class, BaseConfiguration.class,
            ServerPortConfig.class, EndpointWebMvcAutoConfiguration.class);
    EnvironmentTestUtils.addEnvironment(this.applicationContext,
            "endpoints.shutdown.enabled:true");
    this.applicationContext.refresh();
    assertThat(
            this.applicationContext.getBeansOfType(ShutdownMvcEndpoint.class).size(),
            is(equalTo(1)));
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:EndpointWebMvcManagementContextConfiguration.java   
@Bean
@ConditionalOnBean(ShutdownEndpoint.class)
@ConditionalOnEnabledEndpoint(value = "shutdown", enabledByDefault = false)
public ShutdownMvcEndpoint shutdownMvcEndpoint(ShutdownEndpoint delegate) {
    return new ShutdownMvcEndpoint(delegate);
}
项目:spring-boot-concourse    文件:EndpointWebMvcManagementContextConfiguration.java   
@Bean
@ConditionalOnBean(ShutdownEndpoint.class)
@ConditionalOnEnabledEndpoint(value = "shutdown", enabledByDefault = false)
public ShutdownMvcEndpoint shutdownMvcEndpoint(ShutdownEndpoint delegate) {
    return new ShutdownMvcEndpoint(delegate);
}
项目:contestparser    文件:EndpointWebMvcManagementContextConfiguration.java   
@Bean
@ConditionalOnBean(ShutdownEndpoint.class)
@ConditionalOnEnabledEndpoint(value = "shutdown", enabledByDefault = false)
public ShutdownMvcEndpoint shutdownMvcEndpoint(ShutdownEndpoint delegate) {
    return new ShutdownMvcEndpoint(delegate);
}