Skip to content

Commit 6a3f204

Browse files
Use containsExactlyInAnyOrder instead of containsExactly.
1 parent 676d123 commit 6a3f204

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spring-kafka/src/test/java/org/springframework/kafka/retrytopic/AsyncCompletableFutureRetryTopicScenarioTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -569,11 +569,11 @@ void moreComplexAsyncScenarioTest(
569569
assertThat(awaitLatch(latchContainer.dltCountdownLatch6)).isTrue();
570570

571571
assertThat(destinationTopic.getDestinationName()).isEqualTo(expectedRetryTopic);
572-
assertThat(topicListener6.receivedMsgs).containsExactly(expectedReceivedMsgs);
573-
assertThat(topicListener6.receivedTopics).containsExactly(expectedReceivedTopics);
572+
assertThat(topicListener6.receivedMsgs).containsExactlyInAnyOrder(expectedReceivedMsgs);
573+
assertThat(topicListener6.receivedTopics).containsExactlyInAnyOrder(expectedReceivedTopics);
574574
assertThat(topicListener6.latchWaitFailCount).isEqualTo(0);
575575

576-
assertThat(myCustomDltProcessor6.receivedMsg).containsExactly(expectedDltMsgs);
576+
assertThat(myCustomDltProcessor6.receivedMsg).containsExactlyInAnyOrder(expectedDltMsgs);
577577
}
578578

579579
private boolean awaitLatch(CountDownLatch latch) {

0 commit comments

Comments
 (0)