Polish test

See gh-18130
pull/18164/head
Eddú Meléndez 5 years ago committed by Stephane Nicoll
parent c20cfba98f
commit 16a0188666

@ -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

Loading…
Cancel
Save