KAFKA-14133: Migrate ActiveTaskCreator mock in TaskManagerTest to Mockito#13681
KAFKA-14133: Migrate ActiveTaskCreator mock in TaskManagerTest to Mockito#13681cadonna merged 5 commits intoapache:trunkfrom
Conversation
There was a problem hiding this comment.
Thank you for your first contribution to the community @mehbey. Welcome!
I think that this PR may be incomplete since the objective of JIRA-14133 (i.e. to migrate from easymock to mockito) is not accomplished in this PR. We have a large number of easymock usage in this PR. Is that intentional? Nevermind, I missed reading the description earlier where you mentioned that it is intentional to reduce the scope of changes.
As a reviewer, I would have personally have preferred an approach where we are migrating a few tests at a time completely instead of a PR per mock, but this approach works as well.
…kito V2. 1) Addressed @divijvaidya's comment. 2) Resolved merge conflict with the latest changes from trunk
|
Addressed Divij's comment and re-based with the latest changes. |
|
Verified that failing Testing are not related to this change |
clolov
left a comment
There was a problem hiding this comment.
Thank you very much! There are a couple of stylistic changes which I have aimed to provide an alternative for. Let me know your thoughts if you disagree.
|
Thank you for the review @clolov - I will address the comments shortly |
machi1990
left a comment
There was a problem hiding this comment.
I noticed a small unrelated typo as I was reviewing the PR (unrelated to this PR) but I think it can be fixed along this PR if you are okay with this. The typo is in
It should read processable and not proccssible. Thaks
|
@machi1990, thank you for the review. I have addressed your comment. |
cadonna
left a comment
There was a problem hiding this comment.
@mehbey Thanks for your PR!
Sorry that it took me so long to review it!
Please fix the indentations that @clolov pointed out, the needless multiple calls to .thenReturn(), and the duplicate line (https://github.com/apache/kafka/pull/13681/files#r1191127707).
Once that is done, I think the PR is ready to merge.
|
@cadonna Thank you for the review. Addressed all outstanding comments. Please take another look when you get some time. Thank you. |
|
Build failures are unrelated: |
This pull requests migrates the ActiveTaskCreator mock in TaskManagerTest from EasyMock to Mockito
The change is restricted to a single mock to minimize the scope and make it easier for review.
Please see two examples that follows the same pattern below:
#13529
#13621
Summary of testing strategy (including rationale)
Verified that all tests are passing