Skip to content

Commit

Permalink
Merge pull request #25597 from mshima/common-collection
Browse files Browse the repository at this point in the history
drop commons-collections4 dependency
  • Loading branch information
DanielFran authored Mar 22, 2024
2 parents f9f0dd8 + f39f40a commit 790a4b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ import <%= entityAbsolutePackage %>.service.criteria.<%= entityClass %>Criteria;
import com.fasterxml.jackson.databind.ObjectMapper;
<%_ if (searchEngineElasticsearch) { _%>
import org.assertj.core.util.IterableUtil;
import org.apache.commons.collections4.IterableUtils;
import org.springframework.data.util.Streamable;
import java.util.concurrent.TimeUnit;
<%_ } _%>
<%_ if ((databaseTypeSql && reactive) || searchEngineElasticsearch) { _%>
Expand Down Expand Up @@ -1474,7 +1474,7 @@ _%>
await().atMost(5, TimeUnit.SECONDS).untilAsserted(() -> {
int searchDatabaseSizeAfter = IterableUtil.sizeOf(<%= entityInstance %>SearchRepository.findAll()<%= callListBlock %>);
assertThat(searchDatabaseSizeAfter).isEqualTo(searchDatabaseSizeBefore);
List<<%= persistClass %>> <%= entityInstance %>SearchList = IterableUtils.toList(<%= entityInstance %>SearchRepository.findAll()<%= callListBlock %>);
List<<%= persistClass %>> <%= entityInstance %>SearchList = Streamable.of(<%= entityInstance %>SearchRepository.findAll()<%= callListBlock %>).toList();
<%= persistClass %> test<%= entityClass %>Search = <%= entityInstance %>SearchList.get(searchDatabaseSizeAfter - 1);

<%_ if (reactive && databaseTypeSql) { _%>
Expand Down
1 change: 0 additions & 1 deletion generators/spring-data-elasticsearch/generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ export default class ElasticsearchGenerator extends BaseApplicationGenerator {
source.addJavaDependencies?.([
{ groupId: 'org.springframework.boot', artifactId: 'spring-boot-starter-data-elasticsearch' },
{ scope: 'test', groupId: 'org.awaitility', artifactId: 'awaitility' },
{ scope: 'test', groupId: 'org.apache.commons', artifactId: 'commons-collections4' },
{ scope: 'test', groupId: 'org.testcontainers', artifactId: 'elasticsearch' },
{ scope: 'test', groupId: 'org.testcontainers', artifactId: 'junit-jupiter' },
{ scope: 'test', groupId: 'org.testcontainers', artifactId: 'testcontainers' },
Expand Down

0 comments on commit 790a4b9

Please sign in to comment.