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

DEVX-76 migrate CategoryCustomActionBuilder and related tests #967

Conversation

lojzatran
Copy link
Collaborator

@lojzatran lojzatran requested a review from salander85 May 9, 2023 16:32
@lojzatran lojzatran marked this pull request as ready for review May 9, 2023 16:32
@codecov-commenter
Copy link

codecov-commenter commented May 9, 2023

Codecov Report

Merging #967 (48f0211) into DEVX-75_migrate_CategoryAssetActionUtils (11f01b6) will increase coverage by 0.27%.
The diff coverage is 100.00%.

❗ Current head 48f0211 differs from pull request most recent head b8acf76. Consider uploading reports for the commit b8acf76 to get more accurate results

@@                              Coverage Diff                               @@
##             DEVX-75_migrate_CategoryAssetActionUtils     #967      +/-   ##
==============================================================================
+ Coverage                                       95.33%   95.61%   +0.27%     
- Complexity                                       3920     3942      +22     
==============================================================================
  Files                                             341      343       +2     
  Lines                                           11495    11516      +21     
  Branches                                          696      697       +1     
==============================================================================
+ Hits                                            10959    11011      +52     
+ Misses                                            428      400      -28     
+ Partials                                          108      105       -3     
Impacted Files Coverage Δ
...tegories/utils/CategoryAssetUpdateActionUtils.java 100.00% <ø> (ø)
...nc/sdk2/commons/models/AssetCustomTypeAdapter.java 100.00% <ø> (ø)
...k2/commons/models/AssetDraftCustomTypeAdapter.java 100.00% <ø> (ø)
...ts/utils/ProductVariantAssetUpdateActionUtils.java 100.00% <ø> (ø)
...ategories/helpers/CategoryCustomActionBuilder.java 100.00% <100.00%> (ø)
...egories/models/CategoryDraftCustomTypeAdapter.java 100.00% <100.00%> (ø)
...nc/sdk2/commons/utils/CustomUpdateActionUtils.java 95.18% <100.00%> (+12.68%) ⬆️

... and 4 files with indirect coverage changes

@@ -0,0 +1,246 @@
package com.commercetools.sync.sdk2.categories;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be pulled from the base java-sdk-v2-category-sync-migration

private static final ProjectApiRoot CTP_CLIENT = mock(ProjectApiRoot.class);
private static final CategorySyncOptions CATEGORY_SYNC_OPTIONS =
CategorySyncOptionsBuilder.of(CTP_CLIENT).build();
final ProductDraft maiNewResource = mock(ProductDraft.class);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The variable name is weird. What does it mean?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lojzatran lojzatran merged commit c654eec into DEVX-75_migrate_CategoryAssetActionUtils May 10, 2023
2 of 3 checks passed
@lojzatran lojzatran deleted the DEVX-76_migrate_CategoryCustomActionBuilder branch May 10, 2023 16:24
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.

None yet

3 participants