You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Dongjoon Hyun (JIRA)" <ji...@apache.org> on 2019/01/05 03:26:00 UTC
[jira] [Resolved] (SPARK-26536) Upgrade Mockito to 2.23.4
[ https://issues.apache.org/jira/browse/SPARK-26536?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dongjoon Hyun resolved SPARK-26536.
-----------------------------------
Resolution: Fixed
Assignee: Dongjoon Hyun (was: Apache Spark)
Fix Version/s: 3.0.0
This is resolved via https://github.com/apache/spark/pull/23452
> Upgrade Mockito to 2.23.4
> -------------------------
>
> Key: SPARK-26536
> URL: https://issues.apache.org/jira/browse/SPARK-26536
> Project: Spark
> Issue Type: Sub-task
> Components: Build, Tests
> Affects Versions: 3.0.0
> Reporter: Dongjoon Hyun
> Assignee: Dongjoon Hyun
> Priority: Major
> Fix For: 3.0.0
>
>
> 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.
> {code}
> saslHandler.channelInactive(null);
> - verify(handler).channelInactive(any(TransportClient.class));
> + verify(handler).channelInactive(isNull());
> {code}
> - Make and use `doReturn` wrapper to avoid [SI-4775|https://issues.scala-lang.org/browse/SI-4775]
> {code}
> private def doReturn(value: Any) = org.mockito.Mockito.doReturn(value, Seq.empty: _*)
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org