Skip to content

Commit

Permalink
Fix incomplete assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
eddumelendez authored and snicoll committed Jan 8, 2017
1 parent b9eda3f commit f896ff9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ public void mongoIsDown() throws Exception {
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 }");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -816,7 +816,7 @@ public void onApplicationEvent(
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);
Expand Down

0 comments on commit f896ff9

Please sign in to comment.