[ 
https://issues.apache.org/jira/browse/HADOOP-14245?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16096689#comment-16096689
 ] 

Andras Bokor commented on HADOOP-14245:
---------------------------------------

Also, I would consider removing {{MockitoMaker}} class and use the standard way 
to mock objects.
For a developer who knows Mockito it's harder to read and misleading since it's 
using the deprecated syntax (at least that's I felt during looking into this 
ticket).
Any thoughts?

> Use Mockito.when instead of Mockito.stub
> ----------------------------------------
>
>                 Key: HADOOP-14245
>                 URL: https://issues.apache.org/jira/browse/HADOOP-14245
>             Project: Hadoop Common
>          Issue Type: Test
>          Components: test
>            Reporter: Akira Ajisaka
>            Assignee: Xiaobing Zhou
>            Priority: Minor
>
> Mockito.stub was removed in Mockito 2. Mockito.when should be used instead.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to