Description
This issue upgrades Mockito from 1.10.19 to 2.23.4. The following changes are required.
- Replace `org.mockito.Matchers` with `org.mockito.ArgumentMatchers`
- Replace `anyObject` with `any`
- Replace `getArgumentAt` with `getArgument` and add type annotation.
- Use `isNull` matcher in case of `null` is invoked.
saslHandler.channelInactive(null); - verify(handler).channelInactive(any(TransportClient.class)); + verify(handler).channelInactive(isNull());
- Make and use `doReturn` wrapper to avoid SI-4775
private def doReturn(value: Any) = org.mockito.Mockito.doReturn(value, Seq.empty: _*)
Attachments
Issue Links
- is related to
-
SPARK-28370 Upgrade Mockito to 2.28.2
- Resolved
- links to