Browse Source

Fix formatting

pull/16108/head
Brian Clozel 7 years ago
parent
commit
8325fce53e
  1. 3
      spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/endpoint/condition/ConditionalOnExposedEndpoint.java
  2. 7
      spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/endpoint/condition/ConditionalOnExposedEndpointTests.java

3
spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/endpoint/condition/ConditionalOnExposedEndpoint.java

@ -37,7 +37,8 @@ import org.springframework.core.env.Environment; @@ -37,7 +37,8 @@ import org.springframework.core.env.Environment;
* <li>{@code "management.endpoints.web.exposure.*"} expose this endpoint</li>
* <li>or if JMX is enabled and {@code "management.endpoints.jmx.exposure.*"} expose this
* endpoint</li>
* <li>or if the application is running on {@link org.springframework.boot.cloud.CloudPlatform#CLOUD_FOUNDRY}</li>
* <li>or if the application is running on
* {@link org.springframework.boot.cloud.CloudPlatform#CLOUD_FOUNDRY}</li>
* </ul>
*
* When placed on a {@code @Bean} method, the endpoint defaults to the return type of the

7
spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/endpoint/condition/ConditionalOnExposedEndpointTests.java

@ -144,10 +144,9 @@ public class ConditionalOnExposedEndpointTests { @@ -144,10 +144,9 @@ public class ConditionalOnExposedEndpointTests {
@Test
public void outcomeOnCloudFoundryShouldMatchAll() {
this.contextRunner
.withPropertyValues("VCAP_APPLICATION:---")
.run((context) -> assertThat(context).hasBean("info")
.hasBean("health").hasBean("spring").hasBean("test"));
this.contextRunner.withPropertyValues("VCAP_APPLICATION:---")
.run((context) -> assertThat(context).hasBean("info").hasBean("health")
.hasBean("spring").hasBean("test"));
}
@Endpoint(id = "health")

Loading…
Cancel
Save