code
stringlengths
23
201k
docstring
stringlengths
17
96.2k
func_name
stringlengths
0
235
language
stringclasses
1 value
repo
stringlengths
8
72
path
stringlengths
11
317
url
stringlengths
57
377
license
stringclasses
7 values
@Test // DATAES-64 public void shouldCreateGivenDynamicSettingsForGivenIndex() { assertThat(indexOperations.exists()).isTrue(); Map<String, Object> map = indexOperations.getSettings().flatten(); assertThat(map.containsKey("index.number_of_replicas")).isTrue(); assertThat(map.containsKey("index.number_of_shard...
DynamicSettingAndMappingEntityRepositoryIntegrationTests @author Mohsin Husen @author Ilkang Na @author Peter-Josef Meisch
shouldCreateGivenDynamicSettingsForGivenIndex
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/setting/dynamic/DynamicSettingAndMappingEntityRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/setting/dynamic/DynamicSettingAndMappingEntityRepositoryIntegrationTests.java
Apache-2.0
@Test // DATAES-64 public void shouldSearchOnGivenTokenizerUsingGivenDynamicSettingsForGivenIndex() { DynamicSettingAndMappingEntity dynamicSettingAndMappingEntity1 = new DynamicSettingAndMappingEntity(); dynamicSettingAndMappingEntity1.setId(nextIdAsString()); dynamicSettingAndMappingEntity1.setName("test-sett...
DynamicSettingAndMappingEntityRepositoryIntegrationTests @author Mohsin Husen @author Ilkang Na @author Peter-Josef Meisch
shouldSearchOnGivenTokenizerUsingGivenDynamicSettingsForGivenIndex
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/setting/dynamic/DynamicSettingAndMappingEntityRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/setting/dynamic/DynamicSettingAndMappingEntityRepositoryIntegrationTests.java
Apache-2.0
@Test public void shouldGetMappingForGivenIndexAndType() { Map<String, Object> mapping = indexOperations.getMapping(); Map<String, Object> properties = (Map<String, Object>) mapping.get("properties"); assertThat(mapping).isNotNull(); assertThat(properties).isNotNull(); Map<String, Object> emailProperties =...
DynamicSettingAndMappingEntityRepositoryIntegrationTests @author Mohsin Husen @author Ilkang Na @author Peter-Josef Meisch
shouldGetMappingForGivenIndexAndType
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/setting/dynamic/DynamicSettingAndMappingEntityRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/setting/dynamic/DynamicSettingAndMappingEntityRepositoryIntegrationTests.java
Apache-2.0
@Test public void shouldCreateMappingWithSpecifiedMappings() { // given indexOperations.delete(); indexOperations.create(); indexOperations.refresh(); String mappings = """ { "properties" : { "email" : {"type" : "text", "analyzer" : "emailAnalyzer" } } }"""; ...
DynamicSettingAndMappingEntityRepositoryIntegrationTests @author Mohsin Husen @author Ilkang Na @author Peter-Josef Meisch
shouldCreateMappingWithSpecifiedMappings
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/setting/dynamic/DynamicSettingAndMappingEntityRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/setting/dynamic/DynamicSettingAndMappingEntityRepositoryIntegrationTests.java
Apache-2.0
@Test // DATAES-86 public void shouldCreateMappingWithUsingMappingAnnotation() { Map<String, Object> mapping = indexOperations.getMapping(); Map<String, Object> properties = (Map<String, Object>) mapping.get("properties"); assertThat(mapping).isNotNull(); assertThat(properties).isNotNull(); Map<String, Obje...
DynamicSettingAndMappingEntityRepositoryIntegrationTests @author Mohsin Husen @author Ilkang Na @author Peter-Josef Meisch
shouldCreateMappingWithUsingMappingAnnotation
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/setting/dynamic/DynamicSettingAndMappingEntityRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/setting/dynamic/DynamicSettingAndMappingEntityRepositoryIntegrationTests.java
Apache-2.0
public String getId() { return id; }
DynamicSettingAndMappingEntityRepositoryIntegrationTests @author Mohsin Husen @author Ilkang Na @author Peter-Josef Meisch
getId
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/setting/dynamic/DynamicSettingAndMappingEntityRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/setting/dynamic/DynamicSettingAndMappingEntityRepositoryIntegrationTests.java
Apache-2.0
public void setId(String id) { this.id = id; }
DynamicSettingAndMappingEntityRepositoryIntegrationTests @author Mohsin Husen @author Ilkang Na @author Peter-Josef Meisch
setId
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/setting/dynamic/DynamicSettingAndMappingEntityRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/setting/dynamic/DynamicSettingAndMappingEntityRepositoryIntegrationTests.java
Apache-2.0
public String getName() { return name; }
DynamicSettingAndMappingEntityRepositoryIntegrationTests @author Mohsin Husen @author Ilkang Na @author Peter-Josef Meisch
getName
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/setting/dynamic/DynamicSettingAndMappingEntityRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/setting/dynamic/DynamicSettingAndMappingEntityRepositoryIntegrationTests.java
Apache-2.0
public void setName(String name) { this.name = name; }
DynamicSettingAndMappingEntityRepositoryIntegrationTests @author Mohsin Husen @author Ilkang Na @author Peter-Josef Meisch
setName
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/setting/dynamic/DynamicSettingAndMappingEntityRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/setting/dynamic/DynamicSettingAndMappingEntityRepositoryIntegrationTests.java
Apache-2.0
public String getEmail() { return email; }
DynamicSettingAndMappingEntityRepositoryIntegrationTests @author Mohsin Husen @author Ilkang Na @author Peter-Josef Meisch
getEmail
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/setting/dynamic/DynamicSettingAndMappingEntityRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/setting/dynamic/DynamicSettingAndMappingEntityRepositoryIntegrationTests.java
Apache-2.0
public void setEmail(String email) { this.email = email; }
DynamicSettingAndMappingEntityRepositoryIntegrationTests @author Mohsin Husen @author Ilkang Na @author Peter-Josef Meisch
setEmail
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/setting/dynamic/DynamicSettingAndMappingEntityRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/setting/dynamic/DynamicSettingAndMappingEntityRepositoryIntegrationTests.java
Apache-2.0
@BeforeEach public void before() { indexNameProvider.increment(); operations.indexOps(FieldDynamicMappingEntity.class).createWithMapping(); }
FieldDynamicMappingEntityRepositoryIntegrationTests @author Ted Liang @author Peter-Josef Meisch
before
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/setting/fielddynamic/FieldDynamicMappingEntityRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/setting/fielddynamic/FieldDynamicMappingEntityRepositoryIntegrationTests.java
Apache-2.0
@Test @Order(Integer.MAX_VALUE) void cleanup() { operations.indexOps(IndexCoordinates.of(indexNameProvider.getPrefix() + "*")).delete(); }
FieldDynamicMappingEntityRepositoryIntegrationTests @author Ted Liang @author Peter-Josef Meisch
cleanup
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/setting/fielddynamic/FieldDynamicMappingEntityRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/setting/fielddynamic/FieldDynamicMappingEntityRepositoryIntegrationTests.java
Apache-2.0
@Test // DATAES-209 public void shouldCreateMappingWithMappingAnnotationAtFieldLevel() { // given // then Map<String, Object> mapping = operations.indexOps(FieldDynamicMappingEntity.class).getMapping(); assertThat(mapping).isNotNull(); Map<String, Object> properties = (Map<String, Object>) mapping.get("pr...
FieldDynamicMappingEntityRepositoryIntegrationTests @author Ted Liang @author Peter-Josef Meisch
shouldCreateMappingWithMappingAnnotationAtFieldLevel
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/setting/fielddynamic/FieldDynamicMappingEntityRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/setting/fielddynamic/FieldDynamicMappingEntityRepositoryIntegrationTests.java
Apache-2.0
public String getId() { return id; }
FieldDynamicMappingEntityRepositoryIntegrationTests @author Ted Liang @author Peter-Josef Meisch
getId
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/setting/fielddynamic/FieldDynamicMappingEntityRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/setting/fielddynamic/FieldDynamicMappingEntityRepositoryIntegrationTests.java
Apache-2.0
public void setId(String id) { this.id = id; }
FieldDynamicMappingEntityRepositoryIntegrationTests @author Ted Liang @author Peter-Josef Meisch
setId
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/setting/fielddynamic/FieldDynamicMappingEntityRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/setting/fielddynamic/FieldDynamicMappingEntityRepositoryIntegrationTests.java
Apache-2.0
public byte[] getFile() { return file; }
FieldDynamicMappingEntityRepositoryIntegrationTests @author Ted Liang @author Peter-Josef Meisch
getFile
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/setting/fielddynamic/FieldDynamicMappingEntityRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/setting/fielddynamic/FieldDynamicMappingEntityRepositoryIntegrationTests.java
Apache-2.0
public void setFile(byte[] file) { this.file = file; }
FieldDynamicMappingEntityRepositoryIntegrationTests @author Ted Liang @author Peter-Josef Meisch
setFile
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/setting/fielddynamic/FieldDynamicMappingEntityRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/setting/fielddynamic/FieldDynamicMappingEntityRepositoryIntegrationTests.java
Apache-2.0
@BeforeEach public void before() { indexNameProvider.increment(); operations.indexOps(SpELEntity.class).createWithMapping(); }
SpELEntityTest @author Artur Konczak @author Peter-Josef Meisch
before
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/spel/SpELEntityIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/spel/SpELEntityIntegrationTests.java
Apache-2.0
@Test @Order(Integer.MAX_VALUE) void cleanup() { operations.indexOps(IndexCoordinates.of(indexNameProvider.getPrefix() + "*")).delete(); }
SpELEntityTest @author Artur Konczak @author Peter-Josef Meisch
cleanup
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/spel/SpELEntityIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/spel/SpELEntityIntegrationTests.java
Apache-2.0
@Test public void shouldDo() { // given repository.save(new SpELEntity()); repository.save(new SpELEntity()); // when // then long count = operations.count(operations.matchAllQuery(), SpELEntity.class); assertThat(count).isEqualTo(2); }
SpELEntityTest @author Artur Konczak @author Peter-Josef Meisch
shouldDo
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/spel/SpELEntityIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/spel/SpELEntityIntegrationTests.java
Apache-2.0
@Test public void shouldSupportSpelInType() { // given SpELEntity spELEntity = new SpELEntity(); repository.save(spELEntity); // when // then long count = operations.count(operations.matchAllQuery(), SpELEntity.class); assertThat(count).isEqualTo(1); }
SpELEntityTest @author Artur Konczak @author Peter-Josef Meisch
shouldSupportSpelInType
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/spel/SpELEntityIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/spel/SpELEntityIntegrationTests.java
Apache-2.0
public String getId() { return id; }
SpELEntityTest @author Artur Konczak @author Peter-Josef Meisch
getId
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/spel/SpELEntityIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/spel/SpELEntityIntegrationTests.java
Apache-2.0
public void setId(String id) { this.id = id; }
SpELEntityTest @author Artur Konczak @author Peter-Josef Meisch
setId
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/spel/SpELEntityIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/spel/SpELEntityIntegrationTests.java
Apache-2.0
@BeforeEach public void before() { indexNameProvider.increment(); operations.indexOps(SynonymEntity.class).createWithMapping(); }
SynonymRepositoryIntegrationTests @author Artur Konczak @author Peter-Josef Meisch
before
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/synonym/SynonymRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/synonym/SynonymRepositoryIntegrationTests.java
Apache-2.0
@Test @Order(Integer.MAX_VALUE) void cleanup() { operations.indexOps(IndexCoordinates.of(indexNameProvider.getPrefix() + "*")).delete(); }
SynonymRepositoryIntegrationTests @author Artur Konczak @author Peter-Josef Meisch
cleanup
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/synonym/SynonymRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/synonym/SynonymRepositoryIntegrationTests.java
Apache-2.0
@Test public void shouldDo() { SynonymEntity entry1 = new SynonymEntity(); entry1.setText("Elizabeth is the english queen"); SynonymEntity entry2 = new SynonymEntity(); entry2.setText("Other text"); repository.save(entry1); repository.save(entry2); Query query = new CriteriaQuery(new Criteria("text").i...
SynonymRepositoryIntegrationTests @author Artur Konczak @author Peter-Josef Meisch
shouldDo
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/synonym/SynonymRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/synonym/SynonymRepositoryIntegrationTests.java
Apache-2.0
@Nullable public String getId() { return id; }
SynonymRepositoryIntegrationTests @author Artur Konczak @author Peter-Josef Meisch
getId
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/synonym/SynonymRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/synonym/SynonymRepositoryIntegrationTests.java
Apache-2.0
public void setId(@Nullable String id) { this.id = id; }
SynonymRepositoryIntegrationTests @author Artur Konczak @author Peter-Josef Meisch
setId
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/synonym/SynonymRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/synonym/SynonymRepositoryIntegrationTests.java
Apache-2.0
@Nullable public String getText() { return text; }
SynonymRepositoryIntegrationTests @author Artur Konczak @author Peter-Josef Meisch
getText
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/synonym/SynonymRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/synonym/SynonymRepositoryIntegrationTests.java
Apache-2.0
public void setText(@Nullable String text) { this.text = text; }
SynonymRepositoryIntegrationTests @author Artur Konczak @author Peter-Josef Meisch
setText
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/synonym/SynonymRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/synonym/SynonymRepositoryIntegrationTests.java
Apache-2.0
@BeforeEach public void before() { indexNameProvider.increment(); operations.indexOps(SampleEntityUUIDKeyed.class).createWithMapping(); }
@author Gad Akuka @author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch
before
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test @org.junit.jupiter.api.Order(Integer.MAX_VALUE) void cleanup() { operations.indexOps(IndexCoordinates.of(indexNameProvider.getPrefix() + '*')).delete(); }
@author Gad Akuka @author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch
cleanup
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test public void shouldDoBulkIndexDocument() { // given UUID documentId1 = UUID.randomUUID(); SampleEntityUUIDKeyed sampleEntityUUIDKeyed1 = new SampleEntityUUIDKeyed(); sampleEntityUUIDKeyed1.setId(documentId1); sampleEntityUUIDKeyed1.setMessage("some message"); sampleEntityUUIDKeyed1.setVersion(System....
@author Gad Akuka @author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch
shouldDoBulkIndexDocument
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test public void shouldSaveDocument() { // given UUID documentId = UUID.randomUUID(); SampleEntityUUIDKeyed sampleEntityUUIDKeyed = new SampleEntityUUIDKeyed(); sampleEntityUUIDKeyed.setId(documentId); sampleEntityUUIDKeyed.setMessage("some message"); sampleEntityUUIDKeyed.setVersion(System.currentTimeMi...
@author Gad Akuka @author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch
shouldSaveDocument
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test public void shouldFindDocumentById() { // given UUID documentId = UUID.randomUUID(); SampleEntityUUIDKeyed sampleEntityUUIDKeyed = new SampleEntityUUIDKeyed(); sampleEntityUUIDKeyed.setId(documentId); sampleEntityUUIDKeyed.setMessage("some message"); sampleEntityUUIDKeyed.setVersion(System.currentTi...
@author Gad Akuka @author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch
shouldFindDocumentById
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test public void shouldReturnCountOfDocuments() { // given UUID documentId = UUID.randomUUID(); SampleEntityUUIDKeyed sampleEntityUUIDKeyed = new SampleEntityUUIDKeyed(); sampleEntityUUIDKeyed.setId(documentId); sampleEntityUUIDKeyed.setMessage("some message"); sampleEntityUUIDKeyed.setVersion(System.cur...
@author Gad Akuka @author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch
shouldReturnCountOfDocuments
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test public void shouldFindAllDocuments() { // when Iterable<SampleEntityUUIDKeyed> results = repository.findAll(); // then assertThat(results).isNotNull(); }
@author Gad Akuka @author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch
shouldFindAllDocuments
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test public void shouldDeleteDocument() { // given UUID documentId = UUID.randomUUID(); SampleEntityUUIDKeyed sampleEntityUUIDKeyed = new SampleEntityUUIDKeyed(); sampleEntityUUIDKeyed.setId(documentId); sampleEntityUUIDKeyed.setMessage("some message"); sampleEntityUUIDKeyed.setVersion(System.currentTime...
@author Gad Akuka @author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch
shouldDeleteDocument
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test // DATAES-82 public void shouldFindAllByIdQuery() { // given UUID documentId = UUID.randomUUID(); SampleEntityUUIDKeyed sampleEntityUUIDKeyed = new SampleEntityUUIDKeyed(); sampleEntityUUIDKeyed.setId(documentId); sampleEntityUUIDKeyed.setMessage("hello world."); sampleEntityUUIDKeyed.setVersion(Sys...
@author Gad Akuka @author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch
shouldFindAllByIdQuery
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test public void shouldSaveIterableEntities() { // given UUID documentId = UUID.randomUUID(); SampleEntityUUIDKeyed sampleEntityUUIDKeyed1 = new SampleEntityUUIDKeyed(); sampleEntityUUIDKeyed1.setId(documentId); sampleEntityUUIDKeyed1.setMessage("hello world."); sampleEntityUUIDKeyed1.setVersion(System.c...
@author Gad Akuka @author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch
shouldSaveIterableEntities
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test public void shouldReturnTrueGivenDocumentWithIdExists() { // given UUID documentId = UUID.randomUUID(); SampleEntityUUIDKeyed sampleEntityUUIDKeyed = new SampleEntityUUIDKeyed(); sampleEntityUUIDKeyed.setId(documentId); sampleEntityUUIDKeyed.setMessage("hello world."); sampleEntityUUIDKeyed.setVersi...
@author Gad Akuka @author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch
shouldReturnTrueGivenDocumentWithIdExists
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test // DATAES-363 public void shouldReturnFalseGivenDocumentWithIdDoesNotExist() { // given UUID documentId = UUID.randomUUID(); // when boolean exist = repository.existsById(documentId); // then assertThat(exist).isFalse(); }
@author Gad Akuka @author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch
shouldReturnFalseGivenDocumentWithIdDoesNotExist
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test public void shouldDeleteAll() { // when repository.deleteAll(); // then Iterable<SampleEntityUUIDKeyed> sampleEntities = repository.findAll(); assertThat(sampleEntities).isEmpty(); }
@author Gad Akuka @author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch
shouldDeleteAll
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test public void shouldDeleteById() { // given UUID documentId = UUID.randomUUID(); SampleEntityUUIDKeyed sampleEntityUUIDKeyed = new SampleEntityUUIDKeyed(); sampleEntityUUIDKeyed.setId(documentId); sampleEntityUUIDKeyed.setMessage("hello world."); sampleEntityUUIDKeyed.setVersion(System.currentTimeMill...
@author Gad Akuka @author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch
shouldDeleteById
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test public void shouldDeleteByMessageAndReturnList() { // given UUID documentId = UUID.randomUUID(); SampleEntityUUIDKeyed sampleEntityUUIDKeyed1 = new SampleEntityUUIDKeyed(); sampleEntityUUIDKeyed1.setId(documentId); sampleEntityUUIDKeyed1.setMessage("hello world 1"); sampleEntityUUIDKeyed1.setAvailab...
@author Gad Akuka @author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch
shouldDeleteByMessageAndReturnList
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test public void shouldDeleteByListForMessage() { // given UUID documentId = UUID.randomUUID(); SampleEntityUUIDKeyed sampleEntityUUIDKeyed1 = new SampleEntityUUIDKeyed(); sampleEntityUUIDKeyed1.setId(documentId); sampleEntityUUIDKeyed1.setMessage("hello world 1"); sampleEntityUUIDKeyed1.setVersion(Syste...
@author Gad Akuka @author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch
shouldDeleteByListForMessage
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test public void shouldDeleteByType() { // given UUID documentId = UUID.randomUUID(); SampleEntityUUIDKeyed sampleEntityUUIDKeyed1 = new SampleEntityUUIDKeyed(); sampleEntityUUIDKeyed1.setId(documentId); sampleEntityUUIDKeyed1.setType("book"); sampleEntityUUIDKeyed1.setVersion(System.currentTimeMillis())...
@author Gad Akuka @author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch
shouldDeleteByType
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test public void shouldDeleteEntity() { // given UUID documentId = UUID.randomUUID(); SampleEntityUUIDKeyed sampleEntityUUIDKeyed = new SampleEntityUUIDKeyed(); sampleEntityUUIDKeyed.setId(documentId); sampleEntityUUIDKeyed.setMessage("hello world."); sampleEntityUUIDKeyed.setVersion(System.currentTimeMi...
@author Gad Akuka @author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch
shouldDeleteEntity
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test public void shouldReturnIterableEntities() { // given UUID documentId1 = UUID.randomUUID(); SampleEntityUUIDKeyed sampleEntityUUIDKeyed1 = new SampleEntityUUIDKeyed(); sampleEntityUUIDKeyed1.setId(documentId1); sampleEntityUUIDKeyed1.setMessage("hello world."); sampleEntityUUIDKeyed1.setVersion(Syst...
@author Gad Akuka @author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch
shouldReturnIterableEntities
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test public void shouldDeleteIterableEntities() { // given UUID documentId1 = UUID.randomUUID(); SampleEntityUUIDKeyed sampleEntityUUIDKeyed1 = new SampleEntityUUIDKeyed(); sampleEntityUUIDKeyed1.setId(documentId1); sampleEntityUUIDKeyed1.setMessage("hello world."); sampleEntityUUIDKeyed1.setVersion(Syst...
@author Gad Akuka @author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch
shouldDeleteIterableEntities
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test public void shouldSortByGivenField() { // given UUID documentId = UUID.randomUUID(); SampleEntityUUIDKeyed sampleEntityUUIDKeyed = new SampleEntityUUIDKeyed(); sampleEntityUUIDKeyed.setId(documentId); sampleEntityUUIDKeyed.setMessage("world"); repository.save(sampleEntityUUIDKeyed); UUID document...
@author Gad Akuka @author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch
shouldSortByGivenField
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test public void shouldReturnSimilarEntities() { // given String sampleMessage = "So we build a web site or an application and want to add search to it, " + "and then it hits us: getting search working is hard. We want our search solution to be fast," + " we want a painless setup and a completely free se...
@author Gad Akuka @author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch
shouldReturnSimilarEntities
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
Apache-2.0
private static List<SampleEntityUUIDKeyed> createSampleEntitiesWithMessage(String message, int numberOfEntities) { List<SampleEntityUUIDKeyed> sampleEntities = new ArrayList<>(); for (int i = 0; i < numberOfEntities; i++) { UUID documentId = UUID.randomUUID(); SampleEntityUUIDKeyed sampleEntityUUIDKeyed = new...
@author Gad Akuka @author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch
createSampleEntitiesWithMessage
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Nullable public UUID getId() { return id; }
@author Gad Akuka @author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch
getId
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
Apache-2.0
public void setId(@Nullable UUID id) { this.id = id; }
@author Gad Akuka @author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch
setId
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Nullable public String getType() { return type; }
@author Gad Akuka @author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch
getType
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
Apache-2.0
public void setType(@Nullable String type) { this.type = type; }
@author Gad Akuka @author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch
setType
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Nullable public String getMessage() { return message; }
@author Gad Akuka @author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch
getMessage
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
Apache-2.0
public void setMessage(@Nullable String message) { this.message = message; }
@author Gad Akuka @author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch
setMessage
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
Apache-2.0
public int getRate() { return rate; }
@author Gad Akuka @author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch
getRate
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
Apache-2.0
public void setRate(int rate) { this.rate = rate; }
@author Gad Akuka @author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch
setRate
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Nullable public Long getScriptedRate() { return scriptedRate; }
@author Gad Akuka @author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch
getScriptedRate
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
Apache-2.0
public void setScriptedRate(@Nullable Long scriptedRate) { this.scriptedRate = scriptedRate; }
@author Gad Akuka @author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch
setScriptedRate
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
Apache-2.0
public boolean isAvailable() { return available; }
@author Gad Akuka @author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch
isAvailable
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
Apache-2.0
public void setAvailable(boolean available) { this.available = available; }
@author Gad Akuka @author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch
setAvailable
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Nullable public String getHighlightedMessage() { return highlightedMessage; }
@author Gad Akuka @author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch
getHighlightedMessage
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
Apache-2.0
public void setHighlightedMessage(@Nullable String highlightedMessage) { this.highlightedMessage = highlightedMessage; }
@author Gad Akuka @author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch
setHighlightedMessage
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Nullable public GeoPoint getLocation() { return location; }
@author Gad Akuka @author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch
getLocation
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
Apache-2.0
public void setLocation(@Nullable GeoPoint location) { this.location = location; }
@author Gad Akuka @author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch
setLocation
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Nullable public Long getVersion() { return version; }
@author Gad Akuka @author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch
getVersion
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
Apache-2.0
public void setVersion(@Nullable Long version) { this.version = version; }
@author Gad Akuka @author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch
setVersion
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Override public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof SampleEntityUUIDKeyed that)) return false; if (rate != that.rate) return false; if (available != that.available) return false; if (!Objects.equals(id, that.id)) return false; if (!Objects....
@author Gad Akuka @author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch
equals
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Override public int hashCode() { int result = id != null ? id.hashCode() : 0; result = 31 * result + (type != null ? type.hashCode() : 0); result = 31 * result + (message != null ? message.hashCode() : 0); result = 31 * result + rate; result = 31 * result + (scriptedRate != null ? scriptedRate.hashCod...
@author Gad Akuka @author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch
hashCode
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/uuidkeyed/UUIDElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test // DATAES-519 public void testConfiguration() { Assertions.assertThat(context).isNotNull(); Assertions.assertThat(repository).isNotNull(); // there is an index to delete after this test operations.indexOps(SampleEntity.class).delete() .block(); }
@author Christoph Strobl @author Peter-Josef Meisch
testConfiguration
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/config/ReactiveElasticsearchRepositoriesRegistrarTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/config/ReactiveElasticsearchRepositoriesRegistrarTests.java
Apache-2.0
@Nullable public String getId() { return id; }
@author Christoph Strobl @author Peter-Josef Meisch
getId
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/config/ReactiveElasticsearchRepositoriesRegistrarTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/config/ReactiveElasticsearchRepositoriesRegistrarTests.java
Apache-2.0
public void setId(@Nullable String id) { this.id = id; }
@author Christoph Strobl @author Peter-Josef Meisch
setId
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/config/ReactiveElasticsearchRepositoriesRegistrarTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/config/ReactiveElasticsearchRepositoriesRegistrarTests.java
Apache-2.0
@Nullable public String getType() { return type; }
@author Christoph Strobl @author Peter-Josef Meisch
getType
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/config/ReactiveElasticsearchRepositoriesRegistrarTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/config/ReactiveElasticsearchRepositoriesRegistrarTests.java
Apache-2.0
public void setType(@Nullable String type) { this.type = type; }
@author Christoph Strobl @author Peter-Josef Meisch
setType
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/config/ReactiveElasticsearchRepositoriesRegistrarTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/config/ReactiveElasticsearchRepositoriesRegistrarTests.java
Apache-2.0
@Nullable public String getMessage() { return message; }
@author Christoph Strobl @author Peter-Josef Meisch
getMessage
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/config/ReactiveElasticsearchRepositoriesRegistrarTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/config/ReactiveElasticsearchRepositoriesRegistrarTests.java
Apache-2.0
public void setMessage(@Nullable String message) { this.message = message; }
@author Christoph Strobl @author Peter-Josef Meisch
setMessage
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/config/ReactiveElasticsearchRepositoriesRegistrarTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/config/ReactiveElasticsearchRepositoriesRegistrarTests.java
Apache-2.0
@Test // DATAES-519 public void isStrictMatchIfDomainTypeIsAnnotatedWithDocument() { ReactiveElasticsearchRepositoryConfigurationExtension extension = new ReactiveElasticsearchRepositoryConfigurationExtension(); assertHasRepo(CrudRepositoryForAnnotatedType.class, extension.getRepositoryConfigurations(configur...
@author Christoph Strobl @author Peter-Josef Meisch
isStrictMatchIfDomainTypeIsAnnotatedWithDocument
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/config/ReactiveElasticsearchRepositoryConfigurationExtensionUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/config/ReactiveElasticsearchRepositoryConfigurationExtensionUnitTests.java
Apache-2.0
@Test // DATAES-519 public void isStrictMatchIfRepositoryExtendsStoreSpecificBase() { ReactiveElasticsearchRepositoryConfigurationExtension extension = new ReactiveElasticsearchRepositoryConfigurationExtension(); assertHasRepo(EsRepositoryForUnAnnotatedType.class, extension.getRepositoryConfigurations(configu...
@author Christoph Strobl @author Peter-Josef Meisch
isStrictMatchIfRepositoryExtendsStoreSpecificBase
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/config/ReactiveElasticsearchRepositoryConfigurationExtensionUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/config/ReactiveElasticsearchRepositoryConfigurationExtensionUnitTests.java
Apache-2.0
@Test // DATAES-519 public void isNotStrictMatchIfDomainTypeIsNotAnnotatedWithDocument() { ReactiveElasticsearchRepositoryConfigurationExtension extension = new ReactiveElasticsearchRepositoryConfigurationExtension(); assertDoesNotHaveRepo(CrudRepositoryForUnAnnotatedType.class, extension.getRepositoryConfigu...
@author Christoph Strobl @author Peter-Josef Meisch
isNotStrictMatchIfDomainTypeIsNotAnnotatedWithDocument
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/config/ReactiveElasticsearchRepositoryConfigurationExtensionUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/config/ReactiveElasticsearchRepositoryConfigurationExtensionUnitTests.java
Apache-2.0
private static void assertHasRepo(Class<?> repositoryInterface, Collection<RepositoryConfiguration<RepositoryConfigurationSource>> configs) { for (RepositoryConfiguration<?> config : configs) { if (config.getRepositoryInterface().equals(repositoryInterface.getName())) { return; } } fail("Expected t...
@author Christoph Strobl @author Peter-Josef Meisch
assertHasRepo
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/config/ReactiveElasticsearchRepositoryConfigurationExtensionUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/config/ReactiveElasticsearchRepositoryConfigurationExtensionUnitTests.java
Apache-2.0
private static void assertDoesNotHaveRepo(Class<?> repositoryInterface, Collection<RepositoryConfiguration<RepositoryConfigurationSource>> configs) { for (RepositoryConfiguration<?> config : configs) { if (config.getRepositoryInterface().equals(repositoryInterface.getName())) { fail("Expected not to find c...
@author Christoph Strobl @author Peter-Josef Meisch
assertDoesNotHaveRepo
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/config/ReactiveElasticsearchRepositoryConfigurationExtensionUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/config/ReactiveElasticsearchRepositoryConfigurationExtensionUnitTests.java
Apache-2.0
@Nullable public String getId() { return id; }
@author Rizwan Idrees @author Mohsin Husen @author Artur Konczak
getId
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/ReactiveElasticsearchQueryMethodUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/ReactiveElasticsearchQueryMethodUnitTests.java
Apache-2.0
public void setId(String id) { this.id = id; }
@author Rizwan Idrees @author Mohsin Husen @author Artur Konczak
setId
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/ReactiveElasticsearchQueryMethodUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/ReactiveElasticsearchQueryMethodUnitTests.java
Apache-2.0
@Nullable public String getName() { return name; }
@author Rizwan Idrees @author Mohsin Husen @author Artur Konczak
getName
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/ReactiveElasticsearchQueryMethodUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/ReactiveElasticsearchQueryMethodUnitTests.java
Apache-2.0
public void setName(String name) { this.name = name; }
@author Rizwan Idrees @author Mohsin Husen @author Artur Konczak
setName
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/ReactiveElasticsearchQueryMethodUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/ReactiveElasticsearchQueryMethodUnitTests.java
Apache-2.0
@Nullable public List<Car> getCar() { return car; }
@author Rizwan Idrees @author Mohsin Husen @author Artur Konczak
getCar
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/ReactiveElasticsearchQueryMethodUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/ReactiveElasticsearchQueryMethodUnitTests.java
Apache-2.0
public void setCar(List<Car> car) { this.car = car; }
@author Rizwan Idrees @author Mohsin Husen @author Artur Konczak
setCar
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/ReactiveElasticsearchQueryMethodUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/ReactiveElasticsearchQueryMethodUnitTests.java
Apache-2.0
@Nullable public List<Book> getBooks() { return books; }
@author Rizwan Idrees @author Mohsin Husen @author Artur Konczak
getBooks
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/ReactiveElasticsearchQueryMethodUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/ReactiveElasticsearchQueryMethodUnitTests.java
Apache-2.0
public void setBooks(List<Book> books) { this.books = books; }
@author Rizwan Idrees @author Mohsin Husen @author Artur Konczak
setBooks
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/ReactiveElasticsearchQueryMethodUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/ReactiveElasticsearchQueryMethodUnitTests.java
Apache-2.0
@Nullable public String getId() { return id; }
@author Rizwan Idrees @author Mohsin Husen @author Artur Konczak
getId
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/ReactiveElasticsearchQueryMethodUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/ReactiveElasticsearchQueryMethodUnitTests.java
Apache-2.0
public void setId(@Nullable String id) { this.id = id; }
@author Rizwan Idrees @author Mohsin Husen @author Artur Konczak
setId
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/ReactiveElasticsearchQueryMethodUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/ReactiveElasticsearchQueryMethodUnitTests.java
Apache-2.0
@Nullable public String getName() { return name; }
@author Rizwan Idrees @author Mohsin Husen @author Artur Konczak
getName
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/ReactiveElasticsearchQueryMethodUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/ReactiveElasticsearchQueryMethodUnitTests.java
Apache-2.0
public void setName(@Nullable String name) { this.name = name; }
@author Rizwan Idrees @author Mohsin Husen @author Artur Konczak
setName
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/ReactiveElasticsearchQueryMethodUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/ReactiveElasticsearchQueryMethodUnitTests.java
Apache-2.0
@Nullable public Author getAuthor() { return author; }
@author Rizwan Idrees @author Mohsin Husen @author Artur Konczak
getAuthor
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/ReactiveElasticsearchQueryMethodUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/ReactiveElasticsearchQueryMethodUnitTests.java
Apache-2.0
public void setAuthor(@Nullable Author author) { this.author = author; }
@author Rizwan Idrees @author Mohsin Husen @author Artur Konczak
setAuthor
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/ReactiveElasticsearchQueryMethodUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/ReactiveElasticsearchQueryMethodUnitTests.java
Apache-2.0