Skip to content

Commit f2147bd

Browse files
author
salander85
committed
Test StateReference
1 parent 8e8db5a commit f2147bd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/test/java/com/commercetools/sync/products/utils/ProductTransformUtilsTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ void transform_ProductReferences_ShouldReplaceReferencesIdsWithKeysAndMapToProdu
452452
// preparation
453453
final ProjectApiRoot sourceClient = mock(ProjectApiRoot.class);
454454
referenceIdToKeyCache.add("cda0dbf7-b42e-40bf-8453-241d5b587f93", KEY_IS_NOT_SET_PLACE_HOLDER);
455-
referenceIdToKeyCache.add("ebbe95fb-2282-4f9a-8747-fbe440e02dc0", KEY_IS_NOT_SET_PLACE_HOLDER);
455+
referenceIdToKeyCache.add("ste95fb-2282-4f9a-8747-fbe440e02dcs0", KEY_IS_NOT_SET_PLACE_HOLDER);
456456
final List<ProductProjection> productPage =
457457
Arrays.asList(
458458
ProductSyncMockUtils.createProductFromJson("product-with-unresolved-references.json"));
@@ -490,9 +490,9 @@ void transform_ProductReferences_ShouldReplaceReferencesIdsWithKeysAndMapToProdu
490490
.hasValueSatisfying(
491491
productDraft -> {
492492
assertThat(productDraft.getProductType().getKey()).isEqualTo("productTypeKey");
493-
assertThat(productDraft.getTaxCategory().getId())
494-
.isEqualTo("ebbe95fb-2282-4f9a-8747-fbe440e02dc0");
495-
assertThat(productDraft.getTaxCategory().getKey()).isNull();
493+
assertThat(productDraft.getState().getId())
494+
.isEqualTo("ste95fb-2282-4f9a-8747-fbe440e02dcs0");
495+
assertThat(productDraft.getState().getKey()).isNull();
496496
});
497497
}
498498

0 commit comments

Comments
 (0)