code
stringlengths
23
201k
docstring
stringlengths
17
96.2k
func_name
stringlengths
0
235
language
stringclasses
1 value
repo
stringlengths
8
72
path
stringlengths
11
317
url
stringlengths
57
377
license
stringclasses
7 values
@Test // DATAES-716 void shouldMapNamesAndConvertValuesInCriteriaQuery() throws JSONException { // use POJO properties and types in the query building CriteriaQuery criteriaQuery = new CriteriaQuery( // new Criteria("birthDate") // .between(LocalDate.of(1989, 11, 9), LocalDate.of(1990, 11, 9)) // ...
Tests for the mapping of {@link CriteriaQuery} by a {@link MappingElasticsearchConverter}. In the same package as {@link org.springframework.data.elasticsearch.client.elc.CriteriaQueryProcessor} as this is needed to get the String representation to assert. @author Peter-Josef Meisch @author Sascha Woo @author vdisk
shouldMapNamesAndConvertValuesInCriteriaQuery
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/client/elc/CriteriaQueryMappingUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/client/elc/CriteriaQueryMappingUnitTests.java
Apache-2.0
@Test // #1668 void shouldMapNamesAndConvertValuesInCriteriaQueryForSubCriteria() throws JSONException { // use POJO properties and types in the query building CriteriaQuery criteriaQuery = new CriteriaQuery( // Criteria.or().subCriteria(Criteria.where("birthDate") // .between(LocalDate.of(1989, 11, 9),...
Tests for the mapping of {@link CriteriaQuery} by a {@link MappingElasticsearchConverter}. In the same package as {@link org.springframework.data.elasticsearch.client.elc.CriteriaQueryProcessor} as this is needed to get the String representation to assert. @author Peter-Josef Meisch @author Sascha Woo @author vdisk
shouldMapNamesAndConvertValuesInCriteriaQueryForSubCriteria
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/client/elc/CriteriaQueryMappingUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/client/elc/CriteriaQueryMappingUnitTests.java
Apache-2.0
@Test // #1668 void shouldMapNamesAndConvertValuesInCriteriaQueryForSubCriteriaWithDate() throws JSONException { // use POJO properties and types in the query building CriteriaQuery criteriaQuery = new CriteriaQuery( // Criteria.or().subCriteria(Criteria.where("birthDate") // .between(LocalDate.of(1989, ...
Tests for the mapping of {@link CriteriaQuery} by a {@link MappingElasticsearchConverter}. In the same package as {@link org.springframework.data.elasticsearch.client.elc.CriteriaQueryProcessor} as this is needed to get the String representation to assert. @author Peter-Josef Meisch @author Sascha Woo @author vdisk
shouldMapNamesAndConvertValuesInCriteriaQueryForSubCriteriaWithDate
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/client/elc/CriteriaQueryMappingUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/client/elc/CriteriaQueryMappingUnitTests.java
Apache-2.0
@Test // DATAES-706 void shouldMapNamesAndValuesInSubCriteriaQuery() throws JSONException { CriteriaQuery criteriaQuery = new CriteriaQuery( // new Criteria("firstName").matches("John") // .subCriteria(new Criteria("birthDate") // .between(LocalDate.of(1989, 11, 9), LocalDate.of(1990, 11, 9)) // ...
Tests for the mapping of {@link CriteriaQuery} by a {@link MappingElasticsearchConverter}. In the same package as {@link org.springframework.data.elasticsearch.client.elc.CriteriaQueryProcessor} as this is needed to get the String representation to assert. @author Peter-Josef Meisch @author Sascha Woo @author vdisk
shouldMapNamesAndValuesInSubCriteriaQuery
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/client/elc/CriteriaQueryMappingUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/client/elc/CriteriaQueryMappingUnitTests.java
Apache-2.0
@Test // DATAES-931 @DisplayName("should map names in GeoJson query") void shouldMapNamesInGeoJsonQuery() throws JSONException { GeoJsonPoint geoJsonPoint = GeoJsonPoint.of(1.2, 3.4); CriteriaQuery criteriaQuery = new CriteriaQuery(new Criteria("geoShapeField").intersects(geoJsonPoint)); String expected = """...
Tests for the mapping of {@link CriteriaQuery} by a {@link MappingElasticsearchConverter}. In the same package as {@link org.springframework.data.elasticsearch.client.elc.CriteriaQueryProcessor} as this is needed to get the String representation to assert. @author Peter-Josef Meisch @author Sascha Woo @author vdisk
shouldMapNamesInGeoJsonQuery
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/client/elc/CriteriaQueryMappingUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/client/elc/CriteriaQueryMappingUnitTests.java
Apache-2.0
@Test // #1753 @DisplayName("should map names and value in nested entities") void shouldMapNamesAndValueInNestedEntities() throws JSONException { String expected = """ { "bool": { "must": [ { "nested": { "path": "per-sons", "query": { "query_string": { ...
Tests for the mapping of {@link CriteriaQuery} by a {@link MappingElasticsearchConverter}. In the same package as {@link org.springframework.data.elasticsearch.client.elc.CriteriaQueryProcessor} as this is needed to get the String representation to assert. @author Peter-Josef Meisch @author Sascha Woo @author vdisk
shouldMapNamesAndValueInNestedEntities
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/client/elc/CriteriaQueryMappingUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/client/elc/CriteriaQueryMappingUnitTests.java
Apache-2.0
@Test // #1753 @DisplayName("should map names and value in nested entities with sub-fields") void shouldMapNamesAndValueInNestedEntitiesWithSubfields() throws JSONException { String expected = """ { "bool": { "must": [ { "nested": { "path": "per-sons", "query": { ...
Tests for the mapping of {@link CriteriaQuery} by a {@link MappingElasticsearchConverter}. In the same package as {@link org.springframework.data.elasticsearch.client.elc.CriteriaQueryProcessor} as this is needed to get the String representation to assert. @author Peter-Josef Meisch @author Sascha Woo @author vdisk
shouldMapNamesAndValueInNestedEntitiesWithSubfields
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/client/elc/CriteriaQueryMappingUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/client/elc/CriteriaQueryMappingUnitTests.java
Apache-2.0
@Test // #1761 @DisplayName("should map names and value in object entities") void shouldMapNamesAndValueInObjectEntities() throws JSONException { String expected = """ { "bool": { "must": [ { "query_string": { "default_operator": "and", "fields": [ "per-son...
Tests for the mapping of {@link CriteriaQuery} by a {@link MappingElasticsearchConverter}. In the same package as {@link org.springframework.data.elasticsearch.client.elc.CriteriaQueryProcessor} as this is needed to get the String representation to assert. @author Peter-Josef Meisch @author Sascha Woo @author vdisk
shouldMapNamesAndValueInObjectEntities
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/client/elc/CriteriaQueryMappingUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/client/elc/CriteriaQueryMappingUnitTests.java
Apache-2.0
@Test // #1778 @DisplayName("should map names in source fields and SourceFilters") void shouldMapNamesInSourceFieldsAndSourceFilters() { Query query = Query.findAll(); // Note: we don't care if these filters make sense here, this test is only about name mapping query.addFields("firstName", "lastName"); query...
Tests for the mapping of {@link CriteriaQuery} by a {@link MappingElasticsearchConverter}. In the same package as {@link org.springframework.data.elasticsearch.client.elc.CriteriaQueryProcessor} as this is needed to get the String representation to assert. @author Peter-Josef Meisch @author Sascha Woo @author vdisk
shouldMapNamesInSourceFieldsAndSourceFilters
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/client/elc/CriteriaQueryMappingUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/client/elc/CriteriaQueryMappingUnitTests.java
Apache-2.0
@Test @DisplayName("should map names in source stored fields") void shouldMapNamesInSourceStoredFields() { Query query = Query.findAll(); query.addStoredFields("firstName", "lastName"); mappingElasticsearchConverter.updateQuery(query, Person.class); SoftAssertions softly = new SoftAssertions(); List<Stri...
Tests for the mapping of {@link CriteriaQuery} by a {@link MappingElasticsearchConverter}. In the same package as {@link org.springframework.data.elasticsearch.client.elc.CriteriaQueryProcessor} as this is needed to get the String representation to assert. @author Peter-Josef Meisch @author Sascha Woo @author vdisk
shouldMapNamesInSourceStoredFields
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/client/elc/CriteriaQueryMappingUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/client/elc/CriteriaQueryMappingUnitTests.java
Apache-2.0
@Test // #3083 @DisplayName("should map correct subcriteria") void shouldMapCorrectSubcriteria() throws JSONException { Criteria criteria = new Criteria("first").is("hello"); List<Criteria> criterias = new ArrayList<>(); criterias.add(new Criteria().or("second").exists()); List<Criteria> subCriterias = new ...
Tests for the mapping of {@link CriteriaQuery} by a {@link MappingElasticsearchConverter}. In the same package as {@link org.springframework.data.elasticsearch.client.elc.CriteriaQueryProcessor} as this is needed to get the String representation to assert. @author Peter-Josef Meisch @author Sascha Woo @author vdisk
shouldMapCorrectSubcriteria
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/client/elc/CriteriaQueryMappingUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/client/elc/CriteriaQueryMappingUnitTests.java
Apache-2.0
@Test void someTest() throws IOException { ElasticsearchClient client = imperativeElasticsearchClient; ElasticsearchIndicesClient indicesClient = client.indices(); indicesClient.create(b -> b.index("testindex")); GetIndicesSettingsResponse getIndicesSettingsResponse = indicesClient .getSettings(GetIndic...
Not really tests, but a class to check the first implementations of the new Elasticsearch client. Needs Elasticsearch on port 9200 and an intercepting proxy on port 8080. @author Peter-Josef Meisch @author maryantocinn
someTest
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/client/elc/DevTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/client/elc/DevTests.java
Apache-2.0
public <T> Mono<IndexResponse> index(IndexRequest<T> request) { return Mono.fromFuture(transport.performRequestAsync(request, IndexRequest._ENDPOINT, null)); }
Not really tests, but a class to check the first implementations of the new Elasticsearch client. Needs Elasticsearch on port 9200 and an intercepting proxy on port 8080. @author Peter-Josef Meisch @author maryantocinn
index
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/client/elc/DevTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/client/elc/DevTests.java
Apache-2.0
@Nullable public String getId() { return id; }
Not really tests, but a class to check the first implementations of the new Elasticsearch client. Needs Elasticsearch on port 9200 and an intercepting proxy on port 8080. @author Peter-Josef Meisch @author maryantocinn
getId
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/client/elc/DevTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/client/elc/DevTests.java
Apache-2.0
public void setId(@Nullable String id) { this.id = id; }
Not really tests, but a class to check the first implementations of the new Elasticsearch client. Needs Elasticsearch on port 9200 and an intercepting proxy on port 8080. @author Peter-Josef Meisch @author maryantocinn
setId
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/client/elc/DevTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/client/elc/DevTests.java
Apache-2.0
@Nullable public Double getPrice() { return price; }
Not really tests, but a class to check the first implementations of the new Elasticsearch client. Needs Elasticsearch on port 9200 and an intercepting proxy on port 8080. @author Peter-Josef Meisch @author maryantocinn
getPrice
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/client/elc/DevTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/client/elc/DevTests.java
Apache-2.0
public void setPrice(@Nullable Double price) { this.price = price; }
Not really tests, but a class to check the first implementations of the new Elasticsearch client. Needs Elasticsearch on port 9200 and an intercepting proxy on port 8080. @author Peter-Josef Meisch @author maryantocinn
setPrice
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/client/elc/DevTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/client/elc/DevTests.java
Apache-2.0
@Nullable public String getId() { return id; }
Not really tests, but a class to check the first implementations of the new Elasticsearch client. Needs Elasticsearch on port 9200 and an intercepting proxy on port 8080. @author Peter-Josef Meisch @author maryantocinn
getId
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/client/elc/DevTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/client/elc/DevTests.java
Apache-2.0
public void setId(String id) { this.id = id; }
Not really tests, but a class to check the first implementations of the new Elasticsearch client. Needs Elasticsearch on port 9200 and an intercepting proxy on port 8080. @author Peter-Josef Meisch @author maryantocinn
setId
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/client/elc/DevTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/client/elc/DevTests.java
Apache-2.0
@Nullable public Name getName() { return name; }
Not really tests, but a class to check the first implementations of the new Elasticsearch client. Needs Elasticsearch on port 9200 and an intercepting proxy on port 8080. @author Peter-Josef Meisch @author maryantocinn
getName
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/client/elc/DevTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/client/elc/DevTests.java
Apache-2.0
public void setName(Name name) { this.name = name; }
Not really tests, but a class to check the first implementations of the new Elasticsearch client. Needs Elasticsearch on port 9200 and an intercepting proxy on port 8080. @author Peter-Josef Meisch @author maryantocinn
setName
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/client/elc/DevTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/client/elc/DevTests.java
Apache-2.0
@Override public String toString() { return "Person{" + "id='" + id + '\'' + ", name=" + name + '}'; }
Not really tests, but a class to check the first implementations of the new Elasticsearch client. Needs Elasticsearch on port 9200 and an intercepting proxy on port 8080. @author Peter-Josef Meisch @author maryantocinn
toString
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/client/elc/DevTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/client/elc/DevTests.java
Apache-2.0
@Nullable public String getFirst() { return first; }
Not really tests, but a class to check the first implementations of the new Elasticsearch client. Needs Elasticsearch on port 9200 and an intercepting proxy on port 8080. @author Peter-Josef Meisch @author maryantocinn
getFirst
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/client/elc/DevTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/client/elc/DevTests.java
Apache-2.0
public void setFirst(String first) { this.first = first; }
Not really tests, but a class to check the first implementations of the new Elasticsearch client. Needs Elasticsearch on port 9200 and an intercepting proxy on port 8080. @author Peter-Josef Meisch @author maryantocinn
setFirst
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/client/elc/DevTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/client/elc/DevTests.java
Apache-2.0
@Nullable public String getLast() { return last; }
Not really tests, but a class to check the first implementations of the new Elasticsearch client. Needs Elasticsearch on port 9200 and an intercepting proxy on port 8080. @author Peter-Josef Meisch @author maryantocinn
getLast
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/client/elc/DevTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/client/elc/DevTests.java
Apache-2.0
public void setLast(String last) { this.last = last; }
Not really tests, but a class to check the first implementations of the new Elasticsearch client. Needs Elasticsearch on port 9200 and an intercepting proxy on port 8080. @author Peter-Josef Meisch @author maryantocinn
setLast
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/client/elc/DevTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/client/elc/DevTests.java
Apache-2.0
@Override public String toString() { return "Name{" + "first='" + first + '\'' + ", last='" + last + '\'' + '}'; }
Not really tests, but a class to check the first implementations of the new Elasticsearch client. Needs Elasticsearch on port 9200 and an intercepting proxy on port 8080. @author Peter-Josef Meisch @author maryantocinn
toString
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/client/elc/DevTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/client/elc/DevTests.java
Apache-2.0
@Test @Order(10) void clusterHealth() { HealthRequest healthRequest = new HealthRequest.Builder().build(); try { HealthResponse healthResponse = clusterHealthImperative(healthRequest); } catch (IOException e) { LOGGER.error("error", e); } try { HealthResponse healthResponse = clusterHealthReacti...
Not really tests, but a class to check the first implementations of the new Elasticsearch client. Needs Elasticsearch on port 9200 and an intercepting proxy on port 8080. @author Peter-Josef Meisch @author maryantocinn
clusterHealth
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/client/elc/DevTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/client/elc/DevTests.java
Apache-2.0
private HealthResponse clusterHealthImperative(HealthRequest healthRequest) throws IOException { return imperativeElasticsearchClient.cluster().health(healthRequest); }
Not really tests, but a class to check the first implementations of the new Elasticsearch client. Needs Elasticsearch on port 9200 and an intercepting proxy on port 8080. @author Peter-Josef Meisch @author maryantocinn
clusterHealthImperative
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/client/elc/DevTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/client/elc/DevTests.java
Apache-2.0
private HealthResponse clusterHealthReactive(HealthRequest healthRequest) throws IOException { return Objects.requireNonNull(reactiveElasticsearchClient.cluster().health(healthRequest).block()); }
Not really tests, but a class to check the first implementations of the new Elasticsearch client. Needs Elasticsearch on port 9200 and an intercepting proxy on port 8080. @author Peter-Josef Meisch @author maryantocinn
clusterHealthReactive
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/client/elc/DevTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/client/elc/DevTests.java
Apache-2.0
@Test @Order(15) void indexCreation() throws IOException { RequestConverter requestConverter = new RequestConverter(converter, imperativeElasticsearchClient._transport().jsonpMapper()); String index = "pjtestindex"; ElasticsearchIndicesClient indicesClient = imperativeElasticsearchClient.indices(); if ...
Not really tests, but a class to check the first implementations of the new Elasticsearch client. Needs Elasticsearch on port 9200 and an intercepting proxy on port 8080. @author Peter-Josef Meisch @author maryantocinn
indexCreation
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/client/elc/DevTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/client/elc/DevTests.java
Apache-2.0
@Test @Order(20) void save() { Function<Integer, IndexRequest<AppData>> indexRequestBuilder = (Integer id) -> { AppData appData = new AppData(); appData.setId("id" + id); appData.setContent("content" + id); return new IndexRequest.Builder<AppData>().id(appData.getId()).document(appData).index(INDEX).b...
Not really tests, but a class to check the first implementations of the new Elasticsearch client. Needs Elasticsearch on port 9200 and an intercepting proxy on port 8080. @author Peter-Josef Meisch @author maryantocinn
save
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/client/elc/DevTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/client/elc/DevTests.java
Apache-2.0
private IndexResponse indexImperative(IndexRequest<AppData> indexRequest) throws IOException { return imperativeElasticsearchClient.index(indexRequest); }
Not really tests, but a class to check the first implementations of the new Elasticsearch client. Needs Elasticsearch on port 9200 and an intercepting proxy on port 8080. @author Peter-Josef Meisch @author maryantocinn
indexImperative
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/client/elc/DevTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/client/elc/DevTests.java
Apache-2.0
private IndexResponse indexReactive(IndexRequest<AppData> indexRequest) throws IOException { return Objects.requireNonNull(reactiveElasticsearchClient.index(indexRequest).block()); }
Not really tests, but a class to check the first implementations of the new Elasticsearch client. Needs Elasticsearch on port 9200 and an intercepting proxy on port 8080. @author Peter-Josef Meisch @author maryantocinn
indexReactive
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/client/elc/DevTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/client/elc/DevTests.java
Apache-2.0
@Test @Order(30) void search() { SearchRequest searchRequest = new SearchRequest.Builder().index(INDEX) .query(query -> query.match(matchQuery -> matchQuery.field("content").query(FieldValue.of("content1")))) .build(); ResponseBody<EntityAsMap> searchResponse = null; try { searchResponse = searchIm...
Not really tests, but a class to check the first implementations of the new Elasticsearch client. Needs Elasticsearch on port 9200 and an intercepting proxy on port 8080. @author Peter-Josef Meisch @author maryantocinn
search
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/client/elc/DevTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/client/elc/DevTests.java
Apache-2.0
private ResponseBody<EntityAsMap> searchImperative(SearchRequest searchRequest) throws IOException { return imperativeElasticsearchClient.search(searchRequest, EntityAsMap.class); }
Not really tests, but a class to check the first implementations of the new Elasticsearch client. Needs Elasticsearch on port 9200 and an intercepting proxy on port 8080. @author Peter-Josef Meisch @author maryantocinn
searchImperative
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/client/elc/DevTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/client/elc/DevTests.java
Apache-2.0
private ResponseBody<EntityAsMap> searchReactive(SearchRequest searchRequest) { return Objects.requireNonNull(reactiveElasticsearchClient.search(searchRequest, EntityAsMap.class).block()); }
Not really tests, but a class to check the first implementations of the new Elasticsearch client. Needs Elasticsearch on port 9200 and an intercepting proxy on port 8080. @author Peter-Josef Meisch @author maryantocinn
searchReactive
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/client/elc/DevTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/client/elc/DevTests.java
Apache-2.0
@Test @Order(40) void count() { CountRequest countRequest = new CountRequest.Builder().index(INDEX) .query(query -> query.match(matchQuery -> matchQuery.field("content").query(FieldValue.of("content1")))) .build(); CountResponse countResponse = null; try { countResponse = countImperative(countRequ...
Not really tests, but a class to check the first implementations of the new Elasticsearch client. Needs Elasticsearch on port 9200 and an intercepting proxy on port 8080. @author Peter-Josef Meisch @author maryantocinn
count
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/client/elc/DevTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/client/elc/DevTests.java
Apache-2.0
private CountResponse countImperative(CountRequest countRequest) throws IOException { return imperativeElasticsearchClient.count(countRequest); }
Not really tests, but a class to check the first implementations of the new Elasticsearch client. Needs Elasticsearch on port 9200 and an intercepting proxy on port 8080. @author Peter-Josef Meisch @author maryantocinn
countImperative
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/client/elc/DevTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/client/elc/DevTests.java
Apache-2.0
private CountResponse countReactive(CountRequest countRequest) { return Objects.requireNonNull(reactiveElasticsearchClient.count(countRequest).block()); }
Not really tests, but a class to check the first implementations of the new Elasticsearch client. Needs Elasticsearch on port 9200 and an intercepting proxy on port 8080. @author Peter-Josef Meisch @author maryantocinn
countReactive
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/client/elc/DevTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/client/elc/DevTests.java
Apache-2.0
private ClientConfiguration clientConfiguration() { return ClientConfiguration.builder() // .connectedTo("localhost:9200")// .withBasicAuth("elastic", "hcraescitsale").withProxy("localhost:8080") // .withHeaders(() -> { HttpHeaders headers = new HttpHeaders(); headers.add("X-SpringDataElasticsea...
Not really tests, but a class to check the first implementations of the new Elasticsearch client. Needs Elasticsearch on port 9200 and an intercepting proxy on port 8080. @author Peter-Josef Meisch @author maryantocinn
clientConfiguration
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/client/elc/DevTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/client/elc/DevTests.java
Apache-2.0
@Nullable public String getId() { return id; }
Not really tests, but a class to check the first implementations of the new Elasticsearch client. Needs Elasticsearch on port 9200 and an intercepting proxy on port 8080. @author Peter-Josef Meisch @author maryantocinn
getId
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/client/elc/DevTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/client/elc/DevTests.java
Apache-2.0
public void setId(String id) { this.id = id; }
Not really tests, but a class to check the first implementations of the new Elasticsearch client. Needs Elasticsearch on port 9200 and an intercepting proxy on port 8080. @author Peter-Josef Meisch @author maryantocinn
setId
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/client/elc/DevTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/client/elc/DevTests.java
Apache-2.0
@Nullable public String getContent() { return content; }
Not really tests, but a class to check the first implementations of the new Elasticsearch client. Needs Elasticsearch on port 9200 and an intercepting proxy on port 8080. @author Peter-Josef Meisch @author maryantocinn
getContent
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/client/elc/DevTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/client/elc/DevTests.java
Apache-2.0
public void setContent(String content) { this.content = content; }
Not really tests, but a class to check the first implementations of the new Elasticsearch client. Needs Elasticsearch on port 9200 and an intercepting proxy on port 8080. @author Peter-Josef Meisch @author maryantocinn
setContent
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/client/elc/DevTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/client/elc/DevTests.java
Apache-2.0
@Override public ClientConfiguration clientConfiguration() { return ClientConfiguration.builder() .connectedTo("localhost:" + wireMock.getPort()) .build(); }
Tests that need to check the data produced by the Elasticsearch client @author Peter-Josef Meisch
clientConfiguration
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/client/elc/ELCWiremockTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/client/elc/ELCWiremockTests.java
Apache-2.0
@Test // #2839 @DisplayName("should store null values if configured") void shouldStoreNullValuesIfConfigured() { wireMock.stubFor(put(urlPathEqualTo("/null-fields/_doc/42")) .withRequestBody(equalToJson(""" { "_class": "org.springframework.data.elasticsearch.client.elc.ELCWiremockTests$EntityWithN...
Tests that need to check the data produced by the Elasticsearch client @author Peter-Josef Meisch
shouldStoreNullValuesIfConfigured
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/client/elc/ELCWiremockTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/client/elc/ELCWiremockTests.java
Apache-2.0
@Nullable public String getId() { return id; }
Tests that need to check the data produced by the Elasticsearch client @author Peter-Josef Meisch
getId
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/client/elc/ELCWiremockTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/client/elc/ELCWiremockTests.java
Apache-2.0
public void setId(@Nullable String id) { this.id = id; }
Tests that need to check the data produced by the Elasticsearch client @author Peter-Josef Meisch
setId
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/client/elc/ELCWiremockTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/client/elc/ELCWiremockTests.java
Apache-2.0
@Nullable public String getField1() { return field1; }
Tests that need to check the data produced by the Elasticsearch client @author Peter-Josef Meisch
getField1
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/client/elc/ELCWiremockTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/client/elc/ELCWiremockTests.java
Apache-2.0
public void setField1(@Nullable String field1) { this.field1 = field1; }
Tests that need to check the data produced by the Elasticsearch client @author Peter-Josef Meisch
setField1
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/client/elc/ELCWiremockTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/client/elc/ELCWiremockTests.java
Apache-2.0
@Nullable public String getField2() { return field2; }
Tests that need to check the data produced by the Elasticsearch client @author Peter-Josef Meisch
getField2
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/client/elc/ELCWiremockTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/client/elc/ELCWiremockTests.java
Apache-2.0
public void setField2(@Nullable String field2) { this.field2 = field2; }
Tests that need to check the data produced by the Elasticsearch client @author Peter-Josef Meisch
setField2
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/client/elc/ELCWiremockTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/client/elc/ELCWiremockTests.java
Apache-2.0
@Test void refresh() { IndexCoordinates indexCoordinate = IndexCoordinates.of("i1", "i2"); ReactiveIndicesTemplate template = new ReactiveIndicesTemplate(client, cluster, elasticsearchConverter, indexCoordinate); doReturn(Mono.empty()).when(client).refresh(any(RefreshRequest.class)); template.refresh().as...
Tests that refresh is called with the indices bound to the template
refresh
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/client/elc/ReactiveIndicesTemplateTest.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/client/elc/ReactiveIndicesTemplateTest.java
Apache-2.0
@Test // #2316 @DisplayName("should add docvalue_fields") void shouldAddDocvalueFields() { var docValueFields = List.of( // new DocValueField("field1"), // new DocValueField("field2", "format2") // ); // doesn't matter what type of query is used, the relevant part for docvalue_fields is in the base bui...
@author Peter-Josef Meisch @author Han Seungwoo
shouldAddDocvalueFields
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/client/elc/RequestConverterTest.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/client/elc/RequestConverterTest.java
Apache-2.0
@Test // #2973 @DisplayName("should set refresh based on deleteRequest") void refreshSetByDeleteRequest() { var query = new CriteriaQuery(new Criteria("text").contains("test")); var deleteQuery = DeleteQuery.builder(query).withRefresh(true).build(); var deleteByQueryRequest = requestConverter.documentDeleteByQ...
@author Peter-Josef Meisch @author Han Seungwoo
refreshSetByDeleteRequest
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/client/elc/RequestConverterTest.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/client/elc/RequestConverterTest.java
Apache-2.0
@Bean public AuditorAware<String> auditorAware() { return auditorProvider(); }
@author Peter-Josef Meisch @author Roman Puchkovskiy
auditorAware
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/config/AuditingIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/config/AuditingIntegrationTests.java
Apache-2.0
public static AuditorAware<String> auditorProvider() { return new AuditorAware<>() { int count = 0; @Override public Optional<String> getCurrentAuditor() { return Optional.of("Auditor " + (++count)); } }; }
@author Peter-Josef Meisch @author Roman Puchkovskiy
auditorProvider
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/config/AuditingIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/config/AuditingIntegrationTests.java
Apache-2.0
@Override public Optional<String> getCurrentAuditor() { return Optional.of("Auditor " + (++count)); }
@author Peter-Josef Meisch @author Roman Puchkovskiy
getCurrentAuditor
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/config/AuditingIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/config/AuditingIntegrationTests.java
Apache-2.0
@Test // DATAES-68 void shouldEnableAuditingAndSetAuditingDates() throws InterruptedException { SimpleElasticsearchMappingContext mappingContext = applicationContext .getBean(SimpleElasticsearchMappingContext.class); mappingContext.getPersistentEntity(Entity.class); EntityCallbacks callbacks = EntityCallba...
@author Peter-Josef Meisch @author Roman Puchkovskiy
shouldEnableAuditingAndSetAuditingDates
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/config/AuditingIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/config/AuditingIntegrationTests.java
Apache-2.0
@Nullable public String getId() { return id; }
@author Peter-Josef Meisch @author Roman Puchkovskiy
getId
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/config/AuditingIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/config/AuditingIntegrationTests.java
Apache-2.0
public void setId(@Nullable String id) { this.id = id; }
@author Peter-Josef Meisch @author Roman Puchkovskiy
setId
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/config/AuditingIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/config/AuditingIntegrationTests.java
Apache-2.0
@Nullable public LocalDateTime getCreated() { return created; }
@author Peter-Josef Meisch @author Roman Puchkovskiy
getCreated
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/config/AuditingIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/config/AuditingIntegrationTests.java
Apache-2.0
public void setCreated(@Nullable LocalDateTime created) { this.created = created; }
@author Peter-Josef Meisch @author Roman Puchkovskiy
setCreated
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/config/AuditingIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/config/AuditingIntegrationTests.java
Apache-2.0
public void setModified(@Nullable LocalDateTime modified) { this.modified = modified; }
@author Peter-Josef Meisch @author Roman Puchkovskiy
setModified
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/config/AuditingIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/config/AuditingIntegrationTests.java
Apache-2.0
@Nullable @LastModifiedDate public LocalDateTime getModified() { return modified; }
@author Peter-Josef Meisch @author Roman Puchkovskiy
getModified
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/config/AuditingIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/config/AuditingIntegrationTests.java
Apache-2.0
@Nullable public String getCreatedBy() { return createdBy; }
@author Peter-Josef Meisch @author Roman Puchkovskiy
getCreatedBy
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/config/AuditingIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/config/AuditingIntegrationTests.java
Apache-2.0
public void setCreatedBy(@Nullable String createdBy) { this.createdBy = createdBy; }
@author Peter-Josef Meisch @author Roman Puchkovskiy
setCreatedBy
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/config/AuditingIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/config/AuditingIntegrationTests.java
Apache-2.0
@Nullable public String getModifiedBy() { return modifiedBy; }
@author Peter-Josef Meisch @author Roman Puchkovskiy
getModifiedBy
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/config/AuditingIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/config/AuditingIntegrationTests.java
Apache-2.0
public void setModifiedBy(@Nullable String modifiedBy) { this.modifiedBy = modifiedBy; }
@author Peter-Josef Meisch @author Roman Puchkovskiy
setModifiedBy
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/config/AuditingIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/config/AuditingIntegrationTests.java
Apache-2.0
@Override public boolean isNew() { return id == null || (created == null && createdBy == null); }
@author Peter-Josef Meisch @author Roman Puchkovskiy
isNew
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/config/AuditingIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/config/AuditingIntegrationTests.java
Apache-2.0
@Bean public ReactiveAuditorAware<String> auditorAware() { return auditorProvider(); }
@author Peter-Josef Meisch @author Roman Puchkovskiy
auditorAware
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/config/AuditingReactiveIntegrationTest.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/config/AuditingReactiveIntegrationTest.java
Apache-2.0
public static ReactiveAuditorAware<String> auditorProvider() { return new ReactiveAuditorAware<>() { int count = 0; @Override public Mono<String> getCurrentAuditor() { return Mono.just("Auditor " + (++count)); } }; }
@author Peter-Josef Meisch @author Roman Puchkovskiy
auditorProvider
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/config/AuditingReactiveIntegrationTest.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/config/AuditingReactiveIntegrationTest.java
Apache-2.0
@Override public Mono<String> getCurrentAuditor() { return Mono.just("Auditor " + (++count)); }
@author Peter-Josef Meisch @author Roman Puchkovskiy
getCurrentAuditor
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/config/AuditingReactiveIntegrationTest.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/config/AuditingReactiveIntegrationTest.java
Apache-2.0
@Test // DATAES-68 void shouldEnableAuditingAndSetAuditingDates() throws InterruptedException { SimpleElasticsearchMappingContext mappingContext = applicationContext .getBean(SimpleElasticsearchMappingContext.class); mappingContext.getPersistentEntity(Entity.class); ReactiveEntityCallbacks callbacks = Reac...
@author Peter-Josef Meisch @author Roman Puchkovskiy
shouldEnableAuditingAndSetAuditingDates
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/config/AuditingReactiveIntegrationTest.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/config/AuditingReactiveIntegrationTest.java
Apache-2.0
@Nullable public String getId() { return id; }
@author Peter-Josef Meisch @author Roman Puchkovskiy
getId
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/config/AuditingReactiveIntegrationTest.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/config/AuditingReactiveIntegrationTest.java
Apache-2.0
public void setId(@Nullable String id) { this.id = id; }
@author Peter-Josef Meisch @author Roman Puchkovskiy
setId
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/config/AuditingReactiveIntegrationTest.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/config/AuditingReactiveIntegrationTest.java
Apache-2.0
@Nullable public LocalDateTime getCreated() { return created; }
@author Peter-Josef Meisch @author Roman Puchkovskiy
getCreated
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/config/AuditingReactiveIntegrationTest.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/config/AuditingReactiveIntegrationTest.java
Apache-2.0
public void setCreated(@Nullable LocalDateTime created) { this.created = created; }
@author Peter-Josef Meisch @author Roman Puchkovskiy
setCreated
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/config/AuditingReactiveIntegrationTest.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/config/AuditingReactiveIntegrationTest.java
Apache-2.0
public void setModified(@Nullable LocalDateTime modified) { this.modified = modified; }
@author Peter-Josef Meisch @author Roman Puchkovskiy
setModified
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/config/AuditingReactiveIntegrationTest.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/config/AuditingReactiveIntegrationTest.java
Apache-2.0
@Nullable @LastModifiedDate public LocalDateTime getModified() { return modified; }
@author Peter-Josef Meisch @author Roman Puchkovskiy
getModified
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/config/AuditingReactiveIntegrationTest.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/config/AuditingReactiveIntegrationTest.java
Apache-2.0
@Nullable public String getCreatedBy() { return createdBy; }
@author Peter-Josef Meisch @author Roman Puchkovskiy
getCreatedBy
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/config/AuditingReactiveIntegrationTest.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/config/AuditingReactiveIntegrationTest.java
Apache-2.0
public void setCreatedBy(@Nullable String createdBy) { this.createdBy = createdBy; }
@author Peter-Josef Meisch @author Roman Puchkovskiy
setCreatedBy
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/config/AuditingReactiveIntegrationTest.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/config/AuditingReactiveIntegrationTest.java
Apache-2.0
@Nullable public String getModifiedBy() { return modifiedBy; }
@author Peter-Josef Meisch @author Roman Puchkovskiy
getModifiedBy
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/config/AuditingReactiveIntegrationTest.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/config/AuditingReactiveIntegrationTest.java
Apache-2.0
public void setModifiedBy(@Nullable String modifiedBy) { this.modifiedBy = modifiedBy; }
@author Peter-Josef Meisch @author Roman Puchkovskiy
setModifiedBy
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/config/AuditingReactiveIntegrationTest.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/config/AuditingReactiveIntegrationTest.java
Apache-2.0
@Override public boolean isNew() { return id == null || (created == null && createdBy == null); }
@author Peter-Josef Meisch @author Roman Puchkovskiy
isNew
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/config/AuditingReactiveIntegrationTest.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/config/AuditingReactiveIntegrationTest.java
Apache-2.0
@Test // DATAES-68 public void rejectsNullAnnotationMetadata() { assertThatIllegalArgumentException().isThrownBy(() -> registrar.registerBeanDefinitions(null, registry)); }
Unit tests for {@link ElasticsearchAuditingRegistrar}. @author Oliver Gierke @author Peter-Josef Meisch
rejectsNullAnnotationMetadata
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/config/ElasticsearchAuditingRegistrarUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/config/ElasticsearchAuditingRegistrarUnitTests.java
Apache-2.0
@Test // DATAES-68 public void rejectsNullBeanDefinitionRegistry() { assertThatIllegalArgumentException().isThrownBy(() -> registrar.registerBeanDefinitions(metadata, null)); }
Unit tests for {@link ElasticsearchAuditingRegistrar}. @author Oliver Gierke @author Peter-Josef Meisch
rejectsNullBeanDefinitionRegistry
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/config/ElasticsearchAuditingRegistrarUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/config/ElasticsearchAuditingRegistrarUnitTests.java
Apache-2.0
@Test // DATAES-504 public void usesConfigClassPackageAsBaseMappingPackage() throws ClassNotFoundException { ElasticsearchConfigurationSupport configuration = new StubConfig(); assertThat(configuration.getMappingBasePackages()).contains(StubConfig.class.getPackage().getName()); assertThat(configuration.getIniti...
Unit tests for {@link ElasticsearchConfigurationSupport}. @author Christoph Strobl @author Peter-Josef Meisch
usesConfigClassPackageAsBaseMappingPackage
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/config/ElasticsearchConfigurationSupportUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/config/ElasticsearchConfigurationSupportUnitTests.java
Apache-2.0
@Test // DATAES-504 public void doesNotScanOnEmptyBasePackage() throws ClassNotFoundException { ElasticsearchConfigurationSupport configuration = new StubConfig() { @Override protected Collection<String> getMappingBasePackages() { return Collections.emptySet(); } }; assertThat(configuration.getIni...
Unit tests for {@link ElasticsearchConfigurationSupport}. @author Christoph Strobl @author Peter-Josef Meisch
doesNotScanOnEmptyBasePackage
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/config/ElasticsearchConfigurationSupportUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/config/ElasticsearchConfigurationSupportUnitTests.java
Apache-2.0
@Override protected Collection<String> getMappingBasePackages() { return Collections.emptySet(); }
Unit tests for {@link ElasticsearchConfigurationSupport}. @author Christoph Strobl @author Peter-Josef Meisch
getMappingBasePackages
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/config/ElasticsearchConfigurationSupportUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/config/ElasticsearchConfigurationSupportUnitTests.java
Apache-2.0
@Test // DATAES-504 public void containsMappingContext() { AbstractApplicationContext context = new AnnotationConfigApplicationContext(StubConfig.class); assertThat(context.getBean(SimpleElasticsearchMappingContext.class)).isNotNull(); }
Unit tests for {@link ElasticsearchConfigurationSupport}. @author Christoph Strobl @author Peter-Josef Meisch
containsMappingContext
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/config/ElasticsearchConfigurationSupportUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/config/ElasticsearchConfigurationSupportUnitTests.java
Apache-2.0
@Test // DATAES-504 public void containsElasticsearchConverter() { AbstractApplicationContext context = new AnnotationConfigApplicationContext(StubConfig.class); assertThat(context.getBean(ElasticsearchConverter.class)).isNotNull(); }
Unit tests for {@link ElasticsearchConfigurationSupport}. @author Christoph Strobl @author Peter-Josef Meisch
containsElasticsearchConverter
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/config/ElasticsearchConfigurationSupportUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/config/ElasticsearchConfigurationSupportUnitTests.java
Apache-2.0
@Override public ClientConfiguration clientConfiguration() { return ClientConfiguration.builder() // .connectedTo("localhost:9200") // .build(); }
Tests for {@link ElasticsearchConfiguration}. @author Peter-Josef Meisch @since 4.4
clientConfiguration
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/config/configuration/ElasticsearchConfigurationELCTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/config/configuration/ElasticsearchConfigurationELCTests.java
Apache-2.0
@Test public void providesRequiredBeans() { assertThat(restClient).isNotNull(); assertThat(elasticsearchClient).isNotNull(); assertThat(elasticsearchOperations).isNotNull(); assertThat(repository).isNotNull(); }
Tests for {@link ElasticsearchConfiguration}. @author Peter-Josef Meisch @since 4.4
providesRequiredBeans
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/config/configuration/ElasticsearchConfigurationELCTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/config/configuration/ElasticsearchConfigurationELCTests.java
Apache-2.0
@Test public void shouldCreateRepository() { assertThat(context.getBean(CreateIndexFalseRepository.class)).isInstanceOf(CreateIndexFalseRepository.class); }
@author Rizwan Idrees @author Mohsin Husen @author Don Wellington @author Peter-Josef Meisch
shouldCreateRepository
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/config/namespace/ElasticsearchNamespaceHandlerTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/config/namespace/ElasticsearchNamespaceHandlerTests.java
Apache-2.0
@Test public void shouldCreateElasticsearchClient() { assertThat(context.getBean(ElasticsearchClientFactoryBean.class)).isNotNull(); assertThat(context.getBean(ElasticsearchClientFactoryBean.class)) .isInstanceOf(ElasticsearchClientFactoryBean.class); }
@author Rizwan Idrees @author Mohsin Husen @author Don Wellington @author Peter-Josef Meisch
shouldCreateElasticsearchClient
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/config/namespace/ElasticsearchNamespaceHandlerTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/config/namespace/ElasticsearchNamespaceHandlerTests.java
Apache-2.0
@BeforeEach void setUp() { indexNameProvider.increment(); operations.indexOps(SampleEntity.class).delete(); }
@author Kevin Leturc @author Peter-Josef Meisch
setUp
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/config/nested/EnableNestedRepositoriesIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/config/nested/EnableNestedRepositoriesIntegrationTests.java
Apache-2.0
@Test @Order(java.lang.Integer.MAX_VALUE) void cleanup() { operations.indexOps(IndexCoordinates.of(indexNameProvider.getPrefix() + "*")).delete(); }
@author Kevin Leturc @author Peter-Josef Meisch
cleanup
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/config/nested/EnableNestedRepositoriesIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/config/nested/EnableNestedRepositoriesIntegrationTests.java
Apache-2.0
@Test public void hasNestedRepository() { assertThat(nestedRepository).isNotNull(); }
@author Kevin Leturc @author Peter-Josef Meisch
hasNestedRepository
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/config/nested/EnableNestedRepositoriesIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/config/nested/EnableNestedRepositoriesIntegrationTests.java
Apache-2.0