DATAES-753 - Reactive Elasticsearch repository: Bulk update fails on empty entity list.

Original PR: #398
This commit is contained in:
Peter-Josef Meisch
2020-02-26 21:50:42 +01:00
committed by GitHub
parent 6a4a7483aa
commit bf51de3805
3 changed files with 17 additions and 5 deletions

View File

@@ -811,6 +811,13 @@ public class ReactiveElasticsearchTemplateTests {
.verifyComplete();
}
@Test // DATAES-753
void shouldReturnEmptyFluxOnSaveAllWithEmptyInput() {
template.saveAll(Collections.emptyList(), IndexCoordinates.of(DEFAULT_INDEX)) //
.as(StepVerifier::create) //
.verifyComplete();
}
@Data
@Document(indexName = "marvel")
static class Person {