Skip to content

Commit b60c9af

Browse files
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.
1 parent eb15c11 commit b60c9af

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleReactiveElasticsearchRepositoryTests.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
import org.elasticsearch.action.support.WriteRequest.RefreshPolicy;
3232
import org.elasticsearch.client.RequestOptions;
3333
import org.elasticsearch.client.RestHighLevelClient;
34-
import org.junit.After;
34+
import org.junit.Before;
3535
import org.junit.Test;
3636
import org.junit.runner.RunWith;
3737
import org.reactivestreams.Publisher;
@@ -75,8 +75,8 @@ public ReactiveElasticsearchClient reactiveElasticsearchClient() {
7575

7676
@Autowired ReactiveSampleEntityRepository repository;
7777

78-
@After
79-
public void tearDown() {
78+
@Before
79+
public void setUp() {
8080
TestUtils.deleteIndex(INDEX);
8181
}
8282

0 commit comments

Comments
 (0)