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 setField4(@Nullable LocalDateTime field4) { this.field4 = field4; }
@author Stuart Stevenson @author Jakub Vavrik @author Mohsin Husen @author Keivn Leturc @author Nordine Bittich @author Don Wellington @author Sascha Woo @author Peter-Josef Meisch @author Xiao Yu @author Roman Puchkovskiy @author Brian Kimmig @author Morgan Lutz @author Haibo Liu @author Andriy Redko
setField4
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/index/MappingBuilderUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/index/MappingBuilderUnitTests.java
Apache-2.0
@Nullable public LocalDateTime getField5() { return field5; }
@author Stuart Stevenson @author Jakub Vavrik @author Mohsin Husen @author Keivn Leturc @author Nordine Bittich @author Don Wellington @author Sascha Woo @author Peter-Josef Meisch @author Xiao Yu @author Roman Puchkovskiy @author Brian Kimmig @author Morgan Lutz @author Haibo Liu @author Andriy Redko
getField5
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/index/MappingBuilderUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/index/MappingBuilderUnitTests.java
Apache-2.0
public void setField5(@Nullable LocalDateTime field5) { this.field5 = field5; }
@author Stuart Stevenson @author Jakub Vavrik @author Mohsin Husen @author Keivn Leturc @author Nordine Bittich @author Don Wellington @author Sascha Woo @author Peter-Josef Meisch @author Xiao Yu @author Roman Puchkovskiy @author Brian Kimmig @author Morgan Lutz @author Haibo Liu @author Andriy Redko
setField5
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/index/MappingBuilderUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/index/MappingBuilderUnitTests.java
Apache-2.0
@Nullable public String getId() { return id; }
@author Stuart Stevenson @author Jakub Vavrik @author Mohsin Husen @author Keivn Leturc @author Nordine Bittich @author Don Wellington @author Sascha Woo @author Peter-Josef Meisch @author Xiao Yu @author Roman Puchkovskiy @author Brian Kimmig @author Morgan Lutz @author Haibo Liu @author Andriy Redko
getId
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/index/MappingBuilderUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/index/MappingBuilderUnitTests.java
Apache-2.0
public void setId(@Nullable String id) { this.id = id; }
@author Stuart Stevenson @author Jakub Vavrik @author Mohsin Husen @author Keivn Leturc @author Nordine Bittich @author Don Wellington @author Sascha Woo @author Peter-Josef Meisch @author Xiao Yu @author Roman Puchkovskiy @author Brian Kimmig @author Morgan Lutz @author Haibo Liu @author Andriy Redko
setId
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/index/MappingBuilderUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/index/MappingBuilderUnitTests.java
Apache-2.0
@Nullable public Range<LocalDateTime> getField2() { return field2; }
@author Stuart Stevenson @author Jakub Vavrik @author Mohsin Husen @author Keivn Leturc @author Nordine Bittich @author Don Wellington @author Sascha Woo @author Peter-Josef Meisch @author Xiao Yu @author Roman Puchkovskiy @author Brian Kimmig @author Morgan Lutz @author Haibo Liu @author Andriy Redko
getField2
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/index/MappingBuilderUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/index/MappingBuilderUnitTests.java
Apache-2.0
public void setField2(@Nullable Range<LocalDateTime> field2) { this.field2 = field2; }
@author Stuart Stevenson @author Jakub Vavrik @author Mohsin Husen @author Keivn Leturc @author Nordine Bittich @author Don Wellington @author Sascha Woo @author Peter-Josef Meisch @author Xiao Yu @author Roman Puchkovskiy @author Brian Kimmig @author Morgan Lutz @author Haibo Liu @author Andriy Redko
setField2
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/index/MappingBuilderUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/index/MappingBuilderUnitTests.java
Apache-2.0
@Test // DATAES-621 public void shouldCreateParametersForFieldAnnotation() { Annotation annotation = entity.getRequiredPersistentProperty("field").findAnnotation(Field.class); MappingParameters mappingParameters = MappingParameters.from(annotation); assertThat(mappingParameters).isNotNull(); }
@author Peter-Josef Meisch @author Brian Kimmig @author Morgan Lutz
shouldCreateParametersForFieldAnnotation
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/index/MappingParametersTest.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/index/MappingParametersTest.java
Apache-2.0
@Test // DATAES-621 public void shouldCreateParametersForInnerFieldAnnotation() { MultiField multiField = entity.getRequiredPersistentProperty("mainField").findAnnotation(MultiField.class); InnerField innerField = multiField.otherFields()[0]; MappingParameters mappingParameters = MappingParameters.from(innerFie...
@author Peter-Josef Meisch @author Brian Kimmig @author Morgan Lutz
shouldCreateParametersForInnerFieldAnnotation
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/index/MappingParametersTest.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/index/MappingParametersTest.java
Apache-2.0
@Test // DATAES-621 public void shouldNotAllowDocValueFalseOnFieldTypeText() { Annotation annotation = entity.getRequiredPersistentProperty("docValuesText").findAnnotation(Field.class); assertThatThrownBy(() -> MappingParameters.from(annotation)).isInstanceOf(IllegalArgumentException.class); }
@author Peter-Josef Meisch @author Brian Kimmig @author Morgan Lutz
shouldNotAllowDocValueFalseOnFieldTypeText
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/index/MappingParametersTest.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/index/MappingParametersTest.java
Apache-2.0
@Test // DATAES-621 public void shouldNotAllowDocValuesFalseOnFieldTypeNested() { Annotation annotation = entity.getRequiredPersistentProperty("docValuesNested").findAnnotation(Field.class); assertThatThrownBy(() -> MappingParameters.from(annotation)).isInstanceOf(IllegalArgumentException.class); }
@author Peter-Josef Meisch @author Brian Kimmig @author Morgan Lutz
shouldNotAllowDocValuesFalseOnFieldTypeNested
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/index/MappingParametersTest.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/index/MappingParametersTest.java
Apache-2.0
@Test // DATAES-943 @DisplayName("should allow enabled false only on object fields") void shouldAllowEnabledFalseOnlyOnObjectFields() { ElasticsearchPersistentEntity<?> failEntity = elasticsearchConverter.get().getMappingContext() .getRequiredPersistentEntity(InvalidEnabledFieldClass.class); Annotation annota...
@author Peter-Josef Meisch @author Brian Kimmig @author Morgan Lutz
shouldAllowEnabledFalseOnlyOnObjectFields
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/index/MappingParametersTest.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/index/MappingParametersTest.java
Apache-2.0
@Test // #1700 @DisplayName("should not allow dims length greater than 4096 for dense_vector type") void shouldNotAllowDimsLengthGreaterThan4096ForDenseVectorType() { ElasticsearchPersistentEntity<?> failEntity = elasticsearchConverter.get().getMappingContext() .getRequiredPersistentEntity(DenseVectorInvalidDim...
@author Peter-Josef Meisch @author Brian Kimmig @author Morgan Lutz
shouldNotAllowDimsLengthGreaterThan4096ForDenseVectorType
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/index/MappingParametersTest.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/index/MappingParametersTest.java
Apache-2.0
@Test // #1700 @DisplayName("should require dims parameter for dense_vector type") void shouldRequireDimsParameterForDenseVectorType() { ElasticsearchPersistentEntity<?> failEntity = elasticsearchConverter.get().getMappingContext() .getRequiredPersistentEntity(DenseVectorMissingDimsClass.class); Annotation an...
@author Peter-Josef Meisch @author Brian Kimmig @author Morgan Lutz
shouldRequireDimsParameterForDenseVectorType
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/index/MappingParametersTest.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/index/MappingParametersTest.java
Apache-2.0
@Test // DATAES-568 public void testCorrectDynamicTemplatesMappings() throws JSONException { String mapping = getMappingBuilder().buildPropertyMapping(SampleDynamicTemplatesEntity.class); String EXPECTED_MAPPING_ONE = "{\"dynamic_templates\":" + "[{\"with_custom_analyzer\":{" + "\"mapping\":{\"type\":\"strin...
Dynamic templates tests @author Petr Kukral @author Peter-Josef Meisch
testCorrectDynamicTemplatesMappings
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/index/SimpleDynamicTemplatesMappingTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/index/SimpleDynamicTemplatesMappingTests.java
Apache-2.0
@Test // DATAES-568 public void testCorrectDynamicTemplatesMappingsTwo() throws JSONException { String mapping = getMappingBuilder().buildPropertyMapping(SampleDynamicTemplatesEntityTwo.class); String EXPECTED_MAPPING_TWO = "{\"dynamic_templates\":" + "[{\"with_custom_analyzer\":{" + "\"mapping\":{\"type\":\"...
Dynamic templates tests @author Petr Kukral @author Peter-Josef Meisch
testCorrectDynamicTemplatesMappingsTwo
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/index/SimpleDynamicTemplatesMappingTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/index/SimpleDynamicTemplatesMappingTests.java
Apache-2.0
@Test // DATAES-568, DATAES-828 public void testCorrectDateMappings() throws JSONException { String mapping = getMappingBuilder().buildPropertyMapping(SampleDateMappingEntity.class); assertEquals(EXPECTED_MAPPING, mapping, false); }
@author Jakub Vavrik @author Mohsin Husen @author Don Wellington @author Peter-Josef Meisch @author Sascha Woo
testCorrectDateMappings
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/index/SimpleElasticsearchDateMappingTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/index/SimpleElasticsearchDateMappingTests.java
Apache-2.0
@Nullable public String getId() { return id; }
@author Jakub Vavrik @author Mohsin Husen @author Don Wellington @author Peter-Josef Meisch @author Sascha Woo
getId
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/index/SimpleElasticsearchDateMappingTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/index/SimpleElasticsearchDateMappingTests.java
Apache-2.0
public void setId(@Nullable String id) { this.id = id; }
@author Jakub Vavrik @author Mohsin Husen @author Don Wellington @author Peter-Josef Meisch @author Sascha Woo
setId
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/index/SimpleElasticsearchDateMappingTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/index/SimpleElasticsearchDateMappingTests.java
Apache-2.0
@Nullable public String getMessage() { return message; }
@author Jakub Vavrik @author Mohsin Husen @author Don Wellington @author Peter-Josef Meisch @author Sascha Woo
getMessage
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/index/SimpleElasticsearchDateMappingTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/index/SimpleElasticsearchDateMappingTests.java
Apache-2.0
public void setMessage(@Nullable String message) { this.message = message; }
@author Jakub Vavrik @author Mohsin Husen @author Don Wellington @author Peter-Josef Meisch @author Sascha Woo
setMessage
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/index/SimpleElasticsearchDateMappingTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/index/SimpleElasticsearchDateMappingTests.java
Apache-2.0
@Nullable public LocalDateTime getCustomFormatDate() { return customFormatDate; }
@author Jakub Vavrik @author Mohsin Husen @author Don Wellington @author Peter-Josef Meisch @author Sascha Woo
getCustomFormatDate
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/index/SimpleElasticsearchDateMappingTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/index/SimpleElasticsearchDateMappingTests.java
Apache-2.0
public void setCustomFormatDate(@Nullable LocalDateTime customFormatDate) { this.customFormatDate = customFormatDate; }
@author Jakub Vavrik @author Mohsin Husen @author Don Wellington @author Peter-Josef Meisch @author Sascha Woo
setCustomFormatDate
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/index/SimpleElasticsearchDateMappingTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/index/SimpleElasticsearchDateMappingTests.java
Apache-2.0
@Nullable public LocalDateTime getBasicFormatDate() { return basicFormatDate; }
@author Jakub Vavrik @author Mohsin Husen @author Don Wellington @author Peter-Josef Meisch @author Sascha Woo
getBasicFormatDate
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/index/SimpleElasticsearchDateMappingTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/index/SimpleElasticsearchDateMappingTests.java
Apache-2.0
public void setBasicFormatDate(@Nullable LocalDateTime basicFormatDate) { this.basicFormatDate = basicFormatDate; }
@author Jakub Vavrik @author Mohsin Husen @author Don Wellington @author Peter-Josef Meisch @author Sascha Woo
setBasicFormatDate
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/index/SimpleElasticsearchDateMappingTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/index/SimpleElasticsearchDateMappingTests.java
Apache-2.0
@BeforeEach void setUp() { indexNameProvider.increment(); IndexOperations indexOps = operations.indexOps(Entity.class); indexOps.createWithMapping(); }
Test that a whole entity can be converted using custom conversions @author Peter-Josef Meisch
setUp
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/mapping/EntityCustomConversionIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/mapping/EntityCustomConversionIntegrationTests.java
Apache-2.0
@Test @Order(java.lang.Integer.MAX_VALUE) void cleanup() { operations.indexOps(IndexCoordinates.of(indexNameProvider.getPrefix() + "*")).delete(); }
Test that a whole entity can be converted using custom conversions @author Peter-Josef Meisch
cleanup
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/mapping/EntityCustomConversionIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/mapping/EntityCustomConversionIntegrationTests.java
Apache-2.0
@Test // #1667 @DisplayName("should use CustomConversions on entity") void shouldUseCustomConversionsOnEntity() { Entity entity = new Entity(); entity.setValue("hello"); // entity.setLocation(GeoJsonPoint.of(8.0, 42.7)); org.springframework.data.elasticsearch.core.document.Document document = org.springfram...
Test that a whole entity can be converted using custom conversions @author Peter-Josef Meisch
shouldUseCustomConversionsOnEntity
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/mapping/EntityCustomConversionIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/mapping/EntityCustomConversionIntegrationTests.java
Apache-2.0
@Test // #1667 @DisplayName("should store and load entity from Elasticsearch") void shouldStoreAndLoadEntityFromElasticsearch() { Entity entity = new Entity(); entity.setValue("hello"); // entity.setLocation(GeoJsonPoint.of(8.0, 42.7)); Entity savedEntity = operations.save(entity); SearchHits<Entity> sea...
Test that a whole entity can be converted using custom conversions @author Peter-Josef Meisch
shouldStoreAndLoadEntityFromElasticsearch
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/mapping/EntityCustomConversionIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/mapping/EntityCustomConversionIntegrationTests.java
Apache-2.0
@Nullable public String getValue() { return value; }
Test that a whole entity can be converted using custom conversions @author Peter-Josef Meisch
getValue
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/mapping/EntityCustomConversionIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/mapping/EntityCustomConversionIntegrationTests.java
Apache-2.0
public void setValue(@Nullable String value) { this.value = value; }
Test that a whole entity can be converted using custom conversions @author Peter-Josef Meisch
setValue
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/mapping/EntityCustomConversionIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/mapping/EntityCustomConversionIntegrationTests.java
Apache-2.0
@Nullable public GeoJsonPoint getLocation() { return location; }
Test that a whole entity can be converted using custom conversions @author Peter-Josef Meisch
getLocation
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/mapping/EntityCustomConversionIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/mapping/EntityCustomConversionIntegrationTests.java
Apache-2.0
public void setLocation(@Nullable GeoJsonPoint location) { this.location = location; }
Test that a whole entity can be converted using custom conversions @author Peter-Josef Meisch
setLocation
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/mapping/EntityCustomConversionIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/mapping/EntityCustomConversionIntegrationTests.java
Apache-2.0
@Override public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof Entity entity)) return false; if (!Objects.equals(value, entity.value)) return false; return Objects.equals(location, entity.location); }
Test that a whole entity can be converted using custom conversions @author Peter-Josef Meisch
equals
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/mapping/EntityCustomConversionIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/mapping/EntityCustomConversionIntegrationTests.java
Apache-2.0
@Override public int hashCode() { int result = value != null ? value.hashCode() : 0; result = 31 * result + (location != null ? location.hashCode() : 0); return result; }
Test that a whole entity can be converted using custom conversions @author Peter-Josef Meisch
hashCode
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/mapping/EntityCustomConversionIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/mapping/EntityCustomConversionIntegrationTests.java
Apache-2.0
@Override public Map<String, Object> convert(Entity source) { LinkedHashMap<String, Object> target = new LinkedHashMap<>(); target.put("the_value", source.getValue()); target.put("the_lat", "" + source.getLocation().getY()); target.put("the_lon", "" + source.getLocation().getX()); return target; }
Test that a whole entity can be converted using custom conversions @author Peter-Josef Meisch
convert
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/mapping/EntityCustomConversionIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/mapping/EntityCustomConversionIntegrationTests.java
Apache-2.0
@Override public Entity convert(Map<String, Object> source) { Entity entity = new Entity(); entity.setValue((String) source.get("the_value")); entity.setLocation(GeoJsonPoint.of( // Double.parseDouble((String) (source.get("the_lon"))), // Double.parseDouble((String) (source.get("the_lat"))) // )...
Test that a whole entity can be converted using custom conversions @author Peter-Josef Meisch
convert
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/mapping/EntityCustomConversionIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/mapping/EntityCustomConversionIntegrationTests.java
Apache-2.0
@Test public void shouldThrowExceptionGivenVersionPropertyIsNotLong() { TypeInformation<EntityWithWrongVersionType> typeInformation = TypeInformation .of(EntityWithWrongVersionType.class); SimpleElasticsearchPersistentEntity<EntityWithWrongVersionType> entity = new SimpleElasticsearchPersistentEntity<>( ...
@author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Oliver Gierke @author Peter-Josef Meisch @author Roman Puchkovskiy
shouldThrowExceptionGivenVersionPropertyIsNotLong
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentEntityTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentEntityTests.java
Apache-2.0
@Test public void shouldThrowExceptionGivenMultipleVersionPropertiesArePresent() { TypeInformation<EntityWithMultipleVersionField> typeInformation = TypeInformation .of(EntityWithMultipleVersionField.class); SimpleElasticsearchPersistentEntity<EntityWithMultipleVersionField> entity = new SimpleElasticsear...
@author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Oliver Gierke @author Peter-Josef Meisch @author Roman Puchkovskiy
shouldThrowExceptionGivenMultipleVersionPropertiesArePresent
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentEntityTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentEntityTests.java
Apache-2.0
@Test void shouldFindPropertiesByMappedName() { SimpleElasticsearchMappingContext context = new SimpleElasticsearchMappingContext(); SimpleElasticsearchPersistentEntity<?> persistentEntity = context .getRequiredPersistentEntity(FieldNameEntity.class); ElasticsearchPersistentProperty persistentProperty...
@author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Oliver Gierke @author Peter-Josef Meisch @author Roman Puchkovskiy
shouldFindPropertiesByMappedName
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentEntityTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentEntityTests.java
Apache-2.0
@Test // DATAES-799 void shouldReportThatThereIsNoSeqNoPrimaryTermPropertyWhenThereIsNoSuchProperty() { TypeInformation<EntityWithoutSeqNoPrimaryTerm> typeInformation = TypeInformation .of(EntityWithoutSeqNoPrimaryTerm.class); SimpleElasticsearchPersistentEntity<EntityWithoutSeqNoPrimaryTerm> entity = ne...
@author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Oliver Gierke @author Peter-Josef Meisch @author Roman Puchkovskiy
shouldReportThatThereIsNoSeqNoPrimaryTermPropertyWhenThereIsNoSuchProperty
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentEntityTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentEntityTests.java
Apache-2.0
@Test // DATAES-799 void shouldReportThatThereIsSeqNoPrimaryTermPropertyWhenThereIsSuchProperty() { TypeInformation<EntityWithSeqNoPrimaryTerm> typeInformation = TypeInformation .of(EntityWithSeqNoPrimaryTerm.class); SimpleElasticsearchPersistentEntity<EntityWithSeqNoPrimaryTerm> entity = new SimpleElast...
@author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Oliver Gierke @author Peter-Josef Meisch @author Roman Puchkovskiy
shouldReportThatThereIsSeqNoPrimaryTermPropertyWhenThereIsSuchProperty
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentEntityTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentEntityTests.java
Apache-2.0
@Test // DATAES-799 void shouldReturnSeqNoPrimaryTermPropertyWhenThereIsSuchProperty() { TypeInformation<EntityWithSeqNoPrimaryTerm> typeInformation = TypeInformation .of(EntityWithSeqNoPrimaryTerm.class); SimpleElasticsearchPersistentEntity<EntityWithSeqNoPrimaryTerm> entity = new SimpleElasticsearchPe...
@author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Oliver Gierke @author Peter-Josef Meisch @author Roman Puchkovskiy
shouldReturnSeqNoPrimaryTermPropertyWhenThereIsSuchProperty
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentEntityTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentEntityTests.java
Apache-2.0
@Test // DATAES-799 void shouldNotAllowMoreThanOneSeqNoPrimaryTermProperties() { TypeInformation<EntityWithSeqNoPrimaryTerm> typeInformation = TypeInformation .of(EntityWithSeqNoPrimaryTerm.class); SimpleElasticsearchPersistentEntity<EntityWithSeqNoPrimaryTerm> entity = new SimpleElasticsearchPersistentE...
@author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Oliver Gierke @author Peter-Josef Meisch @author Roman Puchkovskiy
shouldNotAllowMoreThanOneSeqNoPrimaryTermProperties
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentEntityTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentEntityTests.java
Apache-2.0
@Test // #1680 @DisplayName("should allow fields with id property names") void shouldAllowFieldsWithIdPropertyNames() { elasticsearchConverter.get().getMappingContext().getRequiredPersistentEntity(EntityWithIdNameFields.class); }
@author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Oliver Gierke @author Peter-Josef Meisch @author Roman Puchkovskiy
shouldAllowFieldsWithIdPropertyNames
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentEntityTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentEntityTests.java
Apache-2.0
@Test // #1719 @DisplayName("should error if index sorting parameters do not have the same number of arguments") void shouldErrorIfIndexSortingParametersDoNotHaveTheSameNumberOfArguments() { assertThatThrownBy(() -> elasticsearchConverter.get().getMappingContext() .getRequiredPersistentEntity(SettingsInval...
@author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Oliver Gierke @author Peter-Josef Meisch @author Roman Puchkovskiy
shouldErrorIfIndexSortingParametersDoNotHaveTheSameNumberOfArguments
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentEntityTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentEntityTests.java
Apache-2.0
@Test // #1719, #2158 @DisplayName("should write sort parameters to Settings object") void shouldWriteSortParametersToSettingsObject() throws JSONException { String expected = """ { "index": { "sort": { "field": [ "second_field", "first_field" ...
@author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Oliver Gierke @author Peter-Josef Meisch @author Roman Puchkovskiy
shouldWriteSortParametersToSettingsObject
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentEntityTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentEntityTests.java
Apache-2.0
@Test // #1454 @DisplayName("should return FieldNamingStrategy from context configuration") void shouldReturnFieldNamingStrategyFromContextConfiguration() { SimpleElasticsearchMappingContext context = new SimpleElasticsearchMappingContext(); FieldNamingStrategy fieldNamingStrategy = property -> property.getN...
@author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Oliver Gierke @author Peter-Josef Meisch @author Roman Puchkovskiy
shouldReturnFieldNamingStrategyFromContextConfiguration
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentEntityTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentEntityTests.java
Apache-2.0
@Test // #1454 @DisplayName("should write type hints on default context settings") void shouldWriteTypeHintsOnDefaultContextSettings() { SimpleElasticsearchMappingContext context = new SimpleElasticsearchMappingContext(); SimpleElasticsearchPersistentEntity<?> entity = context .getRequiredPersistentEnti...
@author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Oliver Gierke @author Peter-Josef Meisch @author Roman Puchkovskiy
shouldWriteTypeHintsOnDefaultContextSettings
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentEntityTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentEntityTests.java
Apache-2.0
@Test // #1454 @DisplayName("should not write type hints when configured in context settings") void shouldNotWriteTypeHintsWhenConfiguredInContextSettings() { SimpleElasticsearchMappingContext context = new SimpleElasticsearchMappingContext(); context.setWriteTypeHints(false); SimpleElasticsearchPersisten...
@author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Oliver Gierke @author Peter-Josef Meisch @author Roman Puchkovskiy
shouldNotWriteTypeHintsWhenConfiguredInContextSettings
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentEntityTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentEntityTests.java
Apache-2.0
@Test // #1454 @DisplayName("should not write type hints when configured explicitly on entity") void shouldNotWriteTypeHintsWhenConfiguredExplicitlyOnEntity() { SimpleElasticsearchMappingContext context = new SimpleElasticsearchMappingContext(); SimpleElasticsearchPersistentEntity<?> entity = context .g...
@author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Oliver Gierke @author Peter-Josef Meisch @author Roman Puchkovskiy
shouldNotWriteTypeHintsWhenConfiguredExplicitlyOnEntity
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentEntityTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentEntityTests.java
Apache-2.0
@Test // #1454 @DisplayName("should write type hints when configured explicitly on entity and global setting is false") void shouldWriteTypeHintsWhenConfiguredExplicitlyOnEntityAndGlobalSettingIsFalse() { SimpleElasticsearchMappingContext context = new SimpleElasticsearchMappingContext(); context.setWriteTy...
@author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Oliver Gierke @author Peter-Josef Meisch @author Roman Puchkovskiy
shouldWriteTypeHintsWhenConfiguredExplicitlyOnEntityAndGlobalSettingIsFalse
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentEntityTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentEntityTests.java
Apache-2.0
private static SimpleElasticsearchPersistentProperty createProperty(SimpleElasticsearchPersistentEntity<?> entity, String fieldName) { TypeInformation<?> type = entity.getTypeInformation(); java.lang.reflect.Field field = ReflectionUtils.findField(entity.getType(), fieldName); assertThat(field).isNotNull(); ...
@author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Oliver Gierke @author Peter-Josef Meisch @author Roman Puchkovskiy
createProperty
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentEntityTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentEntityTests.java
Apache-2.0
@Nullable public String getVersion() { return version; }
@author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Oliver Gierke @author Peter-Josef Meisch @author Roman Puchkovskiy
getVersion
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentEntityTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentEntityTests.java
Apache-2.0
public void setVersion(String version) { this.version = version; }
@author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Oliver Gierke @author Peter-Josef Meisch @author Roman Puchkovskiy
setVersion
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentEntityTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentEntityTests.java
Apache-2.0
@Nullable public Long getVersion1() { return version1; }
@author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Oliver Gierke @author Peter-Josef Meisch @author Roman Puchkovskiy
getVersion1
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentEntityTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentEntityTests.java
Apache-2.0
public void setVersion1(Long version1) { this.version1 = version1; }
@author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Oliver Gierke @author Peter-Josef Meisch @author Roman Puchkovskiy
setVersion1
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentEntityTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentEntityTests.java
Apache-2.0
@Nullable public Long getVersion2() { return version2; }
@author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Oliver Gierke @author Peter-Josef Meisch @author Roman Puchkovskiy
getVersion2
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentEntityTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentEntityTests.java
Apache-2.0
public void setVersion2(Long version2) { this.version2 = version2; }
@author Rizwan Idrees @author Mohsin Husen @author Mark Paluch @author Oliver Gierke @author Peter-Josef Meisch @author Roman Puchkovskiy
setVersion2
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentEntityTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentEntityTests.java
Apache-2.0
@Test // DATAES-562 public void fieldAnnotationWithNameSetsFieldname() { SimpleElasticsearchPersistentEntity<?> persistentEntity = context .getRequiredPersistentEntity(FieldNameProperty.class); ElasticsearchPersistentProperty persistentProperty = persistentEntity.getPersistentProperty("fieldProperty"); ass...
Unit tests for {@link SimpleElasticsearchPersistentProperty}. @author Oliver Gierke @author Peter-Josef Meisch @author Roman Puchkovskiy @author Sascha Woo
fieldAnnotationWithNameSetsFieldname
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentPropertyUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentPropertyUnitTests.java
Apache-2.0
@Test // DATAES-562 public void fieldAnnotationWithValueSetsFieldname() { SimpleElasticsearchPersistentEntity<?> persistentEntity = context .getRequiredPersistentEntity(FieldValueProperty.class); ElasticsearchPersistentProperty persistentProperty = persistentEntity.getPersistentProperty("fieldProperty"); a...
Unit tests for {@link SimpleElasticsearchPersistentProperty}. @author Oliver Gierke @author Peter-Josef Meisch @author Roman Puchkovskiy @author Sascha Woo
fieldAnnotationWithValueSetsFieldname
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentPropertyUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentPropertyUnitTests.java
Apache-2.0
@Test // DATAES-896 void shouldUseNameFromMultiFieldMainField() { SimpleElasticsearchPersistentEntity<?> persistentEntity = context .getRequiredPersistentEntity(MultiFieldProperty.class); ElasticsearchPersistentProperty persistentProperty = persistentEntity.getPersistentProperty("mainfieldProperty"); assert...
Unit tests for {@link SimpleElasticsearchPersistentProperty}. @author Oliver Gierke @author Peter-Josef Meisch @author Roman Puchkovskiy @author Sascha Woo
shouldUseNameFromMultiFieldMainField
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentPropertyUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentPropertyUnitTests.java
Apache-2.0
@Test // DATAES-716, DATAES-792, DATAES-924 void shouldSetPropertyConverters() { SimpleElasticsearchPersistentEntity<?> persistentEntity = context.getRequiredPersistentEntity(DatesProperty.class); ElasticsearchPersistentProperty persistentProperty = persistentEntity.getRequiredPersistentProperty("localDate"); a...
Unit tests for {@link SimpleElasticsearchPersistentProperty}. @author Oliver Gierke @author Peter-Josef Meisch @author Roman Puchkovskiy @author Sascha Woo
shouldSetPropertyConverters
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentPropertyUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentPropertyUnitTests.java
Apache-2.0
@Test // DATAES-716 void shouldConvertFromLocalDate() { SimpleElasticsearchPersistentEntity<?> persistentEntity = context.getRequiredPersistentEntity(DatesProperty.class); ElasticsearchPersistentProperty persistentProperty = persistentEntity.getRequiredPersistentProperty("localDate"); LocalDate localDate = Local...
Unit tests for {@link SimpleElasticsearchPersistentProperty}. @author Oliver Gierke @author Peter-Josef Meisch @author Roman Puchkovskiy @author Sascha Woo
shouldConvertFromLocalDate
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentPropertyUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentPropertyUnitTests.java
Apache-2.0
@Test // DATAES-716 void shouldConvertToLocalDate() { SimpleElasticsearchPersistentEntity<?> persistentEntity = context.getRequiredPersistentEntity(DatesProperty.class); ElasticsearchPersistentProperty persistentProperty = persistentEntity.getRequiredPersistentProperty("localDate"); Object converted = persisten...
Unit tests for {@link SimpleElasticsearchPersistentProperty}. @author Oliver Gierke @author Peter-Josef Meisch @author Roman Puchkovskiy @author Sascha Woo
shouldConvertToLocalDate
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentPropertyUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentPropertyUnitTests.java
Apache-2.0
@Test // DATAES_792 void shouldConvertFromLegacyDate() { SimpleElasticsearchPersistentEntity<?> persistentEntity = context.getRequiredPersistentEntity(DatesProperty.class); ElasticsearchPersistentProperty persistentProperty = persistentEntity.getRequiredPersistentProperty("legacyDate"); GregorianCalendar calenda...
Unit tests for {@link SimpleElasticsearchPersistentProperty}. @author Oliver Gierke @author Peter-Josef Meisch @author Roman Puchkovskiy @author Sascha Woo
shouldConvertFromLegacyDate
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentPropertyUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentPropertyUnitTests.java
Apache-2.0
@Test // DATAES-792 void shouldConvertToLegacyDate() { SimpleElasticsearchPersistentEntity<?> persistentEntity = context.getRequiredPersistentEntity(DatesProperty.class); ElasticsearchPersistentProperty persistentProperty = persistentEntity.getRequiredPersistentProperty("legacyDate"); Object converted = persist...
Unit tests for {@link SimpleElasticsearchPersistentProperty}. @author Oliver Gierke @author Peter-Josef Meisch @author Roman Puchkovskiy @author Sascha Woo
shouldConvertToLegacyDate
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentPropertyUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentPropertyUnitTests.java
Apache-2.0
@Test // DATAES-799 void shouldReportSeqNoPrimaryTermPropertyWhenTheTypeIsSeqNoPrimaryTerm() { SimpleElasticsearchPersistentEntity<?> entity = context.getRequiredPersistentEntity(SeqNoPrimaryTermProperty.class); ElasticsearchPersistentProperty seqNoProperty = entity.getRequiredPersistentProperty("seqNoPrimaryTerm"...
Unit tests for {@link SimpleElasticsearchPersistentProperty}. @author Oliver Gierke @author Peter-Josef Meisch @author Roman Puchkovskiy @author Sascha Woo
shouldReportSeqNoPrimaryTermPropertyWhenTheTypeIsSeqNoPrimaryTerm
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentPropertyUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentPropertyUnitTests.java
Apache-2.0
@Test // DATAES-799 void shouldNotReportSeqNoPrimaryTermPropertyWhenTheTypeIsNotSeqNoPrimaryTerm() { SimpleElasticsearchPersistentEntity<?> entity = context.getRequiredPersistentEntity(SeqNoPrimaryTermProperty.class); ElasticsearchPersistentProperty stringProperty = entity.getRequiredPersistentProperty("string"); ...
Unit tests for {@link SimpleElasticsearchPersistentProperty}. @author Oliver Gierke @author Peter-Josef Meisch @author Roman Puchkovskiy @author Sascha Woo
shouldNotReportSeqNoPrimaryTermPropertyWhenTheTypeIsNotSeqNoPrimaryTerm
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentPropertyUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentPropertyUnitTests.java
Apache-2.0
@Test // DATAES-799 void seqNoPrimaryTermPropertyShouldNotBeWritable() { SimpleElasticsearchPersistentEntity<?> entity = context.getRequiredPersistentEntity(SeqNoPrimaryTermProperty.class); ElasticsearchPersistentProperty seqNoProperty = entity.getRequiredPersistentProperty("seqNoPrimaryTerm"); assertThat(seqNo...
Unit tests for {@link SimpleElasticsearchPersistentProperty}. @author Oliver Gierke @author Peter-Josef Meisch @author Roman Puchkovskiy @author Sascha Woo
seqNoPrimaryTermPropertyShouldNotBeWritable
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentPropertyUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentPropertyUnitTests.java
Apache-2.0
@Test // DATAES-924 @DisplayName("should require pattern for custom date format") void shouldRequirePatternForCustomDateFormat() { assertThatExceptionOfType(MappingException.class) // .isThrownBy(() -> context.getRequiredPersistentEntity(DateFieldWithCustomFormatAndNoPattern.class)) // .withMessageContainin...
Unit tests for {@link SimpleElasticsearchPersistentProperty}. @author Oliver Gierke @author Peter-Josef Meisch @author Roman Puchkovskiy @author Sascha Woo
shouldRequirePatternForCustomDateFormat
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentPropertyUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentPropertyUnitTests.java
Apache-2.0
@Test // #1565 @DisplayName("should use default FieldNamingStrategy") void shouldUseDefaultFieldNamingStrategy() { SimpleElasticsearchPersistentEntity.ContextConfiguration contextConfiguration = new SimpleElasticsearchPersistentEntity.ContextConfiguration( PropertyNameFieldNamingStrategy.INSTANCE, true); El...
Unit tests for {@link SimpleElasticsearchPersistentProperty}. @author Oliver Gierke @author Peter-Josef Meisch @author Roman Puchkovskiy @author Sascha Woo
shouldUseDefaultFieldNamingStrategy
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentPropertyUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentPropertyUnitTests.java
Apache-2.0
@Test // #1565 @DisplayName("should use custom FieldNamingStrategy") void shouldUseCustomFieldNamingStrategy() { FieldNamingStrategy fieldNamingStrategy = new SnakeCaseFieldNamingStrategy(); SimpleElasticsearchPersistentEntity.ContextConfiguration contextConfiguration = new SimpleElasticsearchPersistentEntity.Co...
Unit tests for {@link SimpleElasticsearchPersistentProperty}. @author Oliver Gierke @author Peter-Josef Meisch @author Roman Puchkovskiy @author Sascha Woo
shouldUseCustomFieldNamingStrategy
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentPropertyUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentPropertyUnitTests.java
Apache-2.0
@Test // #1945 @DisplayName("should use ValueConverter annotation") void shouldUseValueConverterAnnotation() { SimpleElasticsearchPersistentEntity<?> persistentEntity = context .getRequiredPersistentEntity(EntityWithCustomValueConverters.class); assertThat( persistentEntity.getRequiredPersistentProperty...
Unit tests for {@link SimpleElasticsearchPersistentProperty}. @author Oliver Gierke @author Peter-Josef Meisch @author Roman Puchkovskiy @author Sascha Woo
shouldUseValueConverterAnnotation
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentPropertyUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentPropertyUnitTests.java
Apache-2.0
@Nullable public SeqNoPrimaryTerm getSeqNoPrimaryTerm() { return seqNoPrimaryTerm; }
Unit tests for {@link SimpleElasticsearchPersistentProperty}. @author Oliver Gierke @author Peter-Josef Meisch @author Roman Puchkovskiy @author Sascha Woo
getSeqNoPrimaryTerm
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentPropertyUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentPropertyUnitTests.java
Apache-2.0
public void setSeqNoPrimaryTerm(@Nullable SeqNoPrimaryTerm seqNoPrimaryTerm) { this.seqNoPrimaryTerm = seqNoPrimaryTerm; }
Unit tests for {@link SimpleElasticsearchPersistentProperty}. @author Oliver Gierke @author Peter-Josef Meisch @author Roman Puchkovskiy @author Sascha Woo
setSeqNoPrimaryTerm
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentPropertyUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentPropertyUnitTests.java
Apache-2.0
@Nullable public String getString() { return string; }
Unit tests for {@link SimpleElasticsearchPersistentProperty}. @author Oliver Gierke @author Peter-Josef Meisch @author Roman Puchkovskiy @author Sascha Woo
getString
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentPropertyUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentPropertyUnitTests.java
Apache-2.0
public void setString(@Nullable String string) { this.string = string; }
Unit tests for {@link SimpleElasticsearchPersistentProperty}. @author Oliver Gierke @author Peter-Josef Meisch @author Roman Puchkovskiy @author Sascha Woo
setString
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentPropertyUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentPropertyUnitTests.java
Apache-2.0
@Nullable public LocalDateTime getDatetime() { return datetime; }
Unit tests for {@link SimpleElasticsearchPersistentProperty}. @author Oliver Gierke @author Peter-Josef Meisch @author Roman Puchkovskiy @author Sascha Woo
getDatetime
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentPropertyUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentPropertyUnitTests.java
Apache-2.0
public void setDatetime(@Nullable LocalDateTime datetime) { this.datetime = datetime; }
Unit tests for {@link SimpleElasticsearchPersistentProperty}. @author Oliver Gierke @author Peter-Josef Meisch @author Roman Puchkovskiy @author Sascha Woo
setDatetime
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentPropertyUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentPropertyUnitTests.java
Apache-2.0
@Nullable public String getWithoutCustomFieldName() { return withoutCustomFieldName; }
Unit tests for {@link SimpleElasticsearchPersistentProperty}. @author Oliver Gierke @author Peter-Josef Meisch @author Roman Puchkovskiy @author Sascha Woo
getWithoutCustomFieldName
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentPropertyUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentPropertyUnitTests.java
Apache-2.0
public void setWithoutCustomFieldName(@Nullable String withoutCustomFieldName) { this.withoutCustomFieldName = withoutCustomFieldName; }
Unit tests for {@link SimpleElasticsearchPersistentProperty}. @author Oliver Gierke @author Peter-Josef Meisch @author Roman Puchkovskiy @author Sascha Woo
setWithoutCustomFieldName
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentPropertyUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentPropertyUnitTests.java
Apache-2.0
public String getWithCustomFieldName() { return withCustomFieldName; }
Unit tests for {@link SimpleElasticsearchPersistentProperty}. @author Oliver Gierke @author Peter-Josef Meisch @author Roman Puchkovskiy @author Sascha Woo
getWithCustomFieldName
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentPropertyUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentPropertyUnitTests.java
Apache-2.0
public void setWithCustomFieldName(String withCustomFieldName) { this.withCustomFieldName = withCustomFieldName; }
Unit tests for {@link SimpleElasticsearchPersistentProperty}. @author Oliver Gierke @author Peter-Josef Meisch @author Roman Puchkovskiy @author Sascha Woo
setWithCustomFieldName
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentPropertyUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentPropertyUnitTests.java
Apache-2.0
@Override public Object write(Object value) { return value; }
Unit tests for {@link SimpleElasticsearchPersistentProperty}. @author Oliver Gierke @author Peter-Josef Meisch @author Roman Puchkovskiy @author Sascha Woo
write
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentPropertyUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentPropertyUnitTests.java
Apache-2.0
@Override public Object read(Object value) { return value; }
Unit tests for {@link SimpleElasticsearchPersistentProperty}. @author Oliver Gierke @author Peter-Josef Meisch @author Roman Puchkovskiy @author Sascha Woo
read
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentPropertyUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentPropertyUnitTests.java
Apache-2.0
@Override public Object write(Object value) { return value; }
Unit tests for {@link SimpleElasticsearchPersistentProperty}. @author Oliver Gierke @author Peter-Josef Meisch @author Roman Puchkovskiy @author Sascha Woo
write
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentPropertyUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentPropertyUnitTests.java
Apache-2.0
@Override public Object read(Object value) { return value; }
Unit tests for {@link SimpleElasticsearchPersistentProperty}. @author Oliver Gierke @author Peter-Josef Meisch @author Roman Puchkovskiy @author Sascha Woo
read
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentPropertyUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentPropertyUnitTests.java
Apache-2.0
@Override public Object write(Object value) { return value; }
Unit tests for {@link SimpleElasticsearchPersistentProperty}. @author Oliver Gierke @author Peter-Josef Meisch @author Roman Puchkovskiy @author Sascha Woo
write
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentPropertyUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentPropertyUnitTests.java
Apache-2.0
@Override public Object read(Object value) { return value; }
Unit tests for {@link SimpleElasticsearchPersistentProperty}. @author Oliver Gierke @author Peter-Josef Meisch @author Roman Puchkovskiy @author Sascha Woo
read
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentPropertyUnitTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentPropertyUnitTests.java
Apache-2.0
@BeforeEach public void before() { indexNameProvider.increment(); operations.indexOps(SampleEntity.class).createWithMapping(); }
@author Rizwan Idrees @author Mohsin Husen @author Peter-Josef Meisch @author James Bodkin
before
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/query/CriteriaQueryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/query/CriteriaQueryIntegrationTests.java
Apache-2.0
@Test @Order(java.lang.Integer.MAX_VALUE) void cleanup() { operations.indexOps(IndexCoordinates.of(indexNameProvider.getPrefix() + "*")).delete(); }
@author Rizwan Idrees @author Mohsin Husen @author Peter-Josef Meisch @author James Bodkin
cleanup
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/query/CriteriaQueryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/query/CriteriaQueryIntegrationTests.java
Apache-2.0
@Test // DATAES-706 public void shouldPerformAndOperationOnCriteriaEntries() { SampleEntity sampleEntity1 = new SampleEntity(); sampleEntity1.setId(nextIdAsString()); sampleEntity1.setMessage("some test message"); operations.save(sampleEntity1); SampleEntity sampleEntity2 = new SampleEntity(); sampleEntit...
@author Rizwan Idrees @author Mohsin Husen @author Peter-Josef Meisch @author James Bodkin
shouldPerformAndOperationOnCriteriaEntries
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/query/CriteriaQueryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/query/CriteriaQueryIntegrationTests.java
Apache-2.0
@Test // DATAES-706 public void shouldPerformOrOperationOnCriteriaEntries() { SampleEntity sampleEntity1 = new SampleEntity(); sampleEntity1.setId(nextIdAsString()); sampleEntity1.setMessage("some test message"); operations.save(sampleEntity1); SampleEntity sampleEntity2 = new SampleEntity(); sampleEntity...
@author Rizwan Idrees @author Mohsin Husen @author Peter-Josef Meisch @author James Bodkin
shouldPerformOrOperationOnCriteriaEntries
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/query/CriteriaQueryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/query/CriteriaQueryIntegrationTests.java
Apache-2.0
@Test // DATAES-706 public void shouldPerformAndOperationWithinCriteria() { SampleEntity sampleEntity1 = new SampleEntity(); sampleEntity1.setId(nextIdAsString()); sampleEntity1.setMessage("some test message"); operations.save(sampleEntity1); SampleEntity sampleEntity2 = new SampleEntity(); sampleEntity2....
@author Rizwan Idrees @author Mohsin Husen @author Peter-Josef Meisch @author James Bodkin
shouldPerformAndOperationWithinCriteria
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/query/CriteriaQueryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/query/CriteriaQueryIntegrationTests.java
Apache-2.0
@Test // DATAES-706 public void shouldPerformOrOperationWithinCriteria() { SampleEntity sampleEntity1 = new SampleEntity(); sampleEntity1.setId(nextIdAsString()); sampleEntity1.setMessage("some test message"); operations.save(sampleEntity1); SampleEntity sampleEntity2 = new SampleEntity(); sampleEntity2.s...
@author Rizwan Idrees @author Mohsin Husen @author Peter-Josef Meisch @author James Bodkin
shouldPerformOrOperationWithinCriteria
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/query/CriteriaQueryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/query/CriteriaQueryIntegrationTests.java
Apache-2.0
@Test public void shouldPerformIsOperation() { List<IndexQuery> indexQueries = new ArrayList<>(); String documentId = nextIdAsString(); SampleEntity sampleEntity = new SampleEntity(); sampleEntity.setId(documentId); sampleEntity.setMessage("some message"); sampleEntity.setVersion(System.currentTimeMillis...
@author Rizwan Idrees @author Mohsin Husen @author Peter-Josef Meisch @author James Bodkin
shouldPerformIsOperation
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/query/CriteriaQueryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/query/CriteriaQueryIntegrationTests.java
Apache-2.0
@Test public void shouldPerformMultipleIsOperations() { List<IndexQuery> indexQueries = new ArrayList<>(); // first document String documentId = nextIdAsString(); SampleEntity sampleEntity1 = new SampleEntity(); sampleEntity1.setId(documentId); sampleEntity1.setMessage("some message"); sampleEntity1.se...
@author Rizwan Idrees @author Mohsin Husen @author Peter-Josef Meisch @author James Bodkin
shouldPerformMultipleIsOperations
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/query/CriteriaQueryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/query/CriteriaQueryIntegrationTests.java
Apache-2.0
@Test public void shouldPerformEndsWithOperation() { List<IndexQuery> indexQueries = new ArrayList<>(); // first document String documentId = nextIdAsString(); SampleEntity sampleEntity1 = new SampleEntity(); sampleEntity1.setId(documentId); sampleEntity1.setMessage("some message"); sampleEntity1.setVe...
@author Rizwan Idrees @author Mohsin Husen @author Peter-Josef Meisch @author James Bodkin
shouldPerformEndsWithOperation
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/query/CriteriaQueryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/query/CriteriaQueryIntegrationTests.java
Apache-2.0
@Test public void shouldPerformStartsWithOperation() { List<IndexQuery> indexQueries = new ArrayList<>(); // first document String documentId = nextIdAsString(); SampleEntity sampleEntity1 = new SampleEntity(); sampleEntity1.setId(documentId); sampleEntity1.setMessage("start some message"); sampleEntity...
@author Rizwan Idrees @author Mohsin Husen @author Peter-Josef Meisch @author James Bodkin
shouldPerformStartsWithOperation
java
spring-projects/spring-data-elasticsearch
src/test/java/org/springframework/data/elasticsearch/core/query/CriteriaQueryIntegrationTests.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/core/query/CriteriaQueryIntegrationTests.java
Apache-2.0