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:
Christoph Strobl 2019-04-25 13:04:21 +02:00
parent eb15c114b8
commit b60c9af35c

View File

@ -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);
}