From 3e8052431976022c23bb4e4a58552dfa34c7247f Mon Sep 17 00:00:00 2001 From: Jens Schulze Date: Mon, 11 Nov 2024 13:03:04 +0100 Subject: [PATCH] add assertions to concurrentmodificationtest --- .../java/commercetools/ConcurrentModificationTest.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/commercetools/commercetools-sdk-java-api/src/integrationTest/java/commercetools/ConcurrentModificationTest.java b/commercetools/commercetools-sdk-java-api/src/integrationTest/java/commercetools/ConcurrentModificationTest.java index d81cff1386a..9f1dfbb9b88 100644 --- a/commercetools/commercetools-sdk-java-api/src/integrationTest/java/commercetools/ConcurrentModificationTest.java +++ b/commercetools/commercetools-sdk-java-api/src/integrationTest/java/commercetools/ConcurrentModificationTest.java @@ -195,6 +195,9 @@ public void concurrentModMiddlewareSuccess() { .build()) .executeBlocking() .getBody(); + + Assertions.assertThat(modCart.getId()).isEqualTo(cart.getId()); + Assertions.assertThat(modCart.getVersion()).isGreaterThan(cart.getVersion()); return modCart; }); } @@ -230,6 +233,11 @@ public void concurrentModMiddleware() { .build()) .executeBlocking() .getBody(); + + Assertions.assertThat(modCart.getId()).isEqualTo(cart.getId()); + Assertions.assertThat(modCart.getVersion()).isGreaterThan(cart.getVersion()); + Assertions.assertThat(modCart.getVersion()).isGreaterThan(deCart.getBody().getVersion()); + return modCart; }); }