AEM SDK version upgrade to 2025.1.19149.20250116T154450Z-241100 in POM failing existing tests cases
when trying to upgrade POM with version : 2025.1.19149.20250116T154450Z-241100 and found that test cases are failing with below error.
[ERROR] Tests run: 3, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 0 s <<< FAILURE! - in com.cbdt.core.userreport.services.impl.ReportStoreServiceImplTest
[ERROR] saveReport_whenStoreRootPathExists_thenNewReportPageIsCreatedBasedOnStoreOptions Time elapsed: 0 s <<< ERROR!
java.lang.NoSuchMethodError: 'void com.google.gson.internal.ConstructorConstructor.<init>(java.util.Map, boolean)'
at com.abc.core.userreport.services.impl.ReportStoreServiceImplTest.<init>(ReportStoreServiceImplTest.java:24)
However, the same test cases are passed with version :
2024.6.16799.20240614T073455Z-240500
The dependency for GSON is present, we have tried with 2.8.9 and 2.11.0 , but the issue remains the same and build is failing.
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.11.0</version>
</dependency>
The build is successful if the test cases are ignored.