You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "hgeraldino (via GitHub)" <gi...@apache.org> on 2023/04/18 01:49:25 UTC
[GitHub] [kafka] hgeraldino commented on a diff in pull request #13383: KAFKA-14059 Replace PowerMock with Mockito in WorkerSourceTaskTest
hgeraldino commented on code in PR #13383:
URL: https://github.com/apache/kafka/pull/13383#discussion_r1169408565
##########
connect/runtime/src/test/java/org/apache/kafka/connect/runtime/WorkerSourceTaskTest.java:
##########
@@ -315,33 +305,28 @@ public void testPause() throws Exception {
taskFuture.get();
- PowerMock.verifyAll();
+ verifyCleanStartup();
+ verifyTaskGetTopic(10);
+ verifyOffsetFlush(true);
+ verifyTopicCreation(TOPIC);
+ verify(statusListener).onPause(taskId);
+ verify(statusListener).onShutdown(taskId);
+ verify(sourceTask).stop();
+ verify(offsetWriter).offset(PARTITION, OFFSET);
+ verifyClose();
}
@Test
public void testPollsInBackground() throws Exception {
createWorkerTask();
- expectCleanStartup();
-
final CountDownLatch pollLatch = expectPolls(10);
// In this test, we don't flush, so nothing goes any further than the offset writer
Review Comment:
you're right, removed comment
--
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: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org