Skip to content

Commit

Permalink
add assertions to concurrentmodificationtest
Browse files Browse the repository at this point in the history
  • Loading branch information
jenschude committed Nov 11, 2024
1 parent 2d8f59c commit 3e80524
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});
}
Expand Down Expand Up @@ -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;
});
}
Expand Down

0 comments on commit 3e80524

Please sign in to comment.