closes gh-9729
This commit is contained in:
Johnny Lim
2017-07-11 23:54:03 +09:00
committed by Stephane Nicoll
parent 8e3baf3130
commit 360e3a492c
12 changed files with 23 additions and 29 deletions

View File

@@ -18,7 +18,6 @@ package sample.data.elasticsearch;
import java.io.File;
import org.assertj.core.api.Assertions;
import org.elasticsearch.client.transport.NoNodeAvailableException;
import org.junit.ClassRule;
import org.junit.Rule;
@@ -30,6 +29,8 @@ import org.junit.runners.model.Statement;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.test.rule.OutputCapture;
import static org.assertj.core.api.Assertions.assertThat;
/**
* Tests for {@link SampleElasticsearchApplication}.
*
@@ -55,7 +56,7 @@ public class SampleElasticsearchApplicationTests {
throw ex;
}
String output = this.outputCapture.toString();
Assertions.assertThat(output).contains("firstName='Alice', lastName='Smith'");
assertThat(output).contains("firstName='Alice', lastName='Smith'");
}
private boolean elasticsearchRunning(Exception ex) {