-
Notifications
You must be signed in to change notification settings - Fork 81
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
CIF-2060 - fix NPEs related to special handling for Launches #568
Conversation
…for newly created Resources Launches do not fully support context aware configurations in all of the supported product versions. A workaround was introduced before to handle this special case in StoreConfigExporterImpl and MagentoGraphqlClient. In order to make those consumers agnostic to the implementation details of the workaround, the logic was moved to the ComponentsConfigurationAdapterFactory.
@@ -51,8 +54,7 @@ | |||
import io.wcm.testing.mock.aem.junit.AemContext; | |||
import io.wcm.testing.mock.aem.junit.AemContextCallback; | |||
|
|||
import static org.mockito.Mockito.verify; | |||
import static org.mockito.Mockito.when; | |||
import static org.mockito.Mockito.*; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor, but lets avoid wildcard imports, especially if we only import low number of classes/methods.
Codecov Report
@@ Coverage Diff @@
## master #568 +/- ##
============================================
- Coverage 87.41% 87.36% -0.06%
- Complexity 1291 1292 +1
============================================
Files 235 235
Lines 6031 6038 +7
Branches 888 890 +2
============================================
+ Hits 5272 5275 +3
- Misses 587 589 +2
- Partials 172 174 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Description
Launches do not support context aware configurations in all supported product version right now. Because of that a fallback logic has been introduced to fallback to the production content of a Launch when accessing context aware configurations. This logic fails when the content was newly created in the Launch and so production content does not (yet) exists, causing NPEs in various places.
Related Issue
CIF-2060
CIF-2061
How Has This Been Tested?
Types of changes
Checklist: