geode-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (GEODE-2046) Tests should not use org.mockito.internal.stubbing.answers.CallsRealMethods
Date Mon, 16 Oct 2017 17:23:00 GMT

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

ASF subversion and git services commented on GEODE-2046:
--------------------------------------------------------

Commit a1d1e9731fdacf5decb663dd7d27fcd15b6889ab in geode's branch refs/heads/develop from
[~apache@the9muses.net]
[ https://gitbox.apache.org/repos/asf?p=geode.git;h=a1d1e97 ]

GEODE-2046: use CALLS_REAL_METHODS instead of internal method


> Tests should not use org.mockito.internal.stubbing.answers.CallsRealMethods
> ---------------------------------------------------------------------------
>
>                 Key: GEODE-2046
>                 URL: https://issues.apache.org/jira/browse/GEODE-2046
>             Project: Geode
>          Issue Type: Bug
>          Components: tests
>            Reporter: Kirk Lund
>            Assignee: Kirk Lund
>
> CallsRealMethods is an internal class that should never be used in test code. Tests should
instead use org.mockito.Mockito.CALLS_REAL_METHODS:
> import static org.mockito.Mockito.*;
> ...
> Foo foo = mock(Foo.class, CALLS_REAL_METHODS);
> when(foo.bar()).thenAnswer("bar");



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

Mime
View raw message