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
public void setCar(List<Car> car) { this.car = car; }
@author Rizwan Idrees @author Mohsin Husen @author Artur Konczak @author Niklas Herder
setCar
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/RepositoryStringQueryUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/RepositoryStringQueryUnitTests.java
Apache-2.0
@Nullable public List<Book> getBooks() { return books; }
@author Rizwan Idrees @author Mohsin Husen @author Artur Konczak @author Niklas Herder
getBooks
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/RepositoryStringQueryUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/RepositoryStringQueryUnitTests.java
Apache-2.0
public void setBooks(List<Book> books) { this.books = books; }
@author Rizwan Idrees @author Mohsin Husen @author Artur Konczak @author Niklas Herder
setBooks
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/RepositoryStringQueryUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/RepositoryStringQueryUnitTests.java
Apache-2.0
@Nullable public String getId() { return id; }
@author Rizwan Idrees @author Mohsin Husen @author Artur Konczak @author Niklas Herder
getId
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/RepositoryStringQueryUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/RepositoryStringQueryUnitTests.java
Apache-2.0
public void setId(@Nullable String id) { this.id = id; }
@author Rizwan Idrees @author Mohsin Husen @author Artur Konczak @author Niklas Herder
setId
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/RepositoryStringQueryUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/RepositoryStringQueryUnitTests.java
Apache-2.0
@Nullable public String getName() { return name; }
@author Rizwan Idrees @author Mohsin Husen @author Artur Konczak @author Niklas Herder
getName
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/RepositoryStringQueryUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/RepositoryStringQueryUnitTests.java
Apache-2.0
public void setName(@Nullable String name) { this.name = name; }
@author Rizwan Idrees @author Mohsin Husen @author Artur Konczak @author Niklas Herder
setName
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/RepositoryStringQueryUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/RepositoryStringQueryUnitTests.java
Apache-2.0
@Nullable public Author getAuthor() { return author; }
@author Rizwan Idrees @author Mohsin Husen @author Artur Konczak @author Niklas Herder
getAuthor
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/RepositoryStringQueryUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/RepositoryStringQueryUnitTests.java
Apache-2.0
public void setAuthor(@Nullable Author author) { this.author = author; }
@author Rizwan Idrees @author Mohsin Husen @author Artur Konczak @author Niklas Herder
setAuthor
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/RepositoryStringQueryUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/RepositoryStringQueryUnitTests.java
Apache-2.0
@Nullable public Map<Integer, Collection<String>> getBuckets() { return buckets; }
@author Rizwan Idrees @author Mohsin Husen @author Artur Konczak @author Niklas Herder
getBuckets
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/RepositoryStringQueryUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/RepositoryStringQueryUnitTests.java
Apache-2.0
public void setBuckets(@Nullable Map<Integer, Collection<String>> buckets) { this.buckets = buckets; }
@author Rizwan Idrees @author Mohsin Husen @author Artur Konczak @author Niklas Herder
setBuckets
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/RepositoryStringQueryUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/RepositoryStringQueryUnitTests.java
Apache-2.0
@Nullable public String getDescription() { return description; }
@author Rizwan Idrees @author Mohsin Husen @author Artur Konczak @author Niklas Herder
getDescription
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/RepositoryStringQueryUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/RepositoryStringQueryUnitTests.java
Apache-2.0
public void setDescription(@Nullable String description) { this.description = description; }
@author Rizwan Idrees @author Mohsin Husen @author Artur Konczak @author Niklas Herder
setDescription
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/RepositoryStringQueryUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/RepositoryStringQueryUnitTests.java
Apache-2.0
@Nullable public String getId() { return id; }
@author Rizwan Idrees @author Mohsin Husen @author Artur Konczak @author Niklas Herder
getId
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/RepositoryStringQueryUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/RepositoryStringQueryUnitTests.java
Apache-2.0
public void setId(String id) { this.id = id; }
@author Rizwan Idrees @author Mohsin Husen @author Artur Konczak @author Niklas Herder
setId
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/RepositoryStringQueryUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/RepositoryStringQueryUnitTests.java
Apache-2.0
@Nullable public String getName() { return name; }
@author Rizwan Idrees @author Mohsin Husen @author Artur Konczak @author Niklas Herder
getName
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/RepositoryStringQueryUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/RepositoryStringQueryUnitTests.java
Apache-2.0
public void setName(String name) { this.name = name; }
@author Rizwan Idrees @author Mohsin Husen @author Artur Konczak @author Niklas Herder
setName
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/RepositoryStringQueryUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/RepositoryStringQueryUnitTests.java
Apache-2.0
@Bean IndexNameProvider indexNameProvider() { return new IndexNameProvider("query-keywords"); }
{@link QueryKeywordsIntegrationTests} using a Repository backed by an ElasticsearchTemplate. @author Peter-Josef Meisch @since 4.4
indexNameProvider
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/keywords/QueryKeywordsELCIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/keywords/QueryKeywordsELCIntegrationTests.java
Apache-2.0
@BeforeEach public void before() { indexNameProvider.increment(); operations.indexOps(Product.class).createWithMapping(); Product product1 = new Product("1", "Sugar", "Cane sugar", 1.0f, false, "sort5"); Product product2 = new Product("2", "Sugar", "Cane sugar", 1.2f, true, "sort4"); Product product3 = new ...
base class for query keyword tests. Implemented by subclasses using ElasticsearchClient and ElasticsearchRestClient based repositories. @author Artur Konczak @author Christoph Strobl @author Peter-Josef Meisch
before
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/keywords/QueryKeywordsIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/keywords/QueryKeywordsIntegrationTests.java
Apache-2.0
@Test @Order(Integer.MAX_VALUE) void cleanup() { operations.indexOps(IndexCoordinates.of(indexNameProvider.getPrefix() + "*")).delete(); }
base class for query keyword tests. Implemented by subclasses using ElasticsearchClient and ElasticsearchRestClient based repositories. @author Artur Konczak @author Christoph Strobl @author Peter-Josef Meisch
cleanup
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/keywords/QueryKeywordsIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/keywords/QueryKeywordsIntegrationTests.java
Apache-2.0
@Test public void shouldSupportAND() { assertThat(repository.findByNameAndText("Sugar", "Cane sugar")).hasSize(2); assertThat(repository.findByNameAndPrice("Sugar", 1.1f)).hasSize(1); }
base class for query keyword tests. Implemented by subclasses using ElasticsearchClient and ElasticsearchRestClient based repositories. @author Artur Konczak @author Christoph Strobl @author Peter-Josef Meisch
shouldSupportAND
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/keywords/QueryKeywordsIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/keywords/QueryKeywordsIntegrationTests.java
Apache-2.0
@Test public void shouldSupportOR() { assertThat(repository.findByNameOrPrice("Sugar", 1.9f)).hasSize(4); assertThat(repository.findByNameOrText("Salt", "Beet sugar")).hasSize(3); }
base class for query keyword tests. Implemented by subclasses using ElasticsearchClient and ElasticsearchRestClient based repositories. @author Artur Konczak @author Christoph Strobl @author Peter-Josef Meisch
shouldSupportOR
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/keywords/QueryKeywordsIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/keywords/QueryKeywordsIntegrationTests.java
Apache-2.0
@Test public void shouldSupportTrueAndFalse() { assertThat(repository.findByAvailableTrue()).hasSize(3); assertThat(repository.findByAvailableFalse()).hasSize(4); }
base class for query keyword tests. Implemented by subclasses using ElasticsearchClient and ElasticsearchRestClient based repositories. @author Artur Konczak @author Christoph Strobl @author Peter-Josef Meisch
shouldSupportTrueAndFalse
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/keywords/QueryKeywordsIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/keywords/QueryKeywordsIntegrationTests.java
Apache-2.0
@Test public void shouldSupportInAndNotInAndNot() { assertThat(repository.findByPriceIn(Arrays.asList(1.2f, 1.1f))).hasSize(2); assertThat(repository.findByPriceNotIn(Arrays.asList(1.2f, 1.1f))).hasSize(5); assertThat(repository.findByPriceNot(1.2f)).hasSize(6); }
base class for query keyword tests. Implemented by subclasses using ElasticsearchClient and ElasticsearchRestClient based repositories. @author Artur Konczak @author Christoph Strobl @author Peter-Josef Meisch
shouldSupportInAndNotInAndNot
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/keywords/QueryKeywordsIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/keywords/QueryKeywordsIntegrationTests.java
Apache-2.0
@Test // DATAES-171 public void shouldWorkWithNotIn() { assertThat(repository.findByIdNotIn(Arrays.asList("2", "3"))).hasSize(5); }
base class for query keyword tests. Implemented by subclasses using ElasticsearchClient and ElasticsearchRestClient based repositories. @author Artur Konczak @author Christoph Strobl @author Peter-Josef Meisch
shouldWorkWithNotIn
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/keywords/QueryKeywordsIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/keywords/QueryKeywordsIntegrationTests.java
Apache-2.0
@Test public void shouldSupportBetween() { assertThat(repository.findByPriceBetween(1.0f, 2.0f)).hasSize(4); }
base class for query keyword tests. Implemented by subclasses using ElasticsearchClient and ElasticsearchRestClient based repositories. @author Artur Konczak @author Christoph Strobl @author Peter-Josef Meisch
shouldSupportBetween
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/keywords/QueryKeywordsIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/keywords/QueryKeywordsIntegrationTests.java
Apache-2.0
@Test public void shouldSupportLessThanAndGreaterThan() { assertThat(repository.findByPriceLessThan(1.1f)).hasSize(1); assertThat(repository.findByPriceLessThanEqual(1.1f)).hasSize(2); assertThat(repository.findByPriceGreaterThan(1.9f)).hasSize(3); assertThat(repository.findByPriceGreaterThanEqual(1.9f)).has...
base class for query keyword tests. Implemented by subclasses using ElasticsearchClient and ElasticsearchRestClient based repositories. @author Artur Konczak @author Christoph Strobl @author Peter-Josef Meisch
shouldSupportLessThanAndGreaterThan
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/keywords/QueryKeywordsIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/keywords/QueryKeywordsIntegrationTests.java
Apache-2.0
@Test // DATAES-615 public void shouldSupportSortOnStandardFieldWithCriteria() { List<String> sortedIds = repository.findAllByNameOrderByText("Salt").stream() // .map(it -> it.id).collect(Collectors.toList()); assertThat(sortedIds).containsExactly("4", "5"); }
base class for query keyword tests. Implemented by subclasses using ElasticsearchClient and ElasticsearchRestClient based repositories. @author Artur Konczak @author Christoph Strobl @author Peter-Josef Meisch
shouldSupportSortOnStandardFieldWithCriteria
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/keywords/QueryKeywordsIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/keywords/QueryKeywordsIntegrationTests.java
Apache-2.0
@Test // DATAES-615 public void shouldSupportSortOnFieldWithCustomFieldNameWithCriteria() { List<String> sortedIds = repository.findAllByNameOrderBySortName("Sugar").stream() // .map(it -> it.id).collect(Collectors.toList()); assertThat(sortedIds).containsExactly("3", "2", "1"); }
base class for query keyword tests. Implemented by subclasses using ElasticsearchClient and ElasticsearchRestClient based repositories. @author Artur Konczak @author Christoph Strobl @author Peter-Josef Meisch
shouldSupportSortOnFieldWithCustomFieldNameWithCriteria
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/keywords/QueryKeywordsIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/keywords/QueryKeywordsIntegrationTests.java
Apache-2.0
@Test // DATAES-615 public void shouldSupportSortOnStandardFieldWithoutCriteria() { List<String> sortedIds = repository.findAllByOrderByText().stream() // .map(it -> it.text).collect(Collectors.toList()); assertThat(sortedIds).containsExactly("Beet sugar", "Cane sugar", "Cane sugar", "Rock salt", "Sea salt", ...
base class for query keyword tests. Implemented by subclasses using ElasticsearchClient and ElasticsearchRestClient based repositories. @author Artur Konczak @author Christoph Strobl @author Peter-Josef Meisch
shouldSupportSortOnStandardFieldWithoutCriteria
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/keywords/QueryKeywordsIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/keywords/QueryKeywordsIntegrationTests.java
Apache-2.0
@Test // DATAES-615 public void shouldSupportSortOnFieldWithCustomFieldNameWithoutCriteria() { List<String> sortedIds = repository.findAllByOrderBySortName().stream() // .map(it -> it.id).collect(Collectors.toList()); assertThat(sortedIds).containsExactly("5", "4", "3", "2", "1", "6", "7"); }
base class for query keyword tests. Implemented by subclasses using ElasticsearchClient and ElasticsearchRestClient based repositories. @author Artur Konczak @author Christoph Strobl @author Peter-Josef Meisch
shouldSupportSortOnFieldWithCustomFieldNameWithoutCriteria
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/keywords/QueryKeywordsIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/keywords/QueryKeywordsIntegrationTests.java
Apache-2.0
@Test // DATAES-178 public void shouldReturnOneWithFindFirst() { Product product = repository.findFirstByName("Sugar"); assertThat(product.name).isEqualTo("Sugar"); }
base class for query keyword tests. Implemented by subclasses using ElasticsearchClient and ElasticsearchRestClient based repositories. @author Artur Konczak @author Christoph Strobl @author Peter-Josef Meisch
shouldReturnOneWithFindFirst
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/keywords/QueryKeywordsIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/keywords/QueryKeywordsIntegrationTests.java
Apache-2.0
@Test // DATAES-178 public void shouldReturnOneWithFindTop() { Product product = repository.findTopByName("Sugar"); assertThat(product.name).isEqualTo("Sugar"); }
base class for query keyword tests. Implemented by subclasses using ElasticsearchClient and ElasticsearchRestClient based repositories. @author Artur Konczak @author Christoph Strobl @author Peter-Josef Meisch
shouldReturnOneWithFindTop
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/keywords/QueryKeywordsIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/keywords/QueryKeywordsIntegrationTests.java
Apache-2.0
@Test // DATAES-178 public void shouldReturnTwoWithFindFirst2() { List<Product> products = repository.findFirst2ByName("Sugar"); assertThat(products).hasSize(2); products.forEach(product -> assertThat(product.name).isEqualTo("Sugar")); }
base class for query keyword tests. Implemented by subclasses using ElasticsearchClient and ElasticsearchRestClient based repositories. @author Artur Konczak @author Christoph Strobl @author Peter-Josef Meisch
shouldReturnTwoWithFindFirst2
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/keywords/QueryKeywordsIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/keywords/QueryKeywordsIntegrationTests.java
Apache-2.0
@Test // DATAES-178 public void shouldReturnTwoWithFindTop2() { List<Product> products = repository.findTop2ByName("Sugar"); assertThat(products).hasSize(2); products.forEach(product -> assertThat(product.name).isEqualTo("Sugar")); }
base class for query keyword tests. Implemented by subclasses using ElasticsearchClient and ElasticsearchRestClient based repositories. @author Artur Konczak @author Christoph Strobl @author Peter-Josef Meisch
shouldReturnTwoWithFindTop2
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/keywords/QueryKeywordsIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/keywords/QueryKeywordsIntegrationTests.java
Apache-2.0
@Test // DATAES-239 void shouldSearchForNullValues() { final List<Product> products = repository.findByName(null); assertThat(products).hasSize(1); assertThat(products.get(0).getId()).isEqualTo("6"); }
base class for query keyword tests. Implemented by subclasses using ElasticsearchClient and ElasticsearchRestClient based repositories. @author Artur Konczak @author Christoph Strobl @author Peter-Josef Meisch
shouldSearchForNullValues
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/keywords/QueryKeywordsIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/keywords/QueryKeywordsIntegrationTests.java
Apache-2.0
@Test // DATAES-239 void shouldDeleteWithNullValues() { repository.deleteByName(null); long count = repository.count(); assertThat(count).isEqualTo(6); }
base class for query keyword tests. Implemented by subclasses using ElasticsearchClient and ElasticsearchRestClient based repositories. @author Artur Konczak @author Christoph Strobl @author Peter-Josef Meisch
shouldDeleteWithNullValues
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/keywords/QueryKeywordsIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/keywords/QueryKeywordsIntegrationTests.java
Apache-2.0
@Test // DATAES-937 @DisplayName("should return empty list on findById with empty input list") void shouldReturnEmptyListOnFindByIdWithEmptyInputList() { Iterable<Product> products = repository.findAllById(new ArrayList<>()); assertThat(products).isEmpty(); }
base class for query keyword tests. Implemented by subclasses using ElasticsearchClient and ElasticsearchRestClient based repositories. @author Artur Konczak @author Christoph Strobl @author Peter-Josef Meisch
shouldReturnEmptyListOnFindByIdWithEmptyInputList
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/keywords/QueryKeywordsIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/keywords/QueryKeywordsIntegrationTests.java
Apache-2.0
@Test // DATAES-937 @DisplayName("should return empty list on derived method with empty input list") void shouldReturnEmptyListOnDerivedMethodWithEmptyInputList() { Iterable<Product> products = repository.findAllByNameIn(new ArrayList<>()); assertThat(products).isEmpty(); }
base class for query keyword tests. Implemented by subclasses using ElasticsearchClient and ElasticsearchRestClient based repositories. @author Artur Konczak @author Christoph Strobl @author Peter-Josef Meisch
shouldReturnEmptyListOnDerivedMethodWithEmptyInputList
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/keywords/QueryKeywordsIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/keywords/QueryKeywordsIntegrationTests.java
Apache-2.0
@Test // #1909 @DisplayName("should find by property exists") void shouldFindByPropertyExists() { SearchHits<Product> searchHits = repository.findByNameExists(); assertThat(searchHits.getTotalHits()).isEqualTo(6); }
base class for query keyword tests. Implemented by subclasses using ElasticsearchClient and ElasticsearchRestClient based repositories. @author Artur Konczak @author Christoph Strobl @author Peter-Josef Meisch
shouldFindByPropertyExists
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/keywords/QueryKeywordsIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/keywords/QueryKeywordsIntegrationTests.java
Apache-2.0
@Test // #1909 @DisplayName("should find by property is not null") void shouldFindByPropertyIsNotNull() { SearchHits<Product> searchHits = repository.findByNameIsNotNull(); assertThat(searchHits.getTotalHits()).isEqualTo(6); }
base class for query keyword tests. Implemented by subclasses using ElasticsearchClient and ElasticsearchRestClient based repositories. @author Artur Konczak @author Christoph Strobl @author Peter-Josef Meisch
shouldFindByPropertyIsNotNull
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/keywords/QueryKeywordsIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/keywords/QueryKeywordsIntegrationTests.java
Apache-2.0
@Test // #1909 @DisplayName("should find by property is null") void shouldFindByPropertyIsNull() { SearchHits<Product> searchHits = repository.findByNameIsNull(); assertThat(searchHits.getTotalHits()).isEqualTo(1); }
base class for query keyword tests. Implemented by subclasses using ElasticsearchClient and ElasticsearchRestClient based repositories. @author Artur Konczak @author Christoph Strobl @author Peter-Josef Meisch
shouldFindByPropertyIsNull
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/keywords/QueryKeywordsIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/keywords/QueryKeywordsIntegrationTests.java
Apache-2.0
@Test // #1909 @DisplayName("should find by empty property") void shouldFindByEmptyProperty() { SearchHits<Product> searchHits = repository.findByNameEmpty(); assertThat(searchHits.getTotalHits()).isEqualTo(1); }
base class for query keyword tests. Implemented by subclasses using ElasticsearchClient and ElasticsearchRestClient based repositories. @author Artur Konczak @author Christoph Strobl @author Peter-Josef Meisch
shouldFindByEmptyProperty
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/keywords/QueryKeywordsIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/keywords/QueryKeywordsIntegrationTests.java
Apache-2.0
@Test // #1909 @DisplayName("should find by non-empty property") void shouldFindByNonEmptyProperty() { SearchHits<Product> searchHits = repository.findByNameNotEmpty(); assertThat(searchHits.getTotalHits()).isEqualTo(5); }
base class for query keyword tests. Implemented by subclasses using ElasticsearchClient and ElasticsearchRestClient based repositories. @author Artur Konczak @author Christoph Strobl @author Peter-Josef Meisch
shouldFindByNonEmptyProperty
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/keywords/QueryKeywordsIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/keywords/QueryKeywordsIntegrationTests.java
Apache-2.0
@Test // #2162 @DisplayName("should run exists query") void shouldRunExistsQuery() { Boolean existsCaneSugar = repository.existsByText("Cane sugar"); Boolean existsSand = repository.existsByText("Sand"); assertThat(existsCaneSugar).isTrue(); assertThat(existsSand).isFalse(); }
base class for query keyword tests. Implemented by subclasses using ElasticsearchClient and ElasticsearchRestClient based repositories. @author Artur Konczak @author Christoph Strobl @author Peter-Josef Meisch
shouldRunExistsQuery
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/keywords/QueryKeywordsIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/keywords/QueryKeywordsIntegrationTests.java
Apache-2.0
@Nullable public String getId() { return id; }
base class for query keyword tests. Implemented by subclasses using ElasticsearchClient and ElasticsearchRestClient based repositories. @author Artur Konczak @author Christoph Strobl @author Peter-Josef Meisch
getId
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/keywords/QueryKeywordsIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/keywords/QueryKeywordsIntegrationTests.java
Apache-2.0
public void setId(@Nullable String id) { this.id = id; }
base class for query keyword tests. Implemented by subclasses using ElasticsearchClient and ElasticsearchRestClient based repositories. @author Artur Konczak @author Christoph Strobl @author Peter-Josef Meisch
setId
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/keywords/QueryKeywordsIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/keywords/QueryKeywordsIntegrationTests.java
Apache-2.0
@Nullable public String getName() { return name; }
base class for query keyword tests. Implemented by subclasses using ElasticsearchClient and ElasticsearchRestClient based repositories. @author Artur Konczak @author Christoph Strobl @author Peter-Josef Meisch
getName
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/keywords/QueryKeywordsIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/keywords/QueryKeywordsIntegrationTests.java
Apache-2.0
public void setName(@Nullable String name) { this.name = name; }
base class for query keyword tests. Implemented by subclasses using ElasticsearchClient and ElasticsearchRestClient based repositories. @author Artur Konczak @author Christoph Strobl @author Peter-Josef Meisch
setName
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/keywords/QueryKeywordsIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/keywords/QueryKeywordsIntegrationTests.java
Apache-2.0
@Nullable public String getText() { return text; }
base class for query keyword tests. Implemented by subclasses using ElasticsearchClient and ElasticsearchRestClient based repositories. @author Artur Konczak @author Christoph Strobl @author Peter-Josef Meisch
getText
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/keywords/QueryKeywordsIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/keywords/QueryKeywordsIntegrationTests.java
Apache-2.0
public void setText(@Nullable String text) { this.text = text; }
base class for query keyword tests. Implemented by subclasses using ElasticsearchClient and ElasticsearchRestClient based repositories. @author Artur Konczak @author Christoph Strobl @author Peter-Josef Meisch
setText
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/keywords/QueryKeywordsIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/keywords/QueryKeywordsIntegrationTests.java
Apache-2.0
@Nullable public Float getPrice() { return price; }
base class for query keyword tests. Implemented by subclasses using ElasticsearchClient and ElasticsearchRestClient based repositories. @author Artur Konczak @author Christoph Strobl @author Peter-Josef Meisch
getPrice
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/keywords/QueryKeywordsIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/keywords/QueryKeywordsIntegrationTests.java
Apache-2.0
public void setPrice(@Nullable Float price) { this.price = price; }
base class for query keyword tests. Implemented by subclasses using ElasticsearchClient and ElasticsearchRestClient based repositories. @author Artur Konczak @author Christoph Strobl @author Peter-Josef Meisch
setPrice
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/keywords/QueryKeywordsIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/keywords/QueryKeywordsIntegrationTests.java
Apache-2.0
public boolean isAvailable() { return available; }
base class for query keyword tests. Implemented by subclasses using ElasticsearchClient and ElasticsearchRestClient based repositories. @author Artur Konczak @author Christoph Strobl @author Peter-Josef Meisch
isAvailable
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/keywords/QueryKeywordsIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/keywords/QueryKeywordsIntegrationTests.java
Apache-2.0
public void setAvailable(boolean available) { this.available = available; }
base class for query keyword tests. Implemented by subclasses using ElasticsearchClient and ElasticsearchRestClient based repositories. @author Artur Konczak @author Christoph Strobl @author Peter-Josef Meisch
setAvailable
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/keywords/QueryKeywordsIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/keywords/QueryKeywordsIntegrationTests.java
Apache-2.0
@Nullable public String getSortName() { return sortName; }
base class for query keyword tests. Implemented by subclasses using ElasticsearchClient and ElasticsearchRestClient based repositories. @author Artur Konczak @author Christoph Strobl @author Peter-Josef Meisch
getSortName
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/keywords/QueryKeywordsIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/keywords/QueryKeywordsIntegrationTests.java
Apache-2.0
public void setSortName(@Nullable String sortName) { this.sortName = sortName; }
base class for query keyword tests. Implemented by subclasses using ElasticsearchClient and ElasticsearchRestClient based repositories. @author Artur Konczak @author Christoph Strobl @author Peter-Josef Meisch
setSortName
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/keywords/QueryKeywordsIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/keywords/QueryKeywordsIntegrationTests.java
Apache-2.0
@BeforeEach void setUp() { indexNameProvider.increment(); operations.indexOps(Entity.class).createWithMapping().block(); }
Integration tests to check that {@link org.springframework.data.elasticsearch.annotations.ValueConverter} annotated properties are handle correctly (method name derived queries, for @{@link org.springframework.data.elasticsearch.core.query.Query} methods we don't know which parameters map to which property. @a...
setUp
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/valueconverter/ReactiveValueConverterIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/valueconverter/ReactiveValueConverterIntegrationTests.java
Apache-2.0
@Test @Order(java.lang.Integer.MAX_VALUE) void cleanup() { operations.indexOps(IndexCoordinates.of(indexNameProvider.getPrefix() + '*')).delete().block(); }
Integration tests to check that {@link org.springframework.data.elasticsearch.annotations.ValueConverter} annotated properties are handle correctly (method name derived queries, for @{@link org.springframework.data.elasticsearch.core.query.Query} methods we don't know which parameters map to which property. @a...
cleanup
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/valueconverter/ReactiveValueConverterIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/valueconverter/ReactiveValueConverterIntegrationTests.java
Apache-2.0
@Test // #2338 @DisplayName("should apply ValueConverter") void shouldApplyValueConverter() { ValueConverterIntegrationTests.Entity entity = new ValueConverterIntegrationTests.Entity(); entity.setId("42"); entity.setText("answer"); operations.save(entity).block(); repository.queryByText("text-answer") // ...
Integration tests to check that {@link org.springframework.data.elasticsearch.annotations.ValueConverter} annotated properties are handle correctly (method name derived queries, for @{@link org.springframework.data.elasticsearch.core.query.Query} methods we don't know which parameters map to which property. @a...
shouldApplyValueConverter
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/valueconverter/ReactiveValueConverterIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/valueconverter/ReactiveValueConverterIntegrationTests.java
Apache-2.0
@Nullable public String getId() { return id; }
Integration tests to check that {@link org.springframework.data.elasticsearch.annotations.ValueConverter} annotated properties are handle correctly (method name derived queries, for @{@link org.springframework.data.elasticsearch.core.query.Query} methods we don't know which parameters map to which property. @a...
getId
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/valueconverter/ReactiveValueConverterIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/valueconverter/ReactiveValueConverterIntegrationTests.java
Apache-2.0
public void setId(@Nullable String id) { this.id = id; }
Integration tests to check that {@link org.springframework.data.elasticsearch.annotations.ValueConverter} annotated properties are handle correctly (method name derived queries, for @{@link org.springframework.data.elasticsearch.core.query.Query} methods we don't know which parameters map to which property. @a...
setId
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/valueconverter/ReactiveValueConverterIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/valueconverter/ReactiveValueConverterIntegrationTests.java
Apache-2.0
@Nullable public String getText() { return text; }
Integration tests to check that {@link org.springframework.data.elasticsearch.annotations.ValueConverter} annotated properties are handle correctly (method name derived queries, for @{@link org.springframework.data.elasticsearch.core.query.Query} methods we don't know which parameters map to which property. @a...
getText
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/valueconverter/ReactiveValueConverterIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/valueconverter/ReactiveValueConverterIntegrationTests.java
Apache-2.0
public void setText(@Nullable String text) { this.text = text; }
Integration tests to check that {@link org.springframework.data.elasticsearch.annotations.ValueConverter} annotated properties are handle correctly (method name derived queries, for @{@link org.springframework.data.elasticsearch.core.query.Query} methods we don't know which parameters map to which property. @a...
setText
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/valueconverter/ReactiveValueConverterIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/valueconverter/ReactiveValueConverterIntegrationTests.java
Apache-2.0
@Override public Object write(Object value) { return PREFIX + value.toString(); }
Integration tests to check that {@link org.springframework.data.elasticsearch.annotations.ValueConverter} annotated properties are handle correctly (method name derived queries, for @{@link org.springframework.data.elasticsearch.core.query.Query} methods we don't know which parameters map to which property. @a...
write
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/valueconverter/ReactiveValueConverterIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/valueconverter/ReactiveValueConverterIntegrationTests.java
Apache-2.0
@Override public Object read(Object value) { String valueString = value.toString(); if (valueString.startsWith(PREFIX)) { return valueString.substring(PREFIX.length()); } else { return value; } }
Integration tests to check that {@link org.springframework.data.elasticsearch.annotations.ValueConverter} annotated properties are handle correctly (method name derived queries, for @{@link org.springframework.data.elasticsearch.core.query.Query} methods we don't know which parameters map to which property. @a...
read
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/valueconverter/ReactiveValueConverterIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/valueconverter/ReactiveValueConverterIntegrationTests.java
Apache-2.0
@Bean IndexNameProvider indexNameProvider() { return new IndexNameProvider("valueconverter"); }
{@link ValueConverterIntegrationTests} using a Repository backed by an ElasticsearchTemplate. @author Peter-Josef Meisch @since 5.0
indexNameProvider
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/valueconverter/ValueConverterELCIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/valueconverter/ValueConverterELCIntegrationTests.java
Apache-2.0
@BeforeEach public void before() { indexNameProvider.increment(); operations.indexOps(Entity.class).createWithMapping(); }
Integration tests to check that {@link org.springframework.data.elasticsearch.annotations.ValueConverter} annotated properties are handled correctly (method name derived queries, for @{@link org.springframework.data.elasticsearch.core.query.Query} methods we don't know which parameters map to which property. @...
before
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/valueconverter/ValueConverterIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/valueconverter/ValueConverterIntegrationTests.java
Apache-2.0
@Test @Order(Integer.MAX_VALUE) void cleanup() { operations.indexOps(IndexCoordinates.of(indexNameProvider.getPrefix() + '*')).delete(); }
Integration tests to check that {@link org.springframework.data.elasticsearch.annotations.ValueConverter} annotated properties are handled correctly (method name derived queries, for @{@link org.springframework.data.elasticsearch.core.query.Query} methods we don't know which parameters map to which property. @...
cleanup
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/valueconverter/ValueConverterIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/valueconverter/ValueConverterIntegrationTests.java
Apache-2.0
@Test // #2338 @DisplayName("should apply ValueConverter") void shouldApplyValueConverter() { Entity entity = new Entity(); entity.setId("42"); entity.setText("answer"); operations.save(entity); SearchHits<Entity> searchHits = repository.queryByText("text-answer"); assertThat(searchHits.getTotalHits())....
Integration tests to check that {@link org.springframework.data.elasticsearch.annotations.ValueConverter} annotated properties are handled correctly (method name derived queries, for @{@link org.springframework.data.elasticsearch.core.query.Query} methods we don't know which parameters map to which property. @...
shouldApplyValueConverter
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/valueconverter/ValueConverterIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/valueconverter/ValueConverterIntegrationTests.java
Apache-2.0
@Nullable public String getId() { return id; }
Integration tests to check that {@link org.springframework.data.elasticsearch.annotations.ValueConverter} annotated properties are handled correctly (method name derived queries, for @{@link org.springframework.data.elasticsearch.core.query.Query} methods we don't know which parameters map to which property. @...
getId
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/valueconverter/ValueConverterIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/valueconverter/ValueConverterIntegrationTests.java
Apache-2.0
public void setId(@Nullable String id) { this.id = id; }
Integration tests to check that {@link org.springframework.data.elasticsearch.annotations.ValueConverter} annotated properties are handled correctly (method name derived queries, for @{@link org.springframework.data.elasticsearch.core.query.Query} methods we don't know which parameters map to which property. @...
setId
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/valueconverter/ValueConverterIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/valueconverter/ValueConverterIntegrationTests.java
Apache-2.0
@Nullable public String getText() { return text; }
Integration tests to check that {@link org.springframework.data.elasticsearch.annotations.ValueConverter} annotated properties are handled correctly (method name derived queries, for @{@link org.springframework.data.elasticsearch.core.query.Query} methods we don't know which parameters map to which property. @...
getText
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/valueconverter/ValueConverterIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/valueconverter/ValueConverterIntegrationTests.java
Apache-2.0
public void setText(@Nullable String text) { this.text = text; }
Integration tests to check that {@link org.springframework.data.elasticsearch.annotations.ValueConverter} annotated properties are handled correctly (method name derived queries, for @{@link org.springframework.data.elasticsearch.core.query.Query} methods we don't know which parameters map to which property. @...
setText
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/valueconverter/ValueConverterIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/valueconverter/ValueConverterIntegrationTests.java
Apache-2.0
@Override public Object write(Object value) { return PREFIX + value.toString(); }
Integration tests to check that {@link org.springframework.data.elasticsearch.annotations.ValueConverter} annotated properties are handled correctly (method name derived queries, for @{@link org.springframework.data.elasticsearch.core.query.Query} methods we don't know which parameters map to which property. @...
write
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/valueconverter/ValueConverterIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/valueconverter/ValueConverterIntegrationTests.java
Apache-2.0
@Override public Object read(Object value) { String valueString = value.toString(); if (valueString.startsWith(PREFIX)) { return valueString.substring(PREFIX.length()); } else { return value; } }
Integration tests to check that {@link org.springframework.data.elasticsearch.annotations.ValueConverter} annotated properties are handled correctly (method name derived queries, for @{@link org.springframework.data.elasticsearch.core.query.Query} methods we don't know which parameters map to which property. @...
read
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/query/valueconverter/ValueConverterIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/query/valueconverter/ValueConverterIntegrationTests.java
Apache-2.0
@BeforeEach public void before() { SimpleElasticsearchMappingContext context = new SimpleElasticsearchMappingContext(); Set<Class<?>> entites = new HashSet<>(); entites.add(EntityNoId.class); context.setInitialEntitySet(entites); entityInfoCreator = new ElasticsearchEntityInformationCreatorImpl(context); }
@author Florian Hopf @author Mark Paluch
before
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchEntityInformationCreatorImplTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchEntityInformationCreatorImplTests.java
Apache-2.0
@Test public void shouldThrowMappingExceptionOnMissingEntity() { assertThatThrownBy(() -> entityInfoCreator.getEntityInformation(String.class)).isInstanceOf(MappingException.class); }
@author Florian Hopf @author Mark Paluch
shouldThrowMappingExceptionOnMissingEntity
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchEntityInformationCreatorImplTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchEntityInformationCreatorImplTests.java
Apache-2.0
@Test public void shouldThrowIllegalArgumentExceptionOnMissingIdAnnotation() { assertThatThrownBy(() -> entityInfoCreator.getEntityInformation(EntityNoId.class)) .isInstanceOf(IllegalArgumentException.class).hasMessageContaining("No id property found"); }
@author Florian Hopf @author Mark Paluch
shouldThrowIllegalArgumentExceptionOnMissingIdAnnotation
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchEntityInformationCreatorImplTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchEntityInformationCreatorImplTests.java
Apache-2.0
@BeforeEach void before() { indexNameProvider.increment(); operations.indexOps(SampleEntity.class).createWithMapping(); }
@author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch @author Murali Chevuri
before
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test @org.junit.jupiter.api.Order(Integer.MAX_VALUE) public void cleanup() { operations.indexOps(IndexCoordinates.of(indexNameProvider.getPrefix() + "*")).delete(); }
@author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch @author Murali Chevuri
cleanup
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test void shouldDoBulkIndexDocument() { // given String documentId1 = nextIdAsString(); SampleEntity sampleEntity1 = new SampleEntity(); sampleEntity1.setId(documentId1); sampleEntity1.setMessage("some message"); sampleEntity1.setVersion(System.currentTimeMillis()); String documentId2 = nextIdAsString...
@author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch @author Murali Chevuri
shouldDoBulkIndexDocument
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test void shouldSaveDocument() { // given String documentId = nextIdAsString(); SampleEntity sampleEntity = new SampleEntity(); sampleEntity.setId(documentId); sampleEntity.setMessage("some message"); sampleEntity.setVersion(System.currentTimeMillis()); // when repository.save(sampleEntity); // t...
@author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch @author Murali Chevuri
shouldSaveDocument
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test void throwExceptionWhenTryingToInsertWithVersionButWithoutId() { // given SampleEntity sampleEntity = new SampleEntity(); sampleEntity.setMessage("some message"); sampleEntity.setVersion(System.currentTimeMillis()); // when assertThatThrownBy(() -> repository.save(sampleEntity)).isInstanceOf(DataIn...
@author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch @author Murali Chevuri
throwExceptionWhenTryingToInsertWithVersionButWithoutId
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test void shouldFindDocumentById() { // given String documentId = nextIdAsString(); SampleEntity sampleEntity = new SampleEntity(); sampleEntity.setId(documentId); sampleEntity.setMessage("some message"); sampleEntity.setVersion(System.currentTimeMillis()); repository.save(sampleEntity); // when O...
@author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch @author Murali Chevuri
shouldFindDocumentById
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test void shouldReturnCountOfDocuments() { // given String documentId = nextIdAsString(); SampleEntity sampleEntity = new SampleEntity(); sampleEntity.setId(documentId); sampleEntity.setMessage("some message"); sampleEntity.setVersion(System.currentTimeMillis()); repository.save(sampleEntity); // wh...
@author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch @author Murali Chevuri
shouldReturnCountOfDocuments
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test void shouldFindAllDocuments() { // when Iterable<SampleEntity> results = repository.findAll(); // then assertThat(results).isNotNull(); }
@author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch @author Murali Chevuri
shouldFindAllDocuments
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test void shouldDeleteDocument() { // given String documentId = nextIdAsString(); SampleEntity sampleEntity = new SampleEntity(); sampleEntity.setId(documentId); sampleEntity.setMessage("some message"); sampleEntity.setVersion(System.currentTimeMillis()); repository.save(sampleEntity); // when rep...
@author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch @author Murali Chevuri
shouldDeleteDocument
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test // DATAES-82, #2417 void shouldFindAllByIdQuery() { // create more than 10 documents to see that the number of input ids is set as requested size int numEntities = 20; List<String> ids = new ArrayList<>(numEntities); List<SampleEntity> entities = new ArrayList<>(numEntities); for (int i = 0; i < numEn...
@author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch @author Murali Chevuri
shouldFindAllByIdQuery
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test void shouldSaveIterableEntities() { // given String documentId = nextIdAsString(); SampleEntity sampleEntity1 = new SampleEntity(); sampleEntity1.setId(documentId); sampleEntity1.setMessage("hello world."); sampleEntity1.setVersion(System.currentTimeMillis()); String documentId2 = nextIdAsString(...
@author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch @author Murali Chevuri
shouldSaveIterableEntities
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test void shouldReturnTrueGivenDocumentWithIdExists() { // given String documentId = nextIdAsString(); SampleEntity sampleEntity = new SampleEntity(); sampleEntity.setId(documentId); sampleEntity.setMessage("hello world."); sampleEntity.setVersion(System.currentTimeMillis()); repository.save(sampleEnti...
@author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch @author Murali Chevuri
shouldReturnTrueGivenDocumentWithIdExists
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test // DATAES-363 void shouldReturnFalseGivenDocumentWithIdDoesNotExist() { // given String documentId = nextIdAsString(); // when boolean exist = repository.existsById(documentId); // then assertThat(exist).isFalse(); }
@author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch @author Murali Chevuri
shouldReturnFalseGivenDocumentWithIdDoesNotExist
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test void shouldDeleteAll() { // given String documentId = nextIdAsString(); SampleEntity sampleEntity = new SampleEntity(); sampleEntity.setId(documentId); sampleEntity.setMessage("hello world."); sampleEntity.setVersion(System.currentTimeMillis()); repository.save(sampleEntity); // when reposito...
@author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch @author Murali Chevuri
shouldDeleteAll
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test void shouldDeleteById() { // given String documentId = nextIdAsString(); SampleEntity sampleEntity = new SampleEntity(); sampleEntity.setId(documentId); sampleEntity.setMessage("hello world."); sampleEntity.setVersion(System.currentTimeMillis()); repository.save(sampleEntity); // when long re...
@author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch @author Murali Chevuri
shouldDeleteById
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test // DATAES-976 void shouldDeleteAllById() { // given String id1 = nextIdAsString(); SampleEntity sampleEntity1 = new SampleEntity(); sampleEntity1.setId(id1); sampleEntity1.setMessage("hello world 1"); sampleEntity1.setAvailable(true); sampleEntity1.setVersion(System.currentTimeMillis()); String...
@author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch @author Murali Chevuri
shouldDeleteAllById
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test void shouldDeleteByMessageAndReturnList() { // given String documentId = nextIdAsString(); SampleEntity sampleEntity1 = new SampleEntity(); sampleEntity1.setId(documentId); sampleEntity1.setMessage("hello world 1"); sampleEntity1.setAvailable(true); sampleEntity1.setVersion(System.currentTimeMilli...
@author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch @author Murali Chevuri
shouldDeleteByMessageAndReturnList
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test void shouldDeleteByListForMessage() { // given String documentId = nextIdAsString(); SampleEntity sampleEntity1 = new SampleEntity(); sampleEntity1.setId(documentId); sampleEntity1.setMessage("hello world 1"); sampleEntity1.setVersion(System.currentTimeMillis()); documentId = nextIdAsString(); ...
@author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch @author Murali Chevuri
shouldDeleteByListForMessage
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test void shouldDeleteByType() { // given String documentId = nextIdAsString(); SampleEntity sampleEntity1 = new SampleEntity(); sampleEntity1.setId(documentId); sampleEntity1.setType("book"); sampleEntity1.setVersion(System.currentTimeMillis()); documentId = nextIdAsString(); SampleEntity sampleEnt...
@author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch @author Murali Chevuri
shouldDeleteByType
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test void shouldDeleteEntity() { // given String documentId = nextIdAsString(); SampleEntity sampleEntity = new SampleEntity(); sampleEntity.setId(documentId); sampleEntity.setMessage("hello world."); sampleEntity.setVersion(System.currentTimeMillis()); repository.save(sampleEntity); // when repos...
@author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch @author Murali Chevuri
shouldDeleteEntity
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
Apache-2.0
@Test void shouldReturnIterableEntities() { // given String documentId1 = nextIdAsString(); SampleEntity sampleEntity1 = new SampleEntity(); sampleEntity1.setId(documentId1); sampleEntity1.setMessage("hello world."); sampleEntity1.setVersion(System.currentTimeMillis()); repository.save(sampleEntity1); ...
@author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Christoph Strobl @author Michael Wirth @author Peter-Josef Meisch @author Murali Chevuri
shouldReturnIterableEntities
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryIntegrationTests.java
Apache-2.0