Browse Source

Merge branch '1.5.x'

pull/7924/head
Stephane Nicoll 9 years ago
parent
commit
a2d55428ef
  1. 4
      spring-boot-actuator/src/test/java/org/springframework/boot/actuate/health/MongoHealthIndicatorTests.java
  2. 2
      spring-boot/src/test/java/org/springframework/boot/SpringApplicationTests.java

4
spring-boot-actuator/src/test/java/org/springframework/boot/actuate/health/MongoHealthIndicatorTests.java

@ -85,8 +85,8 @@ public class MongoHealthIndicatorTests { @@ -85,8 +85,8 @@ public class MongoHealthIndicatorTests {
MongoHealthIndicator healthIndicator = new MongoHealthIndicator(mongoTemplate);
Health health = healthIndicator.health();
assertThat(health.getStatus()).isEqualTo(Status.DOWN);
assertThat(((String) health.getDetails().get("error"))
.contains("Connection failed"));
assertThat((String) health.getDetails().get("error"))
.contains("Connection failed");
verify(mongoTemplate).executeCommand("{ buildInfo: 1 }");
}

2
spring-boot/src/test/java/org/springframework/boot/SpringApplicationTests.java

@ -802,7 +802,7 @@ public class SpringApplicationTests { @@ -802,7 +802,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);

Loading…
Cancel
Save