Skip to content

Commit

Permalink
Use containsExactlyInAnyOrder instead of containsExactly.
Browse files Browse the repository at this point in the history
  • Loading branch information
chickenchickenlove committed Oct 18, 2024
1 parent 676d123 commit 6a3f204
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -569,11 +569,11 @@ void moreComplexAsyncScenarioTest(
assertThat(awaitLatch(latchContainer.dltCountdownLatch6)).isTrue();

assertThat(destinationTopic.getDestinationName()).isEqualTo(expectedRetryTopic);
assertThat(topicListener6.receivedMsgs).containsExactly(expectedReceivedMsgs);
assertThat(topicListener6.receivedTopics).containsExactly(expectedReceivedTopics);
assertThat(topicListener6.receivedMsgs).containsExactlyInAnyOrder(expectedReceivedMsgs);
assertThat(topicListener6.receivedTopics).containsExactlyInAnyOrder(expectedReceivedTopics);
assertThat(topicListener6.latchWaitFailCount).isEqualTo(0);

assertThat(myCustomDltProcessor6.receivedMsg).containsExactly(expectedDltMsgs);
assertThat(myCustomDltProcessor6.receivedMsg).containsExactlyInAnyOrder(expectedDltMsgs);
}

private boolean awaitLatch(CountDownLatch latch) {
Expand Down

0 comments on commit 6a3f204

Please sign in to comment.