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
@DisplayName("should use source excludes from parameter SpEL")
void shouldUseSourceExcludesFromParameterSpEL() {
SampleEntity entity = new SampleEntity();
entity.setId("42");
entity.setMessage("message");
entity.setCustomFieldNameMessage("customFieldNameMessage");
entity.setType("type");
entity.set... | @author Rizwan Idrees
@author Mohsin Husen
@author Franck Marchand
@author Kevin Leturc
@author Christoph Strobl
@author Don Wellington
@author Peter-Josef Meisch
@author Rasmus Faber-Espensen
@author James Mudd
@author Haibo Liu | shouldUseSourceExcludesFromParameterSpEL | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java | Apache-2.0 |
private List<SampleEntity> createSampleEntities(String type, int numberOfEntities) {
List<SampleEntity> entities = new ArrayList<>();
for (int i = 0; i < numberOfEntities; i++) {
SampleEntity entity = new SampleEntity();
entity.setId(UUID.randomUUID().toString());
entity.setAvailable(true);
entity.setM... | @author Rizwan Idrees
@author Mohsin Husen
@author Franck Marchand
@author Kevin Leturc
@author Christoph Strobl
@author Don Wellington
@author Peter-Josef Meisch
@author Rasmus Faber-Espensen
@author James Mudd
@author Haibo Liu | createSampleEntities | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java | Apache-2.0 |
@Nullable
public String getId() {
return id;
} | The parameter is annotated with {@link Nullable} deliberately to test that our elasticsearch SpEL converters will
not accept a null parameter as query value. | getId | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java | Apache-2.0 |
public void setId(@Nullable String id) {
this.id = id;
} | The parameter is annotated with {@link Nullable} deliberately to test that our elasticsearch SpEL converters will
not accept a null parameter as query value. | setId | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java | Apache-2.0 |
@Nullable
public String getType() {
return type;
} | The parameter is annotated with {@link Nullable} deliberately to test that our elasticsearch SpEL converters will
not accept a null parameter as query value. | getType | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java | Apache-2.0 |
public void setType(@Nullable String type) {
this.type = type;
} | The parameter is annotated with {@link Nullable} deliberately to test that our elasticsearch SpEL converters will
not accept a null parameter as query value. | setType | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java | Apache-2.0 |
@Nullable
public String getMessage() {
return message;
} | The parameter is annotated with {@link Nullable} deliberately to test that our elasticsearch SpEL converters will
not accept a null parameter as query value. | getMessage | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java | Apache-2.0 |
public void setMessage(@Nullable String message) {
this.message = message;
} | The parameter is annotated with {@link Nullable} deliberately to test that our elasticsearch SpEL converters will
not accept a null parameter as query value. | setMessage | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java | Apache-2.0 |
@Nullable
public String getCustomFieldNameMessage() {
return customFieldNameMessage;
} | The parameter is annotated with {@link Nullable} deliberately to test that our elasticsearch SpEL converters will
not accept a null parameter as query value. | getCustomFieldNameMessage | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java | Apache-2.0 |
public void setCustomFieldNameMessage(@Nullable String customFieldNameMessage) {
this.customFieldNameMessage = customFieldNameMessage;
} | The parameter is annotated with {@link Nullable} deliberately to test that our elasticsearch SpEL converters will
not accept a null parameter as query value. | setCustomFieldNameMessage | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java | Apache-2.0 |
@Nullable
public SampleProperty getSampleProperty() {
return sampleProperty;
} | The parameter is annotated with {@link Nullable} deliberately to test that our elasticsearch SpEL converters will
not accept a null parameter as query value. | getSampleProperty | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java | Apache-2.0 |
public void setSampleProperty(@Nullable SampleProperty sampleProperty) {
this.sampleProperty = sampleProperty;
} | The parameter is annotated with {@link Nullable} deliberately to test that our elasticsearch SpEL converters will
not accept a null parameter as query value. | setSampleProperty | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java | Apache-2.0 |
@Nullable
public String getKeyword() {
return keyword;
} | The parameter is annotated with {@link Nullable} deliberately to test that our elasticsearch SpEL converters will
not accept a null parameter as query value. | getKeyword | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java | Apache-2.0 |
public void setKeyword(@Nullable String keyword) {
this.keyword = keyword;
} | The parameter is annotated with {@link Nullable} deliberately to test that our elasticsearch SpEL converters will
not accept a null parameter as query value. | setKeyword | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java | Apache-2.0 |
public int getRate() {
return rate;
} | The parameter is annotated with {@link Nullable} deliberately to test that our elasticsearch SpEL converters will
not accept a null parameter as query value. | getRate | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java | Apache-2.0 |
public void setRate(int rate) {
this.rate = rate;
} | The parameter is annotated with {@link Nullable} deliberately to test that our elasticsearch SpEL converters will
not accept a null parameter as query value. | setRate | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java | Apache-2.0 |
public boolean isAvailable() {
return available;
} | The parameter is annotated with {@link Nullable} deliberately to test that our elasticsearch SpEL converters will
not accept a null parameter as query value. | isAvailable | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java | Apache-2.0 |
public void setAvailable(boolean available) {
this.available = available;
} | The parameter is annotated with {@link Nullable} deliberately to test that our elasticsearch SpEL converters will
not accept a null parameter as query value. | setAvailable | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java | Apache-2.0 |
@Nullable
public GeoPoint getLocation() {
return location;
} | The parameter is annotated with {@link Nullable} deliberately to test that our elasticsearch SpEL converters will
not accept a null parameter as query value. | getLocation | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java | Apache-2.0 |
public void setLocation(@Nullable GeoPoint location) {
this.location = location;
} | The parameter is annotated with {@link Nullable} deliberately to test that our elasticsearch SpEL converters will
not accept a null parameter as query value. | setLocation | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java | Apache-2.0 |
public java.lang.@Nullable Long getVersion() {
return version;
} | The parameter is annotated with {@link Nullable} deliberately to test that our elasticsearch SpEL converters will
not accept a null parameter as query value. | getVersion | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java | Apache-2.0 |
public void setVersion(java.lang.@Nullable Long version) {
this.version = version;
} | The parameter is annotated with {@link Nullable} deliberately to test that our elasticsearch SpEL converters will
not accept a null parameter as query value. | setVersion | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java | Apache-2.0 |
@Nullable
public String getFirst() {
return first;
} | The parameter is annotated with {@link Nullable} deliberately to test that our elasticsearch SpEL converters will
not accept a null parameter as query value. | getFirst | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java | Apache-2.0 |
public void setFirst(@Nullable String first) {
this.first = first;
} | The parameter is annotated with {@link Nullable} deliberately to test that our elasticsearch SpEL converters will
not accept a null parameter as query value. | setFirst | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java | Apache-2.0 |
@Nullable
public String getLast() {
return last;
} | The parameter is annotated with {@link Nullable} deliberately to test that our elasticsearch SpEL converters will
not accept a null parameter as query value. | getLast | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java | Apache-2.0 |
public void setLast(@Nullable String last) {
this.last = last;
} | The parameter is annotated with {@link Nullable} deliberately to test that our elasticsearch SpEL converters will
not accept a null parameter as query value. | setLast | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java | Apache-2.0 |
@Override
public String convert(SampleProperty sampleProperty) {
return sampleProperty.getFirst() + '-' + sampleProperty.getLast();
} | The parameter is annotated with {@link Nullable} deliberately to test that our elasticsearch SpEL converters will
not accept a null parameter as query value. | convert | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java | Apache-2.0 |
@Override
public SampleProperty convert(String string) {
String[] splits = string.split("-");
Assert.isTrue(splits.length == 2, "only 1 '-' should be in sample property value");
return new SampleProperty(splits[0], splits[1]);
} | The parameter is annotated with {@link Nullable} deliberately to test that our elasticsearch SpEL converters will
not accept a null parameter as query value. | convert | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/custommethod/CustomMethodRepositoryIntegrationTests.java | Apache-2.0 |
@BeforeEach
public void before() {
indexNameProvider.increment();
operations.indexOps(DoubleIDEntity.class).createWithMapping();
} | @author Rizwan Idrees
@author Mohsin Husen
@author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | before | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/doubleid/DoubleIDRepositoryIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/doubleid/DoubleIDRepositoryIntegrationTests.java | Apache-2.0 |
@Test
@Order(Integer.MAX_VALUE)
public void cleanup() {
operations.indexOps(IndexCoordinates.of(indexNameProvider.getPrefix() + "*")).delete();
} | @author Rizwan Idrees
@author Mohsin Husen
@author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | cleanup | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/doubleid/DoubleIDRepositoryIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/doubleid/DoubleIDRepositoryIntegrationTests.java | Apache-2.0 |
@Test
public void shouldDoBulkIndexDocument() {
// given
Double documentId1 = nextIdAsDouble();
DoubleIDEntity sampleEntity1 = new DoubleIDEntity();
sampleEntity1.setId(documentId1);
sampleEntity1.setMessage("some message");
sampleEntity1.setVersion(System.currentTimeMillis());
Double documentId2 = nex... | @author Rizwan Idrees
@author Mohsin Husen
@author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | shouldDoBulkIndexDocument | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/doubleid/DoubleIDRepositoryIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/doubleid/DoubleIDRepositoryIntegrationTests.java | Apache-2.0 |
@Test
public void shouldSaveDocument() {
// given
Double documentId = nextIdAsDouble();
DoubleIDEntity sampleEntity = new DoubleIDEntity();
sampleEntity.setId(documentId);
sampleEntity.setMessage("some message");
sampleEntity.setVersion(System.currentTimeMillis());
// when
repository.save(sampleEntit... | @author Rizwan Idrees
@author Mohsin Husen
@author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | shouldSaveDocument | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/doubleid/DoubleIDRepositoryIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/doubleid/DoubleIDRepositoryIntegrationTests.java | Apache-2.0 |
public Double getId() {
return id;
} | @author Rizwan Idrees
@author Mohsin Husen
@author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | getId | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/doubleid/DoubleIDRepositoryIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/doubleid/DoubleIDRepositoryIntegrationTests.java | Apache-2.0 |
public void setId(Double id) {
this.id = id;
} | @author Rizwan Idrees
@author Mohsin Husen
@author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | setId | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/doubleid/DoubleIDRepositoryIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/doubleid/DoubleIDRepositoryIntegrationTests.java | Apache-2.0 |
public String getType() {
return type;
} | @author Rizwan Idrees
@author Mohsin Husen
@author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | getType | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/doubleid/DoubleIDRepositoryIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/doubleid/DoubleIDRepositoryIntegrationTests.java | Apache-2.0 |
public void setType(String type) {
this.type = type;
} | @author Rizwan Idrees
@author Mohsin Husen
@author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | setType | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/doubleid/DoubleIDRepositoryIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/doubleid/DoubleIDRepositoryIntegrationTests.java | Apache-2.0 |
public String getMessage() {
return message;
} | @author Rizwan Idrees
@author Mohsin Husen
@author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | getMessage | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/doubleid/DoubleIDRepositoryIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/doubleid/DoubleIDRepositoryIntegrationTests.java | Apache-2.0 |
public void setMessage(String message) {
this.message = message;
} | @author Rizwan Idrees
@author Mohsin Husen
@author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | setMessage | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/doubleid/DoubleIDRepositoryIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/doubleid/DoubleIDRepositoryIntegrationTests.java | Apache-2.0 |
public Long getVersion() {
return version;
} | @author Rizwan Idrees
@author Mohsin Husen
@author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | getVersion | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/doubleid/DoubleIDRepositoryIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/doubleid/DoubleIDRepositoryIntegrationTests.java | Apache-2.0 |
public void setVersion(Long version) {
this.version = version;
} | @author Rizwan Idrees
@author Mohsin Husen
@author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | setVersion | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/doubleid/DoubleIDRepositoryIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/doubleid/DoubleIDRepositoryIntegrationTests.java | Apache-2.0 |
@BeforeEach
public void init() {
indexOperations = operations.indexOps(IndexCoordinates.of("index1"));
deleteIndexes();
operations.indexOps(IndexCoordinates.of("index1")).create();
operations.indexOps(IndexCoordinates.of("index2")).create();
} | DynamicIndexEntityIntegration. Not: this does not use the normal
{@link org.springframework.data.elasticsearch.utils.IndexNameProvider} b ut testes this functionality with a custom
one.
@author Sylvain Laurent
@author Peter-Josef Meisch | init | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/dynamicindex/DynamicIndexEntityIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/dynamicindex/DynamicIndexEntityIntegrationTests.java | Apache-2.0 |
@AfterEach
public void after() {
deleteIndexes();
} | DynamicIndexEntityIntegration. Not: this does not use the normal
{@link org.springframework.data.elasticsearch.utils.IndexNameProvider} b ut testes this functionality with a custom
one.
@author Sylvain Laurent
@author Peter-Josef Meisch | after | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/dynamicindex/DynamicIndexEntityIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/dynamicindex/DynamicIndexEntityIntegrationTests.java | Apache-2.0 |
private void deleteIndexes() {
indexOperations.delete();
operations.indexOps(IndexCoordinates.of("index2")).delete();
} | DynamicIndexEntityIntegration. Not: this does not use the normal
{@link org.springframework.data.elasticsearch.utils.IndexNameProvider} b ut testes this functionality with a custom
one.
@author Sylvain Laurent
@author Peter-Josef Meisch | deleteIndexes | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/dynamicindex/DynamicIndexEntityIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/dynamicindex/DynamicIndexEntityIntegrationTests.java | Apache-2.0 |
@Test // DATAES-456
public void indexNameIsDynamicallyProvided() {
int initialCallsCount = indexNameProvider.callsCount;
indexNameProvider.indexName = "index1";
repository.save(new DynamicIndexEntity());
assertThat(indexNameProvider.callsCount > initialCallsCount).isTrue();
assertThat(repository.count()).i... | DynamicIndexEntityIntegration. Not: this does not use the normal
{@link org.springframework.data.elasticsearch.utils.IndexNameProvider} b ut testes this functionality with a custom
one.
@author Sylvain Laurent
@author Peter-Josef Meisch | indexNameIsDynamicallyProvided | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/dynamicindex/DynamicIndexEntityIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/dynamicindex/DynamicIndexEntityIntegrationTests.java | Apache-2.0 |
@Test // DATAES-821
void indexOpsShouldUseDynamicallyProvidedName() {
indexNameProvider.indexName = "index-dynamic";
indexNameProvider.callsCount = 0;
operations.indexOps(IndexCoordinates.of("index-dynamic")).delete();
IndexOperations indexOps = operations.indexOps(DynamicIndexEntity.class);
indexOps.crea... | DynamicIndexEntityIntegration. Not: this does not use the normal
{@link org.springframework.data.elasticsearch.utils.IndexNameProvider} b ut testes this functionality with a custom
one.
@author Sylvain Laurent
@author Peter-Josef Meisch | indexOpsShouldUseDynamicallyProvidedName | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/dynamicindex/DynamicIndexEntityIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/dynamicindex/DynamicIndexEntityIntegrationTests.java | Apache-2.0 |
public String getIndexName() {
callsCount++;
return indexName;
} | DynamicIndexEntityIntegration. Not: this does not use the normal
{@link org.springframework.data.elasticsearch.utils.IndexNameProvider} b ut testes this functionality with a custom
one.
@author Sylvain Laurent
@author Peter-Josef Meisch | getIndexName | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/dynamicindex/DynamicIndexEntityIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/dynamicindex/DynamicIndexEntityIntegrationTests.java | Apache-2.0 |
public String getId() {
return id;
} | DynamicIndexEntityIntegration. Not: this does not use the normal
{@link org.springframework.data.elasticsearch.utils.IndexNameProvider} b ut testes this functionality with a custom
one.
@author Sylvain Laurent
@author Peter-Josef Meisch | getId | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/dynamicindex/DynamicIndexEntityIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/dynamicindex/DynamicIndexEntityIntegrationTests.java | Apache-2.0 |
public void setId(String id) {
this.id = id;
} | DynamicIndexEntityIntegration. Not: this does not use the normal
{@link org.springframework.data.elasticsearch.utils.IndexNameProvider} b ut testes this functionality with a custom
one.
@author Sylvain Laurent
@author Peter-Josef Meisch | setId | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/dynamicindex/DynamicIndexEntityIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/dynamicindex/DynamicIndexEntityIntegrationTests.java | Apache-2.0 |
@BeforeEach
public void init() {
indexNameProvider.increment();
operations.indexOps(GeoEntity.class).createWithMapping();
} | @author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | init | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/geo/GeoRepositoryIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/geo/GeoRepositoryIntegrationTests.java | Apache-2.0 |
@Test
@Order(Integer.MAX_VALUE)
public void cleanup() {
operations.indexOps(IndexCoordinates.of(indexNameProvider.getPrefix() + "*")).delete();
} | @author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | cleanup | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/geo/GeoRepositoryIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/geo/GeoRepositoryIntegrationTests.java | Apache-2.0 |
@Test
public void shouldSaveAndLoadGeoPoints() {
// given
Point point = new Point(15, 25);
GeoEntity entity = new GeoEntity();
entity.setPointA(point);
entity.setPointB(new GeoPoint(point.getX(), point.getY()));
entity.setPointC(toGeoString(point));
entity.setPointD(toGeoArray(point));
// when
GeoE... | @author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | shouldSaveAndLoadGeoPoints | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/geo/GeoRepositoryIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/geo/GeoRepositoryIntegrationTests.java | Apache-2.0 |
private String toGeoString(Point point) {
return String.format(Locale.ENGLISH, "%.1f,%.1f", point.getX(), point.getY());
} | @author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | toGeoString | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/geo/GeoRepositoryIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/geo/GeoRepositoryIntegrationTests.java | Apache-2.0 |
private double[] toGeoArray(Point point) {
return new double[] { point.getX(), point.getY() };
} | @author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | toGeoArray | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/geo/GeoRepositoryIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/geo/GeoRepositoryIntegrationTests.java | Apache-2.0 |
@Nullable
public String getId() {
return id;
} | @author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | getId | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/geo/GeoRepositoryIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/geo/GeoRepositoryIntegrationTests.java | Apache-2.0 |
public void setId(@Nullable String id) {
this.id = id;
} | @author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | setId | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/geo/GeoRepositoryIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/geo/GeoRepositoryIntegrationTests.java | Apache-2.0 |
@Nullable
public Box getBox() {
return box;
} | @author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | getBox | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/geo/GeoRepositoryIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/geo/GeoRepositoryIntegrationTests.java | Apache-2.0 |
public void setBox(@Nullable Box box) {
this.box = box;
} | @author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | setBox | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/geo/GeoRepositoryIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/geo/GeoRepositoryIntegrationTests.java | Apache-2.0 |
@Nullable
public Circle getCircle() {
return circle;
} | @author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | getCircle | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/geo/GeoRepositoryIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/geo/GeoRepositoryIntegrationTests.java | Apache-2.0 |
public void setCircle(@Nullable Circle circle) {
this.circle = circle;
} | @author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | setCircle | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/geo/GeoRepositoryIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/geo/GeoRepositoryIntegrationTests.java | Apache-2.0 |
@Nullable
public Polygon getPolygon() {
return polygon;
} | @author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | getPolygon | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/geo/GeoRepositoryIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/geo/GeoRepositoryIntegrationTests.java | Apache-2.0 |
public void setPolygon(@Nullable Polygon polygon) {
this.polygon = polygon;
} | @author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | setPolygon | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/geo/GeoRepositoryIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/geo/GeoRepositoryIntegrationTests.java | Apache-2.0 |
@Nullable
public Point getPointA() {
return pointA;
} | @author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | getPointA | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/geo/GeoRepositoryIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/geo/GeoRepositoryIntegrationTests.java | Apache-2.0 |
public void setPointA(@Nullable Point pointA) {
this.pointA = pointA;
} | @author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | setPointA | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/geo/GeoRepositoryIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/geo/GeoRepositoryIntegrationTests.java | Apache-2.0 |
@Nullable
public GeoPoint getPointB() {
return pointB;
} | @author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | getPointB | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/geo/GeoRepositoryIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/geo/GeoRepositoryIntegrationTests.java | Apache-2.0 |
public void setPointB(@Nullable GeoPoint pointB) {
this.pointB = pointB;
} | @author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | setPointB | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/geo/GeoRepositoryIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/geo/GeoRepositoryIntegrationTests.java | Apache-2.0 |
@Nullable
public String getPointC() {
return pointC;
} | @author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | getPointC | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/geo/GeoRepositoryIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/geo/GeoRepositoryIntegrationTests.java | Apache-2.0 |
public void setPointC(@Nullable String pointC) {
this.pointC = pointC;
} | @author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | setPointC | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/geo/GeoRepositoryIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/geo/GeoRepositoryIntegrationTests.java | Apache-2.0 |
@Nullable
public double[] getPointD() {
return pointD;
} | @author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | getPointD | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/geo/GeoRepositoryIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/geo/GeoRepositoryIntegrationTests.java | Apache-2.0 |
public void setPointD(@Nullable double[] pointD) {
this.pointD = pointD;
} | @author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | setPointD | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/geo/GeoRepositoryIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/geo/GeoRepositoryIntegrationTests.java | Apache-2.0 |
@BeforeEach
public void before() {
indexNameProvider.increment();
operations.indexOps(IntegerIDEntity.class).createWithMapping();
} | @author Rizwan Idrees
@author Mohsin Husen
@author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | before | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/integer/IntegerIDRepositoryIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/integer/IntegerIDRepositoryIntegrationTests.java | Apache-2.0 |
@Test
@Order(Integer.MAX_VALUE)
public void cleanup() {
operations.indexOps(IndexCoordinates.of(indexNameProvider.getPrefix() + "*")).delete();
} | @author Rizwan Idrees
@author Mohsin Husen
@author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | cleanup | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/integer/IntegerIDRepositoryIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/integer/IntegerIDRepositoryIntegrationTests.java | Apache-2.0 |
@Test
public void shouldDoBulkIndexDocument() {
// given
Integer documentId1 = nextIdAsInt();
IntegerIDEntity sampleEntity1 = new IntegerIDEntity();
sampleEntity1.setId(documentId1);
sampleEntity1.setMessage("some message");
sampleEntity1.setVersion(System.currentTimeMillis());
Integer documentId2 = ne... | @author Rizwan Idrees
@author Mohsin Husen
@author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | shouldDoBulkIndexDocument | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/integer/IntegerIDRepositoryIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/integer/IntegerIDRepositoryIntegrationTests.java | Apache-2.0 |
@Test
public void shouldSaveDocument() {
// given
Integer documentId = nextIdAsInt();
IntegerIDEntity sampleEntity = new IntegerIDEntity();
sampleEntity.setId(documentId);
sampleEntity.setMessage("some message");
sampleEntity.setVersion(System.currentTimeMillis());
// when
repository.save(sampleEntit... | @author Rizwan Idrees
@author Mohsin Husen
@author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | shouldSaveDocument | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/integer/IntegerIDRepositoryIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/integer/IntegerIDRepositoryIntegrationTests.java | Apache-2.0 |
public Integer getId() {
return id;
} | @author Rizwan Idrees
@author Mohsin Husen
@author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | getId | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/integer/IntegerIDRepositoryIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/integer/IntegerIDRepositoryIntegrationTests.java | Apache-2.0 |
public void setId(Integer id) {
this.id = id;
} | @author Rizwan Idrees
@author Mohsin Husen
@author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | setId | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/integer/IntegerIDRepositoryIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/integer/IntegerIDRepositoryIntegrationTests.java | Apache-2.0 |
public String getType() {
return type;
} | @author Rizwan Idrees
@author Mohsin Husen
@author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | getType | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/integer/IntegerIDRepositoryIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/integer/IntegerIDRepositoryIntegrationTests.java | Apache-2.0 |
public void setType(String type) {
this.type = type;
} | @author Rizwan Idrees
@author Mohsin Husen
@author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | setType | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/integer/IntegerIDRepositoryIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/integer/IntegerIDRepositoryIntegrationTests.java | Apache-2.0 |
public String getMessage() {
return message;
} | @author Rizwan Idrees
@author Mohsin Husen
@author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | getMessage | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/integer/IntegerIDRepositoryIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/integer/IntegerIDRepositoryIntegrationTests.java | Apache-2.0 |
public void setMessage(String message) {
this.message = message;
} | @author Rizwan Idrees
@author Mohsin Husen
@author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | setMessage | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/integer/IntegerIDRepositoryIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/integer/IntegerIDRepositoryIntegrationTests.java | Apache-2.0 |
public Long getVersion() {
return version;
} | @author Rizwan Idrees
@author Mohsin Husen
@author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | getVersion | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/integer/IntegerIDRepositoryIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/integer/IntegerIDRepositoryIntegrationTests.java | Apache-2.0 |
public void setVersion(Long version) {
this.version = version;
} | @author Rizwan Idrees
@author Mohsin Husen
@author Mark Paluch
@author Christoph Strobl
@author Peter-Josef Meisch | setVersion | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/integer/IntegerIDRepositoryIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/integer/IntegerIDRepositoryIntegrationTests.java | Apache-2.0 |
@BeforeEach
public void before() {
indexNameProvider.increment();
operations.indexOps(Book.class).createWithMapping();
} | @author Mohsin Husen
@author Christoph Strobl
@author Peter-Josef Meisch | before | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/nestedobject/InnerObjectIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/nestedobject/InnerObjectIntegrationTests.java | Apache-2.0 |
@Test
@Order(Integer.MAX_VALUE)
public void cleanup() {
operations.indexOps(IndexCoordinates.of(indexNameProvider.getPrefix() + "*")).delete();
} | @author Mohsin Husen
@author Christoph Strobl
@author Peter-Josef Meisch | cleanup | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/nestedobject/InnerObjectIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/nestedobject/InnerObjectIntegrationTests.java | Apache-2.0 |
@Test
public void shouldIndexInnerObject() {
// given
String id = nextIdAsString();
Book book = new Book();
book.setId(id);
book.setName("xyz");
Author author = new Author();
author.setId("1");
author.setName("ABC");
book.setAuthor(author);
// when
bookRepository.save(book);
// then
assert... | @author Mohsin Husen
@author Christoph Strobl
@author Peter-Josef Meisch | shouldIndexInnerObject | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/nestedobject/InnerObjectIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/nestedobject/InnerObjectIntegrationTests.java | Apache-2.0 |
@Nullable
public String getId() {
return id;
} | @author Mohsin Husen
@author Christoph Strobl
@author Peter-Josef Meisch | getId | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/nestedobject/InnerObjectIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/nestedobject/InnerObjectIntegrationTests.java | Apache-2.0 |
public void setId(@Nullable String id) {
this.id = id;
} | @author Mohsin Husen
@author Christoph Strobl
@author Peter-Josef Meisch | setId | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/nestedobject/InnerObjectIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/nestedobject/InnerObjectIntegrationTests.java | Apache-2.0 |
@Nullable
public String getName() {
return name;
} | @author Mohsin Husen
@author Christoph Strobl
@author Peter-Josef Meisch | getName | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/nestedobject/InnerObjectIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/nestedobject/InnerObjectIntegrationTests.java | Apache-2.0 |
public void setName(@Nullable String name) {
this.name = name;
} | @author Mohsin Husen
@author Christoph Strobl
@author Peter-Josef Meisch | setName | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/nestedobject/InnerObjectIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/nestedobject/InnerObjectIntegrationTests.java | Apache-2.0 |
@Nullable
public Author getAuthor() {
return author;
} | @author Mohsin Husen
@author Christoph Strobl
@author Peter-Josef Meisch | getAuthor | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/nestedobject/InnerObjectIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/nestedobject/InnerObjectIntegrationTests.java | Apache-2.0 |
public void setAuthor(@Nullable Author author) {
this.author = author;
} | @author Mohsin Husen
@author Christoph Strobl
@author Peter-Josef Meisch | setAuthor | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/nestedobject/InnerObjectIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/nestedobject/InnerObjectIntegrationTests.java | Apache-2.0 |
@Nullable
public Map<Integer, Collection<String>> getBuckets() {
return buckets;
} | @author Mohsin Husen
@author Christoph Strobl
@author Peter-Josef Meisch | getBuckets | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/nestedobject/InnerObjectIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/nestedobject/InnerObjectIntegrationTests.java | Apache-2.0 |
public void setBuckets(@Nullable Map<Integer, Collection<String>> buckets) {
this.buckets = buckets;
} | @author Mohsin Husen
@author Christoph Strobl
@author Peter-Josef Meisch | setBuckets | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/nestedobject/InnerObjectIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/nestedobject/InnerObjectIntegrationTests.java | Apache-2.0 |
@Nullable
public String getDescription() {
return description;
} | @author Mohsin Husen
@author Christoph Strobl
@author Peter-Josef Meisch | getDescription | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/nestedobject/InnerObjectIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/nestedobject/InnerObjectIntegrationTests.java | Apache-2.0 |
public void setDescription(@Nullable String description) {
this.description = description;
} | @author Mohsin Husen
@author Christoph Strobl
@author Peter-Josef Meisch | setDescription | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/nestedobject/InnerObjectIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/nestedobject/InnerObjectIntegrationTests.java | Apache-2.0 |
public String getId() {
return id;
} | @author Rizwan Idrees
@author Mohsin Husen | getId | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/nestedobject/InnerObjectIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/nestedobject/InnerObjectIntegrationTests.java | Apache-2.0 |
public void setId(String id) {
this.id = id;
} | @author Rizwan Idrees
@author Mohsin Husen | setId | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/nestedobject/InnerObjectIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/nestedobject/InnerObjectIntegrationTests.java | Apache-2.0 |
public String getName() {
return name;
} | @author Rizwan Idrees
@author Mohsin Husen | getName | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/nestedobject/InnerObjectIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/nestedobject/InnerObjectIntegrationTests.java | Apache-2.0 |
public void setName(String name) {
this.name = name;
} | @author Rizwan Idrees
@author Mohsin Husen | setName | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/nestedobject/InnerObjectIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/nestedobject/InnerObjectIntegrationTests.java | Apache-2.0 |
@BeforeEach
public void before() {
indexNameProvider.increment();
indexOperations = operations.indexOps(DynamicSettingAndMappingEntity.class);
indexOperations.createWithMapping();
} | DynamicSettingAndMappingEntityRepositoryIntegrationTests
@author Mohsin Husen
@author Ilkang Na
@author Peter-Josef Meisch | before | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/setting/dynamic/DynamicSettingAndMappingEntityRepositoryIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/setting/dynamic/DynamicSettingAndMappingEntityRepositoryIntegrationTests.java | Apache-2.0 |
@Test
@Order(Integer.MAX_VALUE)
void cleanup() {
operations.indexOps(IndexCoordinates.of(indexNameProvider.getPrefix() + "*")).delete();
} | DynamicSettingAndMappingEntityRepositoryIntegrationTests
@author Mohsin Husen
@author Ilkang Na
@author Peter-Josef Meisch | cleanup | java | spring-projects/spring-data-elasticsearch | src/test/java/org/springframework/data/elasticsearch/repositories/setting/dynamic/DynamicSettingAndMappingEntityRepositoryIntegrationTests.java | https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/test/java/org/springframework/data/elasticsearch/repositories/setting/dynamic/DynamicSettingAndMappingEntityRepositoryIntegrationTests.java | Apache-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.