Skip to content

Commit

Permalink
add complete message assertion to test
Browse files Browse the repository at this point in the history
  • Loading branch information
jenschude committed Nov 8, 2023
1 parent 8236b39 commit 11db4b9
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public void deserializeMessageDeliveryPayload() {
Assertions.assertThat(delivery.getMessagePayload()).isInstanceOf(CustomerLastNameSetMessagePayload.class);
Assertions.assertThat(delivery.getMessagePayload().as(CustomerLastNameSetMessagePayload.class))
.isInstanceOf(CustomerLastNameSetMessagePayload.class);
Assertions.assertThat(delivery.hasCompleteMessage()).isTrue();
Assertions.assertThatThrownBy(() -> delivery.getMessagePayload().as(CustomerFirstNameSetMessagePayload.class))
.isInstanceOf(IllegalArgumentException.class);
}
Expand Down

0 comments on commit 11db4b9

Please sign in to comment.