You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by GitBox <gi...@apache.org> on 2021/01/20 08:09:12 UTC

[GitHub] [kafka] dajac commented on a change in pull request #9905: KAFKA-12210; AdminClient should use DescribeCluster API when available

dajac commented on a change in pull request #9905:
URL: https://github.com/apache/kafka/pull/9905#discussion_r560750319



##########
File path: clients/src/test/java/org/apache/kafka/test/TestUtils.java
##########
@@ -464,6 +465,11 @@ public static ByteBuffer toBuffer(Send send) {
         return exceptionCauseClass.cast(exception.getCause());
     }
 
+    public static void assertFutureThrowsException(Future<?> future, ApiException expectedException) {
+        ApiException receivedException = assertFutureThrows(future, expectedException.getClass());
+        assertEquals(expectedException.getMessage(), receivedException.getMessage());

Review comment:
       Thanks for pointing that out. I have fixed this.




----------------------------------------------------------------
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.

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