clolov commented on code in PR #12422:
URL: https://github.com/apache/kafka/pull/12422#discussion_r925346037
##########
connect/runtime/src/test/java/org/apache/kafka/connect/runtime/WorkerConfigTransformerTest.java:
##########
@@ -53,64 +50,72 @@ public class WorkerConfigTransformerTest {
public static final String TEST_RESULT_WITH_TTL = "testResultWithTTL";
public static final String TEST_RESULT_WITH_LONGER_TTL =
"testResultWithLongerTTL";
- @Mock private Herder herder;
- @Mock private Worker worker;
- @Mock private HerderRequest requestId;
+ private final Herder herder = Mockito.mock(Herder.class);
+ private final Worker worker = Mockito.mock(Worker.class);
+ private final HerderRequest requestId = Mockito.mock(HerderRequest.class);
Review Comment:
I decided to go for `@RunWith(MockitoJUnitRunner.class)` in the newest
commit, but I am happy to change it.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]