kafka icon indicating copy to clipboard operation
kafka copied to clipboard

KAFKA-12947: Replace EasyMock and PowerMock with Mockito for StreamsMetricsImplTest

Open dplavcic opened this issue 3 years ago • 2 comments

Based on the Replace EasyMock and PowerMock with Mockito Jira ticket:

Development of EasyMock and PowerMock has stagnated while Mockito continues to be actively developed. With the new Java cadence, it's a problem to depend on libraries that do bytecode generation and are not actively maintained. In addition, Mockito is also easier to use.

Since the original PR #10881 (KAFKA-12947 Replace EasyMock and PowerMock with Mockito for Streams…) author is no longer accessible, this PR is created to fix what was started more than a year ago.

Each test change has a separate commit (which can make it a little bit easier to review).

Committer Checklist (excluded from commit message)

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

dplavcic avatar Jul 28 '22 04:07 dplavcic

@ableegoldman, @cadonna could you please help review this changes in the streams test domain?

dplavcic avatar Aug 03 '22 19:08 dplavcic

@cadonna, @clolov can you please help me get this PR merged (if/when you have time, ofc)?

dplavcic avatar Sep 10 '22 06:09 dplavcic

Hello @dplavcic and @cadonna, how is this pull request fairing? Is there something outstanding as a review or comments to be addressed?

clolov avatar Feb 02 '23 13:02 clolov

Hello @dplavcic and @cadonna, how is this pull request fairing? Is there something outstanding as a review or comments to be addressed?

@clolov , I will work on this during the next two weeks. Apologies for a delayed response.

dplavcic avatar May 10 '23 15:05 dplavcic

@dplavcic It would be nice to get this over the line. Are you still willing to work on this?

ijuma avatar Oct 17 '23 13:10 ijuma

It's also worth mentioning that this is the last remaining Streams test that uses PowerMock.

ijuma avatar Oct 17 '23 14:10 ijuma

@ijuma , @clolov fixed this in the https://github.com/apache/kafka/pull/14623 . Tnx @clolov 🙌

dplavcic avatar Nov 04 '23 05:11 dplavcic