Commit cc8ecb6f authored by Dave Syer's avatar Dave Syer

Clear VCAP_APPLICATION after tests

So that other CF tests do not fail.
parent 95ee1452
......@@ -19,6 +19,7 @@ package org.springframework.boot.actuate.endpoint;
import java.util.Collections;
import java.util.Map;
import org.junit.After;
import org.junit.Test;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
......@@ -45,6 +46,12 @@ public class EnvironmentEndpointTests extends AbstractEndpointTests<EnvironmentE
super(Config.class, EnvironmentEndpoint.class, "env", true, "endpoints.env");
}
@Override
@After
public void close() {
System.clearProperty("VCAP_SERVICES");
}
@Test
public void invoke() throws Exception {
assertThat(getEndpointBean().invoke()).isNotEmpty();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment