Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jun 6, 2025. It is now read-only.
This repository was archived by the owner on Jun 6, 2025. It is now read-only.

Upgrade JUnit and related dependencies and plugins #2948

@GCHQDeveloper314

Description

@GCHQDeveloper314

Since the last work on dependencies, the Maven Surefire and Failsafe plugins have had major versions released. There have previously been bugs/problems with these plugins (e.g. #2850), hopefully these new versions will work correctly.

The versions for JUnit, JUnit Suites, AssertJ and Mockito can also be updated. However this is causing a runtime problem when testing.
With these versions:

<junit.version>5.9.2</junit.version>
<junit-suite.version>1.9.3</junit-suite.version>
<assertj.version>3.24.2</assertj.version>
<mockito.version>4.11.0</mockito.version>

The following problems occur when running mvn clean install -Pcoverage -pl :map-store:

[ERROR] uk.gov.gchq.gaffer.mapstore.optimiser.CountAllElementsOperationChainOptimiserTest.shouldReturnExpectedOptimisedOperationChain(OperationChain,OperationChain)  Time elapsed: 0.048 s  <<< ERROR!
java.lang.NoSuchMethodError: 'java.lang.String[] org.junit.platform.commons.util.ReflectionUtils.parseQualifiedMethodName(java.lang.String)'

[ERROR] uk.gov.gchq.gaffer.mapstore.optimiser.CountAllElementsOperationChainOptimiserTest.shouldNotOptimiseOperationChain(OperationChain)  Time elapsed: 0.052 s  <<< ERROR!
java.lang.NoSuchMethodError: 'java.lang.String[] org.junit.platform.commons.util.ReflectionUtils.parseQualifiedMethodName(java.lang.String)'

Metadata

Metadata

Labels

dependenciesUpdates/changes to Maven or other dependenciesenhancementImprovement to existing functionality/feature

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions