We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7ba829 commit 0efa419Copy full SHA for 0efa419
commercetools/commercetools-importapi-utils/src/test/java/ProductUtilTest.java
@@ -0,0 +1,15 @@
1
+import com.commercetools.api.models.product.ProductProjection;
2
+import dev.failsafe.internal.util.Assert;
3
+import org.junit.jupiter.api.Test;
4
+
5
+import static com.commercetools.sdk.ProductUtil.toProductDraftImport;
6
+import static org.junit.jupiter.api.Assertions.assertEquals;
7
8
+public class ProductUtilTest {
9
+ @Test
10
+ void productTransformTest() {
11
+ var testProduct = ProductProjection.builder().key("test").build();
12
+ var transformedProduct = toProductDraftImport(testProduct);
13
+ assertEquals(testProduct.getKey(), transformedProduct.getKey());
14
+ }
15
+}
0 commit comments