Commit 16a01886 authored by Eddú Meléndez's avatar Eddú Meléndez Committed by Stephane Nicoll

Polish test

See gh-18130
parent c20cfba9
......@@ -30,6 +30,7 @@ import static org.assertj.core.api.Assertions.assertThat;
*
* @author Dave Syer
* @author Andy Wilkinson
* @author Eddú Meléndez
*/
class CloudFoundryVcapEnvironmentPostProcessorTests {
......@@ -50,7 +51,7 @@ class CloudFoundryVcapEnvironmentPostProcessorTests {
+ "\"name\":\"dsyerenv\",\"uris\":[\"dsyerenv.cfapps.io\"],"
+ "\"users\":[],\"start\":\"2013-05-29 02:37:59 +0000\",\"state_timestamp\":1369795079}");
this.initializer.postProcessEnvironment(this.context.getEnvironment(), null);
assertThat(this.context.getEnvironment().getProperty("vcap.application.instance_id"))
assertThat(getProperty("vcap.application.instance_id"))
.isEqualTo("bb7935245adf3e650dfb7c58a06e9ece");
}
......@@ -59,7 +60,7 @@ class CloudFoundryVcapEnvironmentPostProcessorTests {
TestPropertySourceUtils.addInlinedPropertiesToEnvironment(this.context,
"VCAP_APPLICATION={\"instance_id\":\"bb7935245adf3e650dfb7c58a06e9ece\",\"instance_index\":0,\"uris\":[\"foo.cfapps.io\"]}");
this.initializer.postProcessEnvironment(this.context.getEnvironment(), null);
assertThat(this.context.getEnvironment().getProperty("vcap.application.uris[0]")).isEqualTo("foo.cfapps.io");
assertThat(getProperty("vcap.application.uris[0]")).isEqualTo("foo.cfapps.io");
}
@Test
......
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