mdedetrich opened a new pull request, #12725:
URL: https://github.com/apache/kafka/pull/12725

   The PR migrates EasyMock to Mockito for ConnectorsResourceTest, notable 
changes:
   
   * The expectCallback functions (such as `expectAndCallbackResult`) have been 
changed to return a `Stubbing` due to the fact that unless EasyMock (which 
applies the mocking to the last statement), Mockito uses a builder pattern on 
stubbing
   * When using `any(<class>)` from Mockito it doesn't work with `static` 
classes (or in other words it will fail to pick up the mock if a `class` class 
is supplied). Due to this `EasyMock.anyObject(InternalRequestSignature.class)` 
has been changed to `any()` instead of `any(InternalRequestSignature.class)`
   * `RestClient` had to be changed to use `mockStatic` 
   
   
   


-- 
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-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to