You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kafka.apache.org by ch...@apache.org on 2024/11/18 10:03:23 UTC

(kafka) branch trunk updated: MINOR: Fix incorrect scala example in README of test-common (#17837)

This is an automated email from the ASF dual-hosted git repository.

chia7712 pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/kafka.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 381fbc1359e MINOR: Fix incorrect scala example in README of test-common (#17837)
381fbc1359e is described below

commit 381fbc1359e7ab5ca576087622441a7e1d3eae99
Author: TengYao Chi <ki...@gmail.com>
AuthorDate: Mon Nov 18 18:03:17 2024 +0800

    MINOR: Fix incorrect scala example in README of test-common (#17837)
    
    Reviewers: Chia-Ping Tsai <ch...@gmail.com>
---
 .../src/main/java/org/apache/kafka/common/test/api/README.md          | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test-common/test-common-api/src/main/java/org/apache/kafka/common/test/api/README.md b/test-common/test-common-api/src/main/java/org/apache/kafka/common/test/api/README.md
index f2d5b40e9fd..a0e815f9385 100644
--- a/test-common/test-common-api/src/main/java/org/apache/kafka/common/test/api/README.md
+++ b/test-common/test-common-api/src/main/java/org/apache/kafka/common/test/api/README.md
@@ -28,8 +28,8 @@ Multiple `@ClusterTest` annotations can be given to generate more than one test
 
 ```scala
 @ClusterTests(Array(
-  @ClusterTest(brokerSecurityProtocol = SecurityProtocol.PLAINTEXT),
-  @ClusterTest(securityProtocol = SecurityProtocol.SASL_PLAINTEXT)
+  new ClusterTest(brokerSecurityProtocol = SecurityProtocol.PLAINTEXT),
+  new ClusterTest(brokerSecurityProtocol = SecurityProtocol.SASL_PLAINTEXT)
 ))
 def testSomething(): Unit = { ... }
 ```