You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Swapnil Bawaskar (JIRA)" <ji...@apache.org> on 2018/02/01 22:52:55 UTC

[jira] [Closed] (GEODE-2046) Tests should not use org.mockito.internal.stubbing.answers.CallsRealMethods

     [ https://issues.apache.org/jira/browse/GEODE-2046?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Swapnil Bawaskar closed GEODE-2046.
-----------------------------------

> 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
>            Priority: Major
>             Fix For: 1.4.0
>
>
> 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
(v7.6.3#76005)