Skip to content

Commit 1e33e0f

Browse files
committed
fix import after cherrypick
1 parent e4df537 commit 1e33e0f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Diff for: src/test/java/org/springframework/data/elasticsearch/core/routing/ElasticsearchOperationsRoutingTests.java

+5-3
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,12 @@
2929
import org.springframework.data.elasticsearch.annotations.Document;
3030
import org.springframework.data.elasticsearch.annotations.Routing;
3131
import org.springframework.data.elasticsearch.annotations.Setting;
32+
import org.springframework.data.elasticsearch.core.AbstractElasticsearchTemplate;
3233
import org.springframework.data.elasticsearch.core.ElasticsearchOperations;
3334
import org.springframework.data.elasticsearch.core.IndexOperations;
3435
import org.springframework.data.elasticsearch.core.SearchHits;
3536
import org.springframework.data.elasticsearch.core.mapping.IndexCoordinates;
37+
import org.springframework.data.elasticsearch.core.mapping.SimpleElasticsearchMappingContext;
3638
import org.springframework.data.elasticsearch.core.query.Query;
3739
import org.springframework.data.elasticsearch.junit.jupiter.ElasticsearchRestTemplateConfiguration;
3840
import org.springframework.data.elasticsearch.junit.jupiter.SpringIntegrationTest;
@@ -121,16 +123,16 @@ void shouldStoreDataWithDifferentRoutingAndGetTheRoutingInTheSearchResult() {
121123

122124
@Test
123125
void shouldCreateACopyOfTheClientWithRefreshPolicy() {
124-
//given
126+
// given
125127
AbstractElasticsearchTemplate sourceTemplate = (AbstractElasticsearchTemplate) operations;
126128
SimpleElasticsearchMappingContext mappingContext = new SimpleElasticsearchMappingContext();
127129
DefaultRoutingResolver defaultRoutingResolver = new DefaultRoutingResolver(mappingContext);
128130

129-
//when
131+
// when
130132
ElasticsearchOperations operationsCopy = this.operations.withRouting(defaultRoutingResolver);
131133
AbstractElasticsearchTemplate copyTemplate = (AbstractElasticsearchTemplate) operationsCopy;
132134

133-
//then
135+
// then
134136
assertThat(sourceTemplate.getRefreshPolicy()).isEqualTo(copyTemplate.getRefreshPolicy());
135137
}
136138

0 commit comments

Comments
 (0)