Skip to content

Commit b943dc2

Browse files
committed
removed duplicate test cases for DoubleIDRepository and IntegerIDRepository Tests
1 parent 8c31761 commit b943dc2

File tree

6 files changed

+30
-705
lines changed

6 files changed

+30
-705
lines changed

src/test/java/org/springframework/data/elasticsearch/DoubleIDEntity.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,14 @@
1919
import org.springframework.data.annotation.Version;
2020
import org.springframework.data.elasticsearch.annotations.Document;
2121

22+
/**
23+
* @author Rizwan Idrees
24+
* @author Mohsin Husen
25+
*/
2226

2327
@Document(indexName = "double-keyed-entity", type = "double-keyed-entity", indexStoreType = "memory", shards = 1 , replicas = 0, refreshInterval = "-1")
2428
public class DoubleIDEntity {
2529

26-
2730
@Id
2831
private Double id;
2932
private String type;

src/test/java/org/springframework/data/elasticsearch/IntegerIDEntity.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
import org.springframework.data.annotation.Version;
2020
import org.springframework.data.elasticsearch.annotations.Document;
2121

22+
/**
23+
* @author Rizwan Idrees
24+
* @author Mohsin Husen
25+
*/
2226

2327
@Document(indexName = "integer-keyed-entity", type = "integer-keyed-entity", indexStoreType = "memory", shards = 1 , replicas = 0, refreshInterval = "-1")
2428
public class IntegerIDEntity {

src/test/java/org/springframework/data/elasticsearch/SampleMappingEntity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public class SampleMappingEntity {
2929

3030
@Id
3131
private String id;
32-
@Field(type = "string",index = "not_analyzed", store = true, searchAnalyzer = "standard", indexAnalyzer = "standard")
32+
@Field(type = "string", index = "not_analyzed", store = true, searchAnalyzer = "standard", indexAnalyzer = "standard")
3333
private String message;
3434

3535
private NestedEntity nested;

src/test/java/org/springframework/data/elasticsearch/config/EnableElasticsearchRepositoriesTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ static class Config {
4747

4848
@Bean
4949
public ElasticsearchOperations elasticsearchTemplate() {
50-
return new ElasticsearchTemplate(nodeBuilder().local(true).node().client());
50+
return new ElasticsearchTemplate(nodeBuilder().local(true).clusterName("testCluster").node().client());
5151
}
5252
}
5353

0 commit comments

Comments
 (0)