Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#2872 update AEM mocks #2874

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

#2872 update AEM mocks #2874

wants to merge 1 commit into from

Conversation

joerghoh
Copy link
Contributor

Q                       A
Fixed Issues? Fixes #2872
Patch: Bug Fix?
Minor: New Feature?
Major: Breaking Change?
Tests Added + Pass? Yes
Documentation Provided Yes (code comments and or markdown)
Any Dependency Changes?
License Apache License, Version 2.0

Update the AEM Mocks to the latest version; due to changes in https://wcm.io/testing/aem-mock/changes-report.html#a5.5.4 I had to adjust a few locations which are using the Externalizer.

To reduce the effort, I have decided to adjust LinkBuilder.buildLink so it will do a ResourceResolver.map() call to calculate the url parameter for the Link. Which is not a problem per see, as it would still meet the constraints of the API. But it's no longer identical to the repository path.

(Doing it differently would require a major overhaul of the test suite of the inner working of LinkBuilderImpl and LinkImpl.)

Copy link

sonarcloud bot commented Sep 30, 2024

Copy link

codecov bot commented Sep 30, 2024

Codecov Report

Attention: Patch coverage is 75.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 87.17%. Comparing base (d2a7b02) to head (aace37b).

Files with missing lines Patch % Lines
...core/components/internal/link/LinkBuilderImpl.java 75.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main    #2874      +/-   ##
============================================
+ Coverage     87.15%   87.17%   +0.01%     
- Complexity     2692     2694       +2     
============================================
  Files           235      235              
  Lines          7188     7191       +3     
  Branches       1100     1101       +1     
============================================
+ Hits           6265     6269       +4     
  Misses          365      365              
+ Partials        558      557       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update AEM Mocks to 5.6.2
1 participant