1111import org .apache .kafka .clients .producer .ProducerConfig ;
1212import org .apache .kafka .clients .producer .ProducerRecord ;
1313import org .apache .kafka .clients .producer .RecordMetadata ;
14- import org .apache .kafka .common .KafkaFuture ;
1514import org .apache .kafka .common .serialization .LongDeserializer ;
1615import org .apache .kafka .common .serialization .LongSerializer ;
1716import org .junit .jupiter .api .AfterAll ;
2524import java .util .*;
2625import java .util .concurrent .ExecutionException ;
2726import java .util .concurrent .Future ;
28-
29- import static org .junit . jupiter .api .Assertions .* ;
27+ import com . google . common . collect . ImmutableList ;
28+ import static org .assertj . core .api .AssertionsForInterfaceTypes . assertThat ;
3029
3130@ Testcontainers
3231public class ExternalSequenceWithTimeWindowIntegrationTest {
@@ -84,7 +83,6 @@ void givenMultiplePartitions_whenPublishedToKafkaAndConsumedWithExtSeqNumberAndT
8483 System .out .println ("User Event ID: " + userEvent .getUserEventId () + ", Partition : " + metadata .partition ());
8584 }
8685
87- boolean isOrderMaintained = true ;
8886 consumer .subscribe (Collections .singletonList (Config .MULTI_PARTITION_TOPIC ));
8987 List <UserEvent > buffer = new ArrayList <>();
9088 long lastProcessedTime = System .nanoTime ();
@@ -102,9 +100,9 @@ void givenMultiplePartitions_whenPublishedToKafkaAndConsumedWithExtSeqNumberAndT
102100 buffer .add (record .value ());
103101 });
104102 }
105- assertThat (receivedUserEventList )
106- .isEqualTo (sentUserEventList )
107- .containsExactlyElementsOf (sentUserEventList );
103+ assertThat (receivedUserEventList )
104+ .isEqualTo (sentUserEventList )
105+ .containsExactlyElementsOf (sentUserEventList );
108106 }
109107
110108 private static void processBuffer (List <UserEvent > buffer , List <UserEvent > receivedUserEventList ) {
0 commit comments