You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "clolov (via GitHub)" <gi...@apache.org> on 2023/05/04 13:17:37 UTC

[GitHub] [kafka] clolov commented on a diff in pull request #13240: KAFKA-14690: Add topic IDs to the OffsetCommit API version 9

clolov commented on code in PR #13240:
URL: https://github.com/apache/kafka/pull/13240#discussion_r1185002319


##########
clients/src/test/java/org/apache/kafka/clients/consumer/internals/ConsumerCoordinatorTest.java:
##########
@@ -129,16 +150,19 @@
 import static org.junit.jupiter.api.Assertions.assertFalse;
 import static org.junit.jupiter.api.Assertions.assertNotNull;
 import static org.junit.jupiter.api.Assertions.assertNull;
+import static org.junit.jupiter.api.Assertions.assertSame;
 import static org.junit.jupiter.api.Assertions.assertThrows;
 import static org.junit.jupiter.api.Assertions.assertTrue;
 import static org.junit.jupiter.api.Assertions.fail;
 
 public abstract class ConsumerCoordinatorTest {
-    private final String topic1 = "test1";
-    private final String topic2 = "test2";
-    private final TopicPartition t1p = new TopicPartition(topic1, 0);
-    private final TopicPartition t2p = new TopicPartition(topic2, 0);
-    private final String groupId = "test-group";
+    private static String topic1 = "test1";
+    private static String topic2 = "test2";
+    private static TopicPartition t1p = new TopicPartition(topic1, 0);
+    private static TopicIdPartition ti1p = new TopicIdPartition(Uuid.randomUuid(), t1p);

Review Comment:
   I believe t1p is abstracted because it is being used in 175 other places in this test class for test setup and assertions.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org