Fix incomplete assertions

Closes gh-7907
This commit is contained in:
Eddú Meléndez
2017-01-08 00:47:36 -05:00
committed by Stephane Nicoll
parent b9eda3f26b
commit f896ff9a10
2 changed files with 3 additions and 3 deletions

View File

@@ -816,7 +816,7 @@ public class SpringApplicationTests {
this.context = application.run();
assertThat(this.context.getEnvironment())
.isNotInstanceOf(StandardServletEnvironment.class);
assertThat(this.context.getEnvironment().getProperty("foo"));
assertThat(this.context.getEnvironment().getProperty("foo")).isEqualTo("bar");
assertThat(this.context.getEnvironment().getPropertySources().iterator().next()
.getName()).isEqualTo(
TestPropertySourceUtils.INLINED_PROPERTIES_PROPERTY_SOURCE_NAME);