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
@Nullable public String getId() { return id; }
@author Artur Konczak @author Peter-Josef Meisch
getId
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/complex/custommethod/manualwiring/ComplexCustomMethodRepositoryManualWiringIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/complex/custommethod/manualwiring/ComplexCustomMethodRepositoryManualWiringIntegrationTests.java
Apache-2.0
public void setId(@Nullable String id) { this.id = id; }
@author Artur Konczak @author Peter-Josef Meisch
setId
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/complex/custommethod/manualwiring/ComplexCustomMethodRepositoryManualWiringIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/complex/custommethod/manualwiring/ComplexCustomMethodRepositoryManualWiringIntegrationTests.java
Apache-2.0
@Nullable public String getType() { return type; }
@author Artur Konczak @author Peter-Josef Meisch
getType
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/complex/custommethod/manualwiring/ComplexCustomMethodRepositoryManualWiringIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/complex/custommethod/manualwiring/ComplexCustomMethodRepositoryManualWiringIntegrationTests.java
Apache-2.0
public void setType(@Nullable String type) { this.type = type; }
@author Artur Konczak @author Peter-Josef Meisch
setType
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/complex/custommethod/manualwiring/ComplexCustomMethodRepositoryManualWiringIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/complex/custommethod/manualwiring/ComplexCustomMethodRepositoryManualWiringIntegrationTests.java
Apache-2.0
@Nullable public String getMessage() { return message; }
@author Artur Konczak @author Peter-Josef Meisch
getMessage
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/complex/custommethod/manualwiring/ComplexCustomMethodRepositoryManualWiringIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/complex/custommethod/manualwiring/ComplexCustomMethodRepositoryManualWiringIntegrationTests.java
Apache-2.0
public void setMessage(@Nullable String message) { this.message = message; }
@author Artur Konczak @author Peter-Josef Meisch
setMessage
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/complex/custommethod/manualwiring/ComplexCustomMethodRepositoryManualWiringIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/complex/custommethod/manualwiring/ComplexCustomMethodRepositoryManualWiringIntegrationTests.java
Apache-2.0
@Override public String doSomethingSpecial() { assertThat(operations.getElasticsearchConverter()).isNotNull(); return "3+3=6"; }
@author Artur Konczak @author Mohsin Husen @author Peter-Josef Meisch
doSomethingSpecial
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/complex/custommethod/manualwiring/ComplexElasticsearchRepositoryManualWiringImpl.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/complex/custommethod/manualwiring/ComplexElasticsearchRepositoryManualWiringImpl.java
Apache-2.0
@Bean IndexNameProvider indexNameProvider() { return new IndexNameProvider("custom-method-repository"); }
@author Peter-Josef Meisch @author Haibo Liu @since 4.4
indexNameProvider
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryELCIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryELCIntegrationTests.java
Apache-2.0
@Bean QueryParameter queryParameter() { return new QueryParameter("abc"); }
a normal bean referenced by SpEL in query
queryParameter
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryELCIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryELCIntegrationTests.java
Apache-2.0
@Bean public ElasticsearchCustomConversions elasticsearchCustomConversions() { return new ElasticsearchCustomConversions(List.of(SamplePropertyToStringConverter.INSTANCE, StringToSamplePropertyConverter.INSTANCE)); }
a normal bean referenced by SpEL in query
elasticsearchCustomConversions
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryELCIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryELCIntegrationTests.java
Apache-2.0
@BeforeEach public void before() { indexNameProvider.increment(); operations.indexOps(SampleEntity.class).createWithMapping(); }
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
before
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test @org.junit.jupiter.api.Order(java.lang.Integer.MAX_VALUE) void cleanup() { operations.indexOps(IndexCoordinates.of(indexNameProvider.getPrefix() + "*")).delete(); }
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
cleanup
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test public void shouldExecuteCustomMethod() { // given String documentId = nextIdAsString(); SampleEntity sampleEntity = new SampleEntity(); sampleEntity.setId(documentId); sampleEntity.setType("test"); sampleEntity.setMessage("some message"); repository.save(sampleEntity); // when Page<SampleEnt...
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
shouldExecuteCustomMethod
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test public void shouldExecuteCustomMethodForNot() { // given String documentId = nextIdAsString(); SampleEntity sampleEntity = new SampleEntity(); sampleEntity.setId(documentId); sampleEntity.setType("some"); sampleEntity.setMessage("some message"); repository.save(sampleEntity); // when Page<Sam...
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
shouldExecuteCustomMethodForNot
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test public void shouldExecuteCustomMethodWithQuery() { // given String documentId = nextIdAsString(); SampleEntity sampleEntity = new SampleEntity(); sampleEntity.setId(documentId); sampleEntity.setType("test"); String searchTerm = "customQuery"; sampleEntity.setMessage(searchTerm); repository.save(...
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
shouldExecuteCustomMethodWithQuery
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test public void shouldExecuteCustomMethodWithLessThan() { // given String documentId = nextIdAsString(); SampleEntity sampleEntity = new SampleEntity(); sampleEntity.setId(documentId); sampleEntity.setType("test"); sampleEntity.setRate(9); sampleEntity.setMessage("some message"); repository.save(sam...
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
shouldExecuteCustomMethodWithLessThan
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test public void shouldExecuteCustomMethodWithBefore() { // given String documentId = nextIdAsString(); SampleEntity sampleEntity = new SampleEntity(); sampleEntity.setId(documentId); sampleEntity.setType("test"); sampleEntity.setRate(10); sampleEntity.setMessage("some message"); repository.save(samp...
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
shouldExecuteCustomMethodWithBefore
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test public void shouldExecuteCustomMethodWithAfter() { // given String documentId = nextIdAsString(); SampleEntity sampleEntity = new SampleEntity(); sampleEntity.setId(documentId); sampleEntity.setType("test"); sampleEntity.setRate(10); sampleEntity.setMessage("some message"); repository.save(sampl...
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
shouldExecuteCustomMethodWithAfter
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test public void shouldExecuteCustomMethodWithLike() { // given String documentId = nextIdAsString(); SampleEntity sampleEntity = new SampleEntity(); sampleEntity.setId(documentId); sampleEntity.setType("test"); sampleEntity.setRate(10); sampleEntity.setMessage("foo"); repository.save(sampleEntity); ...
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
shouldExecuteCustomMethodWithLike
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test public void shouldExecuteCustomMethodForStartingWith() { // given String documentId = nextIdAsString(); SampleEntity sampleEntity = new SampleEntity(); sampleEntity.setId(documentId); sampleEntity.setType("test"); sampleEntity.setRate(10); sampleEntity.setMessage("foo"); repository.save(sampleEn...
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
shouldExecuteCustomMethodForStartingWith
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test public void shouldExecuteCustomMethodForEndingWith() { // given String documentId = nextIdAsString(); SampleEntity sampleEntity = new SampleEntity(); sampleEntity.setId(documentId); sampleEntity.setType("test"); sampleEntity.setRate(10); sampleEntity.setMessage("foo"); repository.save(sampleEnti...
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
shouldExecuteCustomMethodForEndingWith
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test public void shouldExecuteCustomMethodForContains() { // given String documentId = nextIdAsString(); SampleEntity sampleEntity = new SampleEntity(); sampleEntity.setId(documentId); sampleEntity.setType("test"); sampleEntity.setRate(10); sampleEntity.setMessage("foo"); repository.save(sampleEntity...
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
shouldExecuteCustomMethodForContains
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test public void shouldExecuteCustomMethodForIn() { // given String documentId = nextIdAsString(); SampleEntity sampleEntity = new SampleEntity(); sampleEntity.setId(documentId); sampleEntity.setType("test"); sampleEntity.setMessage("foo"); repository.save(sampleEntity); // given String documentId...
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
shouldExecuteCustomMethodForIn
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test public void shouldExecuteCustomMethodForNotIn() { // given String documentId = nextIdAsString(); SampleEntity sampleEntity = new SampleEntity(); sampleEntity.setId(documentId); sampleEntity.setType("test"); sampleEntity.setMessage("foo"); repository.save(sampleEntity); // given String documen...
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
shouldExecuteCustomMethodForNotIn
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test // DATAES-647 public void shouldHandleManyKeywordValuesQueryingIn() { // given String documentId1 = nextIdAsString(); SampleEntity sampleEntity1 = new SampleEntity(); sampleEntity1.setId(documentId1); sampleEntity1.setKeyword("foo"); repository.save(sampleEntity1); String documentId2 = nextIdAsSt...
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
shouldHandleManyKeywordValuesQueryingIn
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test // DATAES-647 public void shouldHandleManyKeywordValuesQueryingNotIn() { // given String documentId1 = nextIdAsString(); SampleEntity sampleEntity1 = new SampleEntity(); sampleEntity1.setId(documentId1); sampleEntity1.setKeyword("foo"); repository.save(sampleEntity1); String documentId2 = nextIdA...
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
shouldHandleManyKeywordValuesQueryingNotIn
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test // DATAES-912 void shouldHandleTextFieldQueryingIn() { String documentId1 = nextIdAsString(); SampleEntity sampleEntity1 = new SampleEntity(); sampleEntity1.setId(documentId1); sampleEntity1.setMessage("foo"); repository.save(sampleEntity1); String documentId2 = nextIdAsString(); SampleEntity samp...
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
shouldHandleTextFieldQueryingIn
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test // DATAES-912 void shouldHandleTextFieldQueryingNotIn() { String documentId1 = nextIdAsString(); SampleEntity sampleEntity1 = new SampleEntity(); sampleEntity1.setId(documentId1); sampleEntity1.setMessage("foo"); repository.save(sampleEntity1); String documentId2 = nextIdAsString(); SampleEntity s...
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
shouldHandleTextFieldQueryingNotIn
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test public void shouldExecuteCustomMethodForTrue() { // given String documentId = nextIdAsString(); SampleEntity sampleEntity = new SampleEntity(); sampleEntity.setId(documentId); sampleEntity.setType("test"); sampleEntity.setMessage("foo"); sampleEntity.setAvailable(true); repository.save(sampleEnt...
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
shouldExecuteCustomMethodForTrue
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test public void shouldExecuteCustomMethodForFalse() { // given String documentId = nextIdAsString(); SampleEntity sampleEntity = new SampleEntity(); sampleEntity.setId(documentId); sampleEntity.setType("test"); sampleEntity.setMessage("foo"); sampleEntity.setAvailable(true); repository.save(sampleEn...
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
shouldExecuteCustomMethodForFalse
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test public void shouldExecuteCustomMethodForOrderBy() { // given String documentId = nextIdAsString(); SampleEntity sampleEntity = new SampleEntity(); sampleEntity.setId(documentId); sampleEntity.setType("abc"); sampleEntity.setMessage("test"); sampleEntity.setAvailable(true); repository.save(sample...
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
shouldExecuteCustomMethodForOrderBy
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test public void shouldExecuteCustomMethodWithBooleanParameter() { // given String documentId = nextIdAsString(); SampleEntity sampleEntity = new SampleEntity(); sampleEntity.setId(documentId); sampleEntity.setType("test"); sampleEntity.setMessage("foo"); sampleEntity.setAvailable(true); repository.s...
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
shouldExecuteCustomMethodWithBooleanParameter
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test // DATAES-777 public void shouldReturnPageableInUnwrappedPageResult() { // given String documentId = nextIdAsString(); SampleEntity sampleEntity = new SampleEntity(); sampleEntity.setId(documentId); sampleEntity.setType("test"); sampleEntity.setMessage("foo"); sampleEntity.setAvailable(true); re...
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
shouldReturnPageableInUnwrappedPageResult
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test public void shouldReturnPageableResultsWithQueryAnnotationExpectedPageSize() { // given for (int i = 0; i < 30; i++) { String documentId = String.valueOf(i); SampleEntity sampleEntity = new SampleEntity(); sampleEntity.setId(documentId); sampleEntity.setMessage("message"); sampleEntity.setVer...
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
shouldReturnPageableResultsWithQueryAnnotationExpectedPageSize
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test public void shouldReturnPageableResultsWithGivenSortingOrder() { // given String documentId = nextIdAsString(); SampleEntity sampleEntity = new SampleEntity(); sampleEntity.setId(documentId); sampleEntity.setMessage("abc"); sampleEntity.setVersion(System.currentTimeMillis()); repository.save(sampl...
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
shouldReturnPageableResultsWithGivenSortingOrder
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test public void shouldReturnListForMessage() { // given String documentId = nextIdAsString(); SampleEntity sampleEntity = new SampleEntity(); sampleEntity.setId(documentId); sampleEntity.setMessage("abc"); sampleEntity.setVersion(System.currentTimeMillis()); repository.save(sampleEntity); String do...
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
shouldReturnListForMessage
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test public void shouldExecuteCustomMethodWithGeoPoint() { // given String documentId = nextIdAsString(); SampleEntity sampleEntity = new SampleEntity(); sampleEntity.setId(documentId); sampleEntity.setType("test"); sampleEntity.setRate(10); sampleEntity.setMessage("foo"); sampleEntity.setLocation(ne...
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
shouldExecuteCustomMethodWithGeoPoint
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test public void shouldExecuteCustomMethodWithGeoPointAndString() { // given String documentId = nextIdAsString(); SampleEntity sampleEntity = new SampleEntity(); sampleEntity.setId(documentId); sampleEntity.setType("test"); sampleEntity.setRate(10); sampleEntity.setMessage("foo"); sampleEntity.setLo...
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
shouldExecuteCustomMethodWithGeoPointAndString
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test public void shouldExecuteCustomMethodWithWithinGeoPoint() { // given String documentId = nextIdAsString(); SampleEntity sampleEntity = new SampleEntity(); sampleEntity.setId(documentId); sampleEntity.setType("test"); sampleEntity.setRate(10); sampleEntity.setMessage("foo"); sampleEntity.setLocat...
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
shouldExecuteCustomMethodWithWithinGeoPoint
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test public void shouldExecuteCustomMethodWithWithinPoint() { // given String documentId = nextIdAsString(); SampleEntity sampleEntity = new SampleEntity(); sampleEntity.setId(documentId); sampleEntity.setType("test"); sampleEntity.setRate(10); sampleEntity.setMessage("foo"); sampleEntity.setLocation...
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
shouldExecuteCustomMethodWithWithinPoint
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test public void shouldExecuteCustomMethodWithNearBox() { // given String documentId = nextIdAsString(); SampleEntity sampleEntity = new SampleEntity(); sampleEntity.setId(documentId); sampleEntity.setType("test"); sampleEntity.setRate(10); sampleEntity.setMessage("foo"); sampleEntity.setLocation(new...
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
shouldExecuteCustomMethodWithNearBox
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test public void shouldExecuteCustomMethodWithNearPointAndDistance() { // given String documentId = nextIdAsString(); SampleEntity sampleEntity = new SampleEntity(); sampleEntity.setId(documentId); sampleEntity.setType("test"); sampleEntity.setRate(10); sampleEntity.setMessage("foo"); sampleEntity.se...
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
shouldExecuteCustomMethodWithNearPointAndDistance
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test // DATAES-165 public void shouldAllowReturningJava8StreamInCustomQuery() { // given List<SampleEntity> entities = createSampleEntities("abc", 30); repository.saveAll(entities); // when Stream<SampleEntity> stream = streamingRepository.findByType("abc"); // then assertThat(stream).isNotNull(); ...
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
shouldAllowReturningJava8StreamInCustomQuery
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test // DATAES-106 public void shouldCountCustomMethod() { // given String documentId = nextIdAsString(); SampleEntity sampleEntity = new SampleEntity(); sampleEntity.setId(documentId); sampleEntity.setType("test"); sampleEntity.setMessage("some message"); repository.save(sampleEntity); documentId ...
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
shouldCountCustomMethod
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test // #1156 @DisplayName("should count with query by type") void shouldCountWithQueryByType() { String documentId = nextIdAsString(); SampleEntity sampleEntity = new SampleEntity(); sampleEntity.setId(documentId); sampleEntity.setType("test"); sampleEntity.setMessage("some message"); repository.save(...
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
shouldCountWithQueryByType
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test // DATAES-106 public void shouldCountCustomMethodForNot() { // given String documentId = nextIdAsString(); SampleEntity sampleEntity = new SampleEntity(); sampleEntity.setId(documentId); sampleEntity.setType("some"); sampleEntity.setMessage("some message"); repository.save(sampleEntity); docum...
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
shouldCountCustomMethodForNot
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test // DATAES-106 public void shouldCountCustomMethodWithBooleanParameter() { // given String documentId = nextIdAsString(); SampleEntity sampleEntity = new SampleEntity(); sampleEntity.setId(documentId); sampleEntity.setType("test"); sampleEntity.setMessage("foo"); sampleEntity.setAvailable(true); ...
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
shouldCountCustomMethodWithBooleanParameter
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test // DATAES-106 public void shouldCountCustomMethodWithLessThan() { // given String documentId = nextIdAsString(); SampleEntity sampleEntity = new SampleEntity(); sampleEntity.setId(documentId); sampleEntity.setType("test"); sampleEntity.setRate(9); sampleEntity.setMessage("some message"); reposit...
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
shouldCountCustomMethodWithLessThan
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test // DATAES-106 public void shouldCountCustomMethodWithBefore() { // given String documentId = nextIdAsString(); SampleEntity sampleEntity = new SampleEntity(); sampleEntity.setId(documentId); sampleEntity.setType("test"); sampleEntity.setRate(10); sampleEntity.setMessage("some message"); reposit...
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
shouldCountCustomMethodWithBefore
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test // DATAES-106 public void shouldCountCustomMethodWithAfter() { // given String documentId = nextIdAsString(); SampleEntity sampleEntity = new SampleEntity(); sampleEntity.setId(documentId); sampleEntity.setType("test"); sampleEntity.setRate(10); sampleEntity.setMessage("some message"); reposito...
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
shouldCountCustomMethodWithAfter
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test // DATAES-106 public void shouldCountCustomMethodWithLike() { // given String documentId = nextIdAsString(); SampleEntity sampleEntity = new SampleEntity(); sampleEntity.setId(documentId); sampleEntity.setType("test"); sampleEntity.setRate(10); sampleEntity.setMessage("foo"); repository.save(sa...
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
shouldCountCustomMethodWithLike
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test // DATAES-106 public void shouldCountCustomMethodForStartingWith() { // given String documentId = nextIdAsString(); SampleEntity sampleEntity = new SampleEntity(); sampleEntity.setId(documentId); sampleEntity.setType("test"); sampleEntity.setRate(10); sampleEntity.setMessage("foo"); repository....
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
shouldCountCustomMethodForStartingWith
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test // DATAES-106 public void shouldCountCustomMethodForEndingWith() { // given String documentId = nextIdAsString(); SampleEntity sampleEntity = new SampleEntity(); sampleEntity.setId(documentId); sampleEntity.setType("test"); sampleEntity.setRate(10); sampleEntity.setMessage("foo"); repository.sa...
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
shouldCountCustomMethodForEndingWith
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test // DATAES-106 public void shouldCountCustomMethodForContains() { // given String documentId = nextIdAsString(); SampleEntity sampleEntity = new SampleEntity(); sampleEntity.setId(documentId); sampleEntity.setType("test"); sampleEntity.setRate(10); sampleEntity.setMessage("foo"); repository.save...
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
shouldCountCustomMethodForContains
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test // DATAES-106 public void shouldCountCustomMethodForIn() { // given String documentId = nextIdAsString(); SampleEntity sampleEntity = new SampleEntity(); sampleEntity.setId(documentId); sampleEntity.setType("test"); sampleEntity.setMessage("foo"); repository.save(sampleEntity); // given Strin...
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
shouldCountCustomMethodForIn
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test // DATAES-106 public void shouldCountCustomMethodForNotIn() { // given String documentId = nextIdAsString(); SampleEntity sampleEntity = new SampleEntity(); sampleEntity.setId(documentId); sampleEntity.setType("test"); sampleEntity.setMessage("foo"); repository.save(sampleEntity); // given St...
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
shouldCountCustomMethodForNotIn
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test // DATAES-106 public void shouldCountCustomMethodForTrue() { // given String documentId = nextIdAsString(); SampleEntity sampleEntity = new SampleEntity(); sampleEntity.setId(documentId); sampleEntity.setType("test"); sampleEntity.setMessage("foo"); sampleEntity.setAvailable(true); repository.sa...
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
shouldCountCustomMethodForTrue
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test // DATAES-106 public void shouldCountCustomMethodForFalse() { // given String documentId = nextIdAsString(); SampleEntity sampleEntity = new SampleEntity(); sampleEntity.setId(documentId); sampleEntity.setType("test"); sampleEntity.setMessage("foo"); sampleEntity.setAvailable(true); repository.s...
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
shouldCountCustomMethodForFalse
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test // DATAES-106 public void shouldCountCustomMethodWithWithinGeoPoint() { // given String documentId = nextIdAsString(); SampleEntity sampleEntity = new SampleEntity(); sampleEntity.setId(documentId); sampleEntity.setType("test"); sampleEntity.setRate(10); sampleEntity.setMessage("foo"); sampleEnt...
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
shouldCountCustomMethodWithWithinGeoPoint
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test // DATAES-106 public void shouldCountCustomMethodWithWithinPoint() { // given String documentId = nextIdAsString(); SampleEntity sampleEntity = new SampleEntity(); sampleEntity.setId(documentId); sampleEntity.setType("test"); sampleEntity.setRate(10); sampleEntity.setMessage("foo"); sampleEntity...
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
shouldCountCustomMethodWithWithinPoint
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test // DATAES-106 public void shouldCountCustomMethodWithNearBox() { // given String documentId = nextIdAsString(); SampleEntity sampleEntity = new SampleEntity(); sampleEntity.setId(documentId); sampleEntity.setType("test"); sampleEntity.setRate(10); sampleEntity.setMessage("foo"); sampleEntity.set...
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
shouldCountCustomMethodWithNearBox
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test // DATAES-106 public void shouldCountCustomMethodWithNearPointAndDistance() { // given String documentId = nextIdAsString(); SampleEntity sampleEntity = new SampleEntity(); sampleEntity.setId(documentId); sampleEntity.setType("test"); sampleEntity.setRate(10); sampleEntity.setMessage("foo"); sam...
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
shouldCountCustomMethodWithNearPointAndDistance
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test // DATAES-605 public void streamMethodsShouldWorkWithLargeResultSets() { // given List<SampleEntity> entities = createSampleEntities("abc", 10001); repository.saveAll(entities); operations.indexOps(SampleEntity.class).refresh(); // when Stream<SampleEntity> stream = streamingRepository.findByType("...
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
streamMethodsShouldWorkWithLargeResultSets
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test // DATAES-605 public void streamMethodsCanHandlePageable() { // given List<SampleEntity> entities = createSampleEntities("abc", 10); repository.saveAll(entities); // when Stream<SampleEntity> stream = streamingRepository.findByType("abc", PageRequest.of(0, 2)); // then assertThat(stream).isNotNu...
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
streamMethodsCanHandlePageable
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test // DATAES-672 void streamMethodShouldNotReturnSearchHits() { // given List<SampleEntity> entities = createSampleEntities("abc", 2); repository.saveAll(entities); // when Stream<SampleEntity> stream = streamingRepository.findByType("abc"); // then assertThat(stream).isNotNull(); stream.forEach(o...
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
streamMethodShouldNotReturnSearchHits
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test // DATAES-717 void shouldReturnSearchHits() { List<SampleEntity> entities = createSampleEntities("abc", 20); repository.saveAll(entities); // when SearchHits<SampleEntity> searchHits = repository.queryByType("abc"); assertThat(searchHits.getTotalHits()).isEqualTo(20); }
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
shouldReturnSearchHits
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test // DATAES-717 void shouldReturnSearchHitList() { List<SampleEntity> entities = createSampleEntities("abc", 20); repository.saveAll(entities); // when List<SearchHit<SampleEntity>> searchHitList = repository.queryByMessage("Message"); assertThat(searchHitList).hasSize(20); }
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
shouldReturnSearchHitList
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test // DATAES-717 void shouldReturnSearchHitStream() { List<SampleEntity> entities = createSampleEntities("abc", 20); repository.saveAll(entities); // when Stream<SearchHit<SampleEntity>> searchHitStream = repository.readByMessage("Message"); List<SearchHit<SampleEntity>> searchHitList = searchHitStream ...
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
shouldReturnSearchHitStream
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test // DATAES-717 void shouldReturnSearchHitsForStringQuery() { List<SampleEntity> entities = createSampleEntities("abc", 20); repository.saveAll(entities); // when SearchHits<SampleEntity> searchHits = repository.queryByString("abc"); assertThat(searchHits.getTotalHits()).isEqualTo(20); }
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
shouldReturnSearchHitsForStringQuery
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test void shouldRaiseExceptionForNullStringQuery() { List<SampleEntity> entities = createSampleEntities("abc", 20); repository.saveAll(entities); // when ConversionException thrown = assertThrows(ConversionException.class, () -> repository.queryByString(null)); assertThat(thrown.getMessage()) .contain...
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
shouldRaiseExceptionForNullStringQuery
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test void shouldReturnSearchHitsForStringQuerySpEL() { List<SampleEntity> entities = createSampleEntities("abc", 20); repository.saveAll(entities); // when SearchHits<SampleEntity> searchHits = repository.queryByStringSpEL("abc"); assertThat(searchHits.getTotalHits()).isEqualTo(20); }
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
shouldReturnSearchHitsForStringQuerySpEL
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test void shouldRaiseExceptionForNullStringQuerySpEL() { List<SampleEntity> entities = createSampleEntities("abc", 20); repository.saveAll(entities); ConversionException thrown = assertThrows(ConversionException.class, () -> repository.queryByStringSpEL(null)); assertThat(thrown.getMessage()) .isEqualTo...
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
shouldRaiseExceptionForNullStringQuerySpEL
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test void shouldReturnSearchHitsForParameterPropertyQuerySpEL() { List<SampleEntity> entities = createSampleEntities("abc", 20); repository.saveAll(entities); QueryParameter param = new QueryParameter("abc"); // when SearchHits<SampleEntity> searchHits = repository.queryByParameterPropertySpEL(param); a...
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
shouldReturnSearchHitsForParameterPropertyQuerySpEL
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test void shouldReturnSearchHitsForBeanQuerySpEL() { List<SampleEntity> entities = createSampleEntities("abc", 20); repository.saveAll(entities); // when SearchHits<SampleEntity> searchHits = repository.queryByBeanPropertySpEL(); assertThat(searchHits.getTotalHits()).isEqualTo(20); }
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
shouldReturnSearchHitsForBeanQuerySpEL
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test void shouldReturnSearchHitsForCollectionQuerySpEL() { List<SampleEntity> entities = createSampleEntities("abc", 20); repository.saveAll(entities); // when SearchHits<SampleEntity> searchHits = repository.queryByCollectionSpEL(List.of("abc")); assertThat(searchHits.getTotalHits()).isEqualTo(20); }
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
shouldReturnSearchHitsForCollectionQuerySpEL
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test void shouldRaiseExceptionForNullCollectionQuerySpEL() { List<SampleEntity> entities = createSampleEntities("abc", 20); repository.saveAll(entities); ConversionException thrown = assertThrows(ConversionException.class, () -> repository.queryByCollectionSpEL(null)); assertThat(thrown.getMessage()) .i...
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
shouldRaiseExceptionForNullCollectionQuerySpEL
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test void shouldNotReturnSearchHitsForEmptyCollectionQuerySpEL() { List<SampleEntity> entities = createSampleEntities("abc", 20); repository.saveAll(entities); // when SearchHits<SampleEntity> searchHits = repository.queryByCollectionSpEL(List.of()); assertThat(searchHits.getTotalHits()).isEqualTo(0); }
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
shouldNotReturnSearchHitsForEmptyCollectionQuerySpEL
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test void shouldNotReturnSearchHitsForCollectionQueryWithOnlyNullValuesSpEL() { List<SampleEntity> entities = createSampleEntities("abc", 20); repository.saveAll(entities); List<String> params = new ArrayList<>(); params.add(null); // when SearchHits<SampleEntity> searchHits = repository.queryByCollectio...
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
shouldNotReturnSearchHitsForCollectionQueryWithOnlyNullValuesSpEL
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test void shouldIgnoreNullValuesInCollectionQuerySpEL() { List<SampleEntity> entities = createSampleEntities("abc", 20); repository.saveAll(entities); // when SearchHits<SampleEntity> searchHits = repository.queryByCollectionSpEL(Arrays.asList("abc", null)); assertThat(searchHits.getTotalHits()).isEqualTo...
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
shouldIgnoreNullValuesInCollectionQuerySpEL
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test void shouldReturnSearchHitsForParameterPropertyCollectionQuerySpEL() { List<SampleEntity> entities = createSampleEntities("abc", 20); repository.saveAll(entities); QueryParameter param = new QueryParameter("abc"); // when SearchHits<SampleEntity> searchHits = repository.queryByParameterPropertyCollect...
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
shouldReturnSearchHitsForParameterPropertyCollectionQuerySpEL
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test void shouldReturnSearchHitsForParameterPropertyCollectionQuerySpELWithParamAnnotation() { List<SampleEntity> entities = createSampleEntities("abc", 20); repository.saveAll(entities); QueryParameter param = new QueryParameter("abc"); // when SearchHits<SampleEntity> searchHits = repository.queryByParam...
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
shouldReturnSearchHitsForParameterPropertyCollectionQuerySpELWithParamAnnotation
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test void shouldReturnSearchHitsBySampleProperty() { List<SampleEntity> entities = createSampleEntities("abc", 20); entities.forEach(e -> e.setSampleProperty(new SampleProperty("hello", "world"))); repository.saveAll(entities); SampleProperty sampleProperty = new SampleProperty("hello", "world"); // when ...
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
shouldReturnSearchHitsBySampleProperty
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test void shouldReturnSearchHitsWithCustomConversionSpEL() { List<SampleEntity> entities = createSampleEntities("abc", 20); entities.forEach(e -> e.setSampleProperty(new SampleProperty("hello", "world"))); repository.saveAll(entities); SampleProperty sampleProperty = new SampleProperty("hello", "world"); /...
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
shouldReturnSearchHitsWithCustomConversionSpEL
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test // DATAES-372 void shouldReturnHighlightsOnAnnotatedMethod() { List<SampleEntity> entities = createSampleEntities("abc", 2); repository.saveAll(entities); // when SearchHits<SampleEntity> searchHits = repository.queryByType("abc"); assertThat(searchHits.getTotalHits()).isEqualTo(2); SearchHit<Sampl...
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
shouldReturnHighlightsOnAnnotatedMethod
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test // DATAES-372 void shouldReturnHighlightsOnAnnotatedStringQueryMethod() { List<SampleEntity> entities = createSampleEntities("abc", 2); repository.saveAll(entities); // when SearchHits<SampleEntity> searchHits = repository.queryByString("abc"); assertThat(searchHits.getTotalHits()).isEqualTo(2); Se...
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
shouldReturnHighlightsOnAnnotatedStringQueryMethod
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test void shouldReturnDifferentHighlightsOnAnnotatedStringQueryMethod() { List<SampleEntity> entities = createSampleEntities("abc xyz", 2); repository.saveAll(entities); // when SearchHits<SampleEntity> highlightAbcHits = repository.queryByStringWithSeparateHighlight("abc", "abc"); assertThat(highlightAbc...
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
shouldReturnDifferentHighlightsOnAnnotatedStringQueryMethod
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test void shouldReturnDifferentHighlightsOnAnnotatedStringQueryMethodSpEL() { List<SampleEntity> entities = createSampleEntities("abc xyz", 2); repository.saveAll(entities); // when SearchHits<SampleEntity> highlightAbcHits = repository.queryByStringWithSeparateHighlightSpEL("abc", "abc"); assertThat(high...
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
shouldReturnDifferentHighlightsOnAnnotatedStringQueryMethodSpEL
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test // DATAES-734 void shouldUseGeoSortParameter() { GeoPoint munich = new GeoPoint(48.137154, 11.5761247); GeoPoint berlin = new GeoPoint(52.520008, 13.404954); GeoPoint vienna = new GeoPoint(48.20849, 16.37208); GeoPoint oslo = new GeoPoint(59.9127, 10.7461); List<SampleEntity> entities = new ArrayList<...
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
shouldUseGeoSortParameter
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test // #2601 void shouldUseGeoSortReverseParameter() { GeoPoint munich = new GeoPoint(48.137154, 11.5761247); GeoPoint berlin = new GeoPoint(52.520008, 13.404954); GeoPoint vienna = new GeoPoint(48.20849, 16.37208); GeoPoint oslo = new GeoPoint(59.9127, 10.7461); List<SampleEntity> entities = new ArrayLis...
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
shouldUseGeoSortReverseParameter
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test // DATAES-749 void shouldReturnSearchPage() { List<SampleEntity> entities = createSampleEntities("abc", 20); repository.saveAll(entities); // when SearchPage<SampleEntity> searchPage = repository.searchByMessage("Message", PageRequest.of(0, 10)); assertThat(searchPage).isNotNull(); SearchHits<Sampl...
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
shouldReturnSearchPage
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test // #1811 @DisplayName("should return SearchPage with query") void shouldReturnSearchPageWithQuery() { List<SampleEntity> entities = createSampleEntities("abc", 20); repository.saveAll(entities); SearchPage<SampleEntity> searchPage = repository.searchWithQueryByMessage("Message", PageRequest.of(0, 10)); ...
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
shouldReturnSearchPageWithQuery
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test // #1917 @DisplayName("shouldReturnAllDocumentsWithUnpagedQuery") void shouldReturnAllDocumentsWithUnpagedQuery() { List<SampleEntity> entities = createSampleEntities("abc", 20); repository.saveAll(entities); SearchHits<SampleEntity> searchHits = repository.searchWithQueryByMessageUnpaged("Message"); ...
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
shouldReturnAllDocumentsWithUnpagedQuery
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test // DATAES-891 void shouldStreamEntitiesWithQueryAnnotatedMethod() { List<SampleEntity> entities = createSampleEntities("abc", 20); repository.saveAll(entities); Stream<SampleEntity> stream = streamingRepository.streamEntitiesByType("abc"); long count = stream.peek(sampleEntity -> assertThat(sampleEntit...
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
shouldStreamEntitiesWithQueryAnnotatedMethod
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test // DATAES-891 void shouldStreamSearchHitsWithQueryAnnotatedMethod() { List<SampleEntity> entities = createSampleEntities("abc", 20); repository.saveAll(entities); Stream<SearchHit<SampleEntity>> stream = streamingRepository.streamSearchHitsByType("abc"); long count = stream.peek(sampleEntity -> assertT...
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
shouldStreamSearchHitsWithQueryAnnotatedMethod
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test void shouldBeAbleToUseCollectionInQueryAnnotatedMethod() { List<SampleEntity> entities = createSampleEntities("abc", 20); repository.saveAll(entities); List<String> ids = entities.stream().map(SampleEntity::getId).limit(7) // Just get subset .collect(Collectors.toList()); List<SampleEntity> sampleEn...
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
shouldBeAbleToUseCollectionInQueryAnnotatedMethod
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test // #2146 @DisplayName("should use sourceIncludes from annotation") void shouldUseSourceIncludesFromAnnotation() { SampleEntity entity = new SampleEntity(); entity.setId("42"); entity.setMessage("message"); entity.setCustomFieldNameMessage("customFieldNameMessage"); entity.setType("type"); entity.se...
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
shouldUseSourceIncludesFromAnnotation
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test // #2146 @DisplayName("should use sourceIncludes from parameter") void shouldUseSourceIncludesFromParameter() { SampleEntity entity = new SampleEntity(); entity.setId("42"); entity.setMessage("message"); entity.setCustomFieldNameMessage("customFieldNameMessage"); entity.setType("type"); entity.setK...
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
shouldUseSourceIncludesFromParameter
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test @DisplayName("should use sourceIncludes from parameter SpEL") void shouldUseSourceIncludesFromParameterSpEL() { SampleEntity entity = new SampleEntity(); entity.setId("42"); entity.setMessage("message"); entity.setCustomFieldNameMessage("customFieldNameMessage"); entity.setType("type"); entity.setK...
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
shouldUseSourceIncludesFromParameterSpEL
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test // #2146 @DisplayName("should use sourceExcludes from annotation") void shouldUseSourceExcludesFromAnnotation() { SampleEntity entity = new SampleEntity(); entity.setId("42"); entity.setMessage("message"); entity.setCustomFieldNameMessage("customFieldNameMessage"); entity.setType("type"); entity.se...
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
shouldUseSourceExcludesFromAnnotation
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0
@Test // #2146 @DisplayName("should use source excludes from parameter") void shouldUseSourceExcludesFromParameter() { SampleEntity entity = new SampleEntity(); entity.setId("42"); entity.setMessage("message"); entity.setCustomFieldNameMessage("customFieldNameMessage"); entity.setType("type"); entity.set...
@author Rizwan Idrees @author Mohsin Husen @author Franck Marchand @author Kevin Leturc @author Christoph Strobl @author Don Wellington @author Peter-Josef Meisch @author Rasmus Faber-Espensen @author James Mudd @author Haibo Liu
shouldUseSourceExcludesFromParameter
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java
Apache-2.0