Update apache-kafka-2/src/test/java/com/baeldung/kafka/message/ordering/MultiplePartitionIntegrationTest.java
Co-authored-by: Liam Williams <liam.williams@zoho.com>
This commit is contained in:
parent
3e2975196d
commit
9c463c752b
|
@ -89,15 +89,8 @@ public class MultiplePartitionIntegrationTest {
|
|||
receivedUserEventList.add(userEvent);
|
||||
System.out.println("User Event ID: " + userEvent.getUserEventId());
|
||||
});
|
||||
for (int insertPosition = 0; insertPosition <= receivedUserEventList.size() - 1; insertPosition++) {
|
||||
if (isOrderMaintained){
|
||||
UserEvent sentUserEvent = sentUserEventList.get(insertPosition);
|
||||
UserEvent receivedUserEvent = receivedUserEventList.get(insertPosition);
|
||||
if (!sentUserEvent.equals(receivedUserEvent)) {
|
||||
isOrderMaintained = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
assertFalse(isOrderMaintained);
|
||||
assertThat(receivedUserEventList)
|
||||
.isNotEqualTo(sentUserEventList)
|
||||
.containsExactlyInAnyOrderElementsOf(sentUserEventList);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue