Skip to content

Commit 9ea2839

Browse files
fix: ensure store
1 parent 3b15153 commit 9ea2839

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/integration-test/java/com/commercetools/sync/integration/externalsource/shoppinglists/ShoppingListSyncIT.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import static com.commercetools.api.models.common.LocalizedString.ofEnglish;
44
import static com.commercetools.sync.commons.asserts.statistics.AssertionsForStatistics.assertThat;
5+
import static com.commercetools.sync.integration.commons.utils.CustomerITUtils.ensureStore;
56
import static com.commercetools.sync.integration.commons.utils.ShoppingListITUtils.*;
67
import static com.commercetools.sync.integration.commons.utils.TestClientUtils.CTP_SOURCE_CLIENT;
78
import static com.commercetools.sync.integration.commons.utils.TestClientUtils.CTP_TARGET_CLIENT;
@@ -525,6 +526,9 @@ private List<ShoppingListLineItemDraft> setNullToAddedAtValuesForLineItems(
525526

526527
@Test
527528
void sync_WithStoreChange_ShouldUpdateShoppingListStore() {
529+
// Create the store that will be referenced
530+
ensureStore(CTP_TARGET_CLIENT, "different-store-key");
531+
528532
// Create a shopping list draft with a different store
529533
final ShoppingListDraft modifiedDraft =
530534
ShoppingListDraftBuilder.of(shoppingListDraftSampleCarrotCake)

0 commit comments

Comments
 (0)