KAFKA-14059 Replace PowerMock with Mockito in WorkerSourceTaskTest#13383
KAFKA-14059 Replace PowerMock with Mockito in WorkerSourceTaskTest#13383C0urante merged 15 commits intoapache:trunkfrom
Conversation
C0urante
left a comment
There was a problem hiding this comment.
Thanks @hgeraldino! I've made it about halfway through in this pass; will try to revisit this week or the next and look at the rest.
Also, similar to #13191 (comment), can we add verifyNoMoreInteractions(statusListener); to the test's tearDown method?
Good catch, will add it. |
6197644 to
1e46ec4
Compare
|
Thanks for your feedback @C0urante. I finally had time this past week and tweaked the test to address your comments and fix coverage. |
C0urante
left a comment
There was a problem hiding this comment.
Thanks @hgeraldino! Apologies for the wait, releases, Kafka Summit London, and a few other things have made it difficult to find for review over the last few weeks.
I've finished a complete pass over the PR; once everything is addressed this should be good to merge.
4037471 to
357f582
Compare
|
Thanks @C0urante for your thoroughly review! I think I've addressed all your comments. I've also picked up the work to have the |
C0urante
left a comment
There was a problem hiding this comment.
Thanks @hgeraldino, really close!
…/WorkerSourceTaskTest.java Co-authored-by: Chris Egerton <fearthecellos@gmail.com>
…/WorkerSourceTaskTest.java Co-authored-by: Chris Egerton <fearthecellos@gmail.com>
…/WorkerSourceTaskTest.java Co-authored-by: Chris Egerton <fearthecellos@gmail.com>
…/WorkerSourceTaskTest.java Co-authored-by: Chris Egerton <fearthecellos@gmail.com>
…/WorkerSourceTaskTest.java Co-authored-by: Chris Egerton <fearthecellos@gmail.com>
ca46a7c to
0b4c2fa
Compare
C0urante
left a comment
There was a problem hiding this comment.
Thanks @hgeraldino! Some final suggestions and then this will be good to go. I think it's important that these messages are accurate as they help illustrate the purpose of these tests and may save time for developers who have to read/rewrite them in the future.
…/WorkerSourceTaskTest.java Co-authored-by: Chris Egerton <fearthecellos@gmail.com>
…/WorkerSourceTaskTest.java Co-authored-by: Chris Egerton <fearthecellos@gmail.com>
…/WorkerSourceTaskTest.java Co-authored-by: Chris Egerton <fearthecellos@gmail.com>
…/WorkerSourceTaskTest.java Co-authored-by: Chris Egerton <fearthecellos@gmail.com>
C0urante
left a comment
There was a problem hiding this comment.
Thanks @hgeraldino, LGTM!
…pache#13383) Reviewers: Chris Egerton <chrise@aiven.io>
Follows more or less the same principles as #13191
Committer Checklist (excluded from commit message)