Skip to content

KAFKA-13060: Replace EasyMock and PowerMock with Mockito in WorkerGroupMemberTest#10904

Closed
tang7526 wants to merge 2 commits intoapache:trunkfrom
tang7526:minor/WorkerGroupMemberTest
Closed

KAFKA-13060: Replace EasyMock and PowerMock with Mockito in WorkerGroupMemberTest#10904
tang7526 wants to merge 2 commits intoapache:trunkfrom
tang7526:minor/WorkerGroupMemberTest

Conversation

@tang7526
Copy link
Copy Markdown
Contributor

@tang7526 tang7526 commented Jun 18, 2021

Replace EasyMock and PowerMock with Mockito in WorkerGroupMemberTest
https://issues.apache.org/jira/browse/KAFKA-13060

Committer Checklist (excluded from commit message)

  • Verify design and implementation
  • Verify test coverage and CI build status
  • Verify documentation (including upgrade notes)

@tang7526
Copy link
Copy Markdown
Contributor Author

@chia7712 Could you help to review this PR? thanks.

@ijuma ijuma requested review from chia7712, ijuma, kkonstantine and rhauch and removed request for ijuma June 28, 2021 02:34
@ijuma
Copy link
Copy Markdown
Member

ijuma commented Jun 28, 2021

Thanks for the PR. We should update build.gradle to remove this test from the JDK 16 exclusion list.

@tang7526 tang7526 force-pushed the minor/WorkerGroupMemberTest branch from a84d84d to c83168e Compare June 28, 2021 08:23
@tang7526
Copy link
Copy Markdown
Contributor Author

Thanks for the PR. We should update build.gradle to remove this test from the JDK 16 exclusion list.

Done. I have already removed this test from the JDK 16 exclusion list.

@tang7526 tang7526 force-pushed the minor/WorkerGroupMemberTest branch 3 times, most recently from 1bdeaaf to 20519ee Compare July 11, 2021 19:21
@tang7526 tang7526 changed the title MINOR: Replace EasyMock and PowerMock with Mockito in WorkerGroupMemberTest KAFKA-13060: Replace EasyMock and PowerMock with Mockito in WorkerGroupMemberTest Jul 11, 2021
@tang7526 tang7526 force-pushed the minor/WorkerGroupMemberTest branch from 20519ee to 41091b6 Compare July 14, 2021 16:46
Copy link
Copy Markdown
Member

@ijuma ijuma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR. A couple of comments/questions below.

@RunWith(PowerMockRunner.class)
@PrepareForTest({ConnectUtils.class})
@PowerMockIgnore({"javax.management.*", "javax.crypto.*"})
@ExtendWith(MockitoExtension.class)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have we verified that this JUnit 5 feature works correctly even though we're using the junit vintage engine in this module still?

@divijvaidya
Copy link
Copy Markdown
Member

@tang7526 are you planning to work on this? If not, I would like to take it over.

@ijuma
Copy link
Copy Markdown
Member

ijuma commented Aug 10, 2022

Closing this in favor of #12484.

@ijuma ijuma closed this Aug 10, 2022
ijuma pushed a commit that referenced this pull request Aug 10, 2022
…upMemberTest.java (#12484)

This PR is created on top of #10904 and includes commits from original author for attribution. 

## Testing
1. `./gradlew connect:runtime:unitTest --tests WorkerGroupMemberTest` is successful.
2. Verified that test is run as part of `./gradlew connect:runtime:unitTest` (see report in the PR)

Reviewers: Ismael Juma <ismael@juma.me.uk>

Co-authored-by: Chun-Hao Tang <tang7526@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants