Kirk Lund created GEODE-2046:
--------------------------------

             Summary: 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


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.3.4#6332)

Reply via email to