chia7712 commented on code in PR #19075:
URL: https://github.com/apache/kafka/pull/19075#discussion_r1976887477


##########
core/src/test/scala/integration/kafka/api/PlaintextAdminIntegrationTest.scala:
##########
@@ -1626,6 +1626,11 @@ class PlaintextAdminIntegrationTest extends 
BaseAdminIntegrationTest {
     val existingTopic = new ConfigResource(ConfigResource.Type.TOPIC, topic)
     
client.describeConfigs(Collections.singletonList(existingTopic)).values.get(existingTopic).get()
 
+    val defaultTopic = new ConfigResource(ConfigResource.Type.TOPIC, "")
+    val describeResult0 = 
client.describeConfigs(Collections.singletonList(defaultTopic))
+
+    assertTrue(assertThrows(classOf[ExecutionException], () => 
describeResult0.values.get(defaultTopic).get).getCause.isInstanceOf[InvalidTopicException])

Review Comment:
   could you please leverage `assertFutureThrows`?
   ```
   
org.apache.kafka.test.TestUtils.assertFutureThrows(classOf[InvalidTopicException],
 describeResult0.all())
   ```
   
   both line#1637 and line#1642 can get fixed as well



-- 
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-unsubscr...@kafka.apache.org

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

Reply via email to