Skip to content

Commit 1fe2bc1

Browse files
LoganZhuZzzUbuntu
authored andcommitted
MINOR: Update ClusterTestExtensions Javadoc example (apache#20525)
The previous Javadoc example used the deprecated ClusterType. It is now updated to use `types = {Type.KRAFT, Type.CO_KRAFT}` Reviewers: Chia-Ping Tsai <[email protected]>
1 parent fd0c376 commit 1fe2bc1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test-common/test-common-runtime/src/main/java/org/apache/kafka/common/test/junit/ClusterTestExtensions.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,14 +78,14 @@
7878
*
7979
* <pre>
8080
* class SomeIntegrationTest {
81-
* &#64;ClusterTest(brokers = 1, controllers = 1, clusterType = ClusterType.Both)
82-
* def someTest(): Unit = {
81+
* &#64;ClusterTest(brokers = 1, controllers = 1, types = {Type.KRAFT, Type.CO_KRAFT})
82+
* void someTest(ClusterInstance cluster) {
8383
* assertTrue(condition)
8484
* }
8585
* }
8686
* </pre>
8787
*
88-
* will generate two invocations of "someTest" (since ClusterType.Both was given). For each invocation, the test class
88+
* will generate two invocations of "someTest" (since two cluster types were specified). For each invocation, the test class
8989
* SomeIntegrationTest will be instantiated, lifecycle methods (before/after) will be run, and "someTest" will be invoked.
9090
*
9191
* A special system property "kafka.cluster.test.repeat" can be used to cause repeated invocation of the tests.

0 commit comments

Comments
 (0)