Skip to content

Commit 3e80524

Browse files
committed
add assertions to concurrentmodificationtest
1 parent 2d8f59c commit 3e80524

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

commercetools/commercetools-sdk-java-api/src/integrationTest/java/commercetools/ConcurrentModificationTest.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,9 @@ public void concurrentModMiddlewareSuccess() {
195195
.build())
196196
.executeBlocking()
197197
.getBody();
198+
199+
Assertions.assertThat(modCart.getId()).isEqualTo(cart.getId());
200+
Assertions.assertThat(modCart.getVersion()).isGreaterThan(cart.getVersion());
198201
return modCart;
199202
});
200203
}
@@ -230,6 +233,11 @@ public void concurrentModMiddleware() {
230233
.build())
231234
.executeBlocking()
232235
.getBody();
236+
237+
Assertions.assertThat(modCart.getId()).isEqualTo(cart.getId());
238+
Assertions.assertThat(modCart.getVersion()).isGreaterThan(cart.getVersion());
239+
Assertions.assertThat(modCart.getVersion()).isGreaterThan(deCart.getBody().getVersion());
240+
233241
return modCart;
234242
});
235243
}

0 commit comments

Comments
 (0)