-
Notifications
You must be signed in to change notification settings - Fork 605
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Patrik Marton <[email protected]> Co-authored-by: Tamas Barnabas Egyed <[email protected]>
- Loading branch information
1 parent
469dc6d
commit fe6ccb1
Showing
22 changed files
with
596 additions
and
235 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
...va/com/linkedin/kafka/cruisecontrol/metricsreporter/utils/CCAbstractKRaftTestHarness.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* | ||
* Copyright 2025 LinkedIn Corp. Licensed under the BSD 2-Clause License (the "License"). See License in the project root for license information. | ||
*/ | ||
package com.linkedin.kafka.cruisecontrol.metricsreporter.utils; | ||
|
||
public class CCAbstractKRaftTestHarness { | ||
protected CCEmbeddedKRaftController _controller; | ||
|
||
/** | ||
* Setup the unit test. | ||
*/ | ||
public void setUp() { | ||
if (_controller == null) { | ||
_controller = new CCEmbeddedKRaftController(); | ||
} | ||
_controller.startup(); | ||
} | ||
|
||
/** | ||
* Teardown the unit test. | ||
*/ | ||
public void tearDown() { | ||
if (_controller != null) { | ||
CCKafkaTestUtils.quietly(() -> _controller.close()); | ||
_controller = null; | ||
} | ||
} | ||
|
||
protected CCEmbeddedKRaftController kraftController() { | ||
return _controller; | ||
} | ||
} |
37 changes: 0 additions & 37 deletions
37
...om/linkedin/kafka/cruisecontrol/metricsreporter/utils/CCAbstractZookeeperTestHarness.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.