From 1ac68bd0b62e24a8a69debf07d8702a137f61608 Mon Sep 17 00:00:00 2001 From: Jens Schulze Date: Fri, 1 Mar 2024 10:51:00 +0100 Subject: [PATCH] use filled cart for tests --- .../sdk/carts/commands/CartUpdateCommandIntegrationTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commercetools-models/src/test/java/io/sphere/sdk/carts/commands/CartUpdateCommandIntegrationTest.java b/commercetools-models/src/test/java/io/sphere/sdk/carts/commands/CartUpdateCommandIntegrationTest.java index 9afbfae7d4..58b0915d84 100644 --- a/commercetools-models/src/test/java/io/sphere/sdk/carts/commands/CartUpdateCommandIntegrationTest.java +++ b/commercetools-models/src/test/java/io/sphere/sdk/carts/commands/CartUpdateCommandIntegrationTest.java @@ -597,7 +597,7 @@ public void recalculate() throws Exception { @Test public void freezeUnfreeze() throws Exception { - withCart(client(), emptyCart -> { + withLineItemAndCustomLineItemFilledCart(client(), emptyCart -> { assertThat(emptyCart.getCartState()) .isEqualTo(CartState.ACTIVE); final Cart frozenCart = client().executeBlocking(CartUpdateCommand.of(emptyCart, FreezeCart.of())); @@ -606,7 +606,7 @@ public void freezeUnfreeze() throws Exception { .isEqualTo(CartState.FROZEN); final Cart unfrozenCart = client().executeBlocking(CartUpdateCommand.of(frozenCart, UnfreezeCart.of())); - assertThat(frozenCart.getCartState()) + assertThat(unfrozenCart.getCartState()) .isEqualTo(CartState.ACTIVE); return unfrozenCart; });