Repository navigation
build(engine): Use commons-collections4 in tests - #3103
Merged
Merged
Conversation
Backported commit 3fea119d15143c364c078ec3c5cc0ea6ed44a3a6 from repository https://github.com/finos/fluxnova-bpm-platform. Original author: Sowmya, HL <[email protected]> Operaton adaptation: Applied the test dependency modernization to Operaton's BOM and engine test dependency, and updated the equivalent Operaton test imports from org.apache.commons.collections.map.HashedMap to org.apache.commons.collections4.map.HashedMap. The source commit used Fluxnova package paths; Operaton tests are already JUnit 5. Backport change unit: 484
|
kthoms
approved these changes
Jun 11, 2026
kthoms
pushed a commit
that referenced
this pull request
Jun 11, 2026
Backported commit 3fea119d15143c364c078ec3c5cc0ea6ed44a3a6 from repository https://github.com/finos/fluxnova-bpm-platform. Original author: Sowmya, HL <[email protected]> Operaton adaptation: Applied the test dependency modernization to Operaton's BOM and engine test dependency, and updated the equivalent Operaton test imports from org.apache.commons.collections.map.HashedMap to org.apache.commons.collections4.map.HashedMap. The source commit used Fluxnova package paths; Operaton tests are already JUnit 5. Backport change unit: 484 (cherry picked from commit e9a4944)
Contributor
|
Cherry-picked for 2.1.2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Summary
Backports Fluxnova change unit 484 to replace the legacy test-scope Apache Commons Collections 3.x dependency with Commons Collections 4 in the engine test setup.
The change updates Operaton's internal dependency management from
commons-collections:commons-collections:3.2.2toorg.apache.commons:commons-collections4:4.4, switches the engine test dependency to the new artifact, and updates the two affected test imports fromorg.apache.commons.collections.map.HashedMaptoorg.apache.commons.collections4.map.HashedMap.Reviewer notes
This is a test-scope dependency modernization. The direct engine dependency is declared with
<scope>test</scope>, so the change affects the engine test classpath and the internal BOM entry, not Operaton runtime behavior.The only Java code changes are import migrations in two History Cleanup test classes. The tests still exercise the same query/setup logic; the map implementation is the Commons Collections 4 equivalent of the previous Commons Collections 3
HashedMaptype.Repo-wide follow-up check:
qa/test-old-engine/pom.xmlstill containscommons-collections:commons-collectionsinside theold-engineprofile. That is intentionally left unchanged here because this profile imports the historical Operaton BOM1.0.0-beta-5and resolvescommons-collections:3.2.2:testfor old-engine compatibility testing. It is not using the engine test dependency changed by this PR. The remaining rootpom.xmlreference is only aversions-maven-pluginrule for the old coordinate.Operaton adaptation:
internal-dependencies/pom.xmlmaps to Operaton'sbom/internal-dependencies/pom.xml.Attribution
Backported from Fluxnova:
3fea119d15143c364c078ec3c5cc0ea6ed44a3a6build: upgrade to commons-collections4 and update imports<[email protected]>Verification
Result:
operaton-engineresolvesorg.apache.commons:commons-collections4:jar:4.4:test.Result:
BUILD SUCCESS../mvnw -pl engine -Dskip.frontend.build=true -Dtest=HistoricInstanceForCleanupQueryTest,HistoricBatchManagerBatchesForCleanupTest -Dsurefire.failIfNoSpecifiedTests=false -DfailIfNoTests=false testResult: 5 tests run, 0 failures, 0 errors, 0 skipped.
Result:
operaton-qa-old-engineintentionally still resolvescommons-collections:commons-collections:jar:3.2.2:testfrom the historical old-engine BOM.Result: no whitespace issues.