Skip to content

Commit

Permalink
add second update action
Browse files Browse the repository at this point in the history
  • Loading branch information
jenschude committed Nov 9, 2022
1 parent 899f196 commit 7ef0536
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
package commercetools.order;

import com.commercetools.api.models.order.Order;
import com.commercetools.api.models.order.OrderState;
import com.commercetools.api.models.order.OrderUpdate;
import commercetools.utils.CommercetoolsTestUtils;

Expand All @@ -23,6 +24,7 @@ public void testOrderUpdate() {
.version(order.getVersion())
.plusActions(builder -> builder.setBillingAddressBuilder()
.address(address -> address.country("DE").state("Berlin")))
.plusActions(builder -> builder.changeOrderStateBuilder().orderState(OrderState.CONFIRMED))
.build())
.executeBlocking()
.getBody();
Expand Down

0 comments on commit 7ef0536

Please sign in to comment.