Polish
closes gh-9729
This commit is contained in:
committed by
Stephane Nicoll
parent
8e3baf3130
commit
360e3a492c
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user