mirror of
https://github.com/spring-projects/spring-data-elasticsearch.git
synced 2025-06-14 08:02:11 +00:00
DATAES-565 - Alter test setup to assure a clean start.
Make sure required resources are cleaned before running tests. Some leftovers from other tests may still be lingering around and we need to get rid of those.
This commit is contained in:
parent
eb15c114b8
commit
b60c9af35c
@ -31,7 +31,7 @@ import org.elasticsearch.action.index.IndexRequest;
|
||||
import org.elasticsearch.action.support.WriteRequest.RefreshPolicy;
|
||||
import org.elasticsearch.client.RequestOptions;
|
||||
import org.elasticsearch.client.RestHighLevelClient;
|
||||
import org.junit.After;
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.reactivestreams.Publisher;
|
||||
@ -75,8 +75,8 @@ public class SimpleReactiveElasticsearchRepositoryTests {
|
||||
|
||||
@Autowired ReactiveSampleEntityRepository repository;
|
||||
|
||||
@After
|
||||
public void tearDown() {
|
||||
@Before
|
||||
public void setUp() {
|
||||
TestUtils.deleteIndex(INDEX);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user