Fix formatting
This commit is contained in:
parent
6586bae889
commit
8325fce53e
|
@ -37,7 +37,8 @@ import org.springframework.core.env.Environment;
|
||||||
* <li>{@code "management.endpoints.web.exposure.*"} expose this endpoint</li>
|
* <li>{@code "management.endpoints.web.exposure.*"} expose this endpoint</li>
|
||||||
* <li>or if JMX is enabled and {@code "management.endpoints.jmx.exposure.*"} expose this
|
* <li>or if JMX is enabled and {@code "management.endpoints.jmx.exposure.*"} expose this
|
||||||
* endpoint</li>
|
* 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>
|
* </ul>
|
||||||
*
|
*
|
||||||
* When placed on a {@code @Bean} method, the endpoint defaults to the return type of the
|
* When placed on a {@code @Bean} method, the endpoint defaults to the return type of the
|
||||||
|
|
|
@ -144,10 +144,9 @@ public class ConditionalOnExposedEndpointTests {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void outcomeOnCloudFoundryShouldMatchAll() {
|
public void outcomeOnCloudFoundryShouldMatchAll() {
|
||||||
this.contextRunner
|
this.contextRunner.withPropertyValues("VCAP_APPLICATION:---")
|
||||||
.withPropertyValues("VCAP_APPLICATION:---")
|
.run((context) -> assertThat(context).hasBean("info").hasBean("health")
|
||||||
.run((context) -> assertThat(context).hasBean("info")
|
.hasBean("spring").hasBean("test"));
|
||||||
.hasBean("health").hasBean("spring").hasBean("test"));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Endpoint(id = "health")
|
@Endpoint(id = "health")
|
||||||
|
|
Loading…
Reference in New Issue