Home
last modified time | relevance | path

Searched refs:CALLS_REAL_METHODS (Results 1 – 14 of 14) sorted by relevance

/external/mockito/src/test/java/org/mockitousage/constructor/
DCreatingMocksWithConstructorTest.java14 import static org.mockito.Mockito.CALLS_REAL_METHODS;
37 …sage mock = mock(Message.class, withSettings().useConstructor().defaultAnswer(CALLS_REAL_METHODS)); in can_create_mock_with_constructor()
44 …k = mock(AbstractMessage.class, withSettings().useConstructor().defaultAnswer(CALLS_REAL_METHODS)); in can_mock_abstract_classes()
56 …lass.class, withSettings().useConstructor().outerInstance(this).defaultAnswer(CALLS_REAL_METHODS)); in can_mock_inner_classes()
81 …ass.class, withSettings().useConstructor().outerInstance("foo").defaultAnswer(CALLS_REAL_METHODS)); in mocking_inner_classes_with_wrong_outer_instance()
139 List list = mock(List.class, withSettings().defaultAnswer(CALLS_REAL_METHODS)); in calls_real_interface_method()
/external/mockito/src/main/java/org/mockito/
DMockito.java1536 public static final Answer<Object> CALLS_REAL_METHODS = Answers.CALLS_REAL_METHODS; field in Mockito
1790 .defaultAnswer(CALLS_REAL_METHODS)); in spy()
1824 .defaultAnswer(CALLS_REAL_METHODS)); in spy()
DAnswers.java72 CALLS_REAL_METHODS(new CallsRealMethods()), enumConstant
/external/mockito/src/main/java/org/mockito/internal/configuration/
DSpyAnnotationEngine.java22 import static org.mockito.Mockito.CALLS_REAL_METHODS;
77 .defaultAnswer(CALLS_REAL_METHODS) in spyInstance()
83 MockSettings settings = withSettings().defaultAnswer(CALLS_REAL_METHODS) in spyNewInstance()
/external/mockito/src/main/java/org/mockito/internal/configuration/injection/
DSpyOnInjectedFieldsHandler.java45 .defaultAnswer(Mockito.CALLS_REAL_METHODS) in processInjection()
/external/mockito/src/test/java/org/mockitousage/stubbing/
DCallingRealMethodTest.java63 TestedObject mock = mock(TestedObject.class, CALLS_REAL_METHODS); in shouldCallRealMethodByDefault()
/external/mockito/src/test/java/org/mockito/internal/util/
DMockUtilTest.java61 …il.isSpy(Mockito.mock(ArrayList.class, withSettings().defaultAnswer(Mockito.CALLS_REAL_METHODS)))); in should_validate_spy()
DDefaultMockingDetailsTest.java43 …ckingDetails(mock(Gork.class, withSettings().defaultAnswer(Mockito.CALLS_REAL_METHODS))).isMock()); in should_know_spy()
/external/mockito/src/main/java/org/mockito/internal/util/
DMockUtil.java67 … return isMock(mock) && getMockSettings(mock).getDefaultAnswer() == Mockito.CALLS_REAL_METHODS; in isSpy()
/external/nanohttpd/websocket/src/test/java/fi/iki/elonen/
DWebSocketResponseHandlerTest.java106 this.nanoWebSocketServer = Mockito.mock(MockedWSD.class, Mockito.CALLS_REAL_METHODS); in setUp()
/external/dagger2/producers/src/test/java/dagger/producers/internal/
DAbstractProducerTest.java54 monitor = Mockito.mock(ProducerMonitor.class, Mockito.CALLS_REAL_METHODS); in initMocks()
/external/dagger2/compiler/src/it/producers-functional-tests/src/test/java/producerstest/
DProducerFactoryTest.java51 monitor = Mockito.mock(ProducerMonitor.class, Mockito.CALLS_REAL_METHODS); in setUpMocks()
/external/mockito/src/test/java/org/mockitousage/basicapi/
DMocksSerializationForAnnotationTest.java260 .defaultAnswer(CALLS_REAL_METHODS) in should_serialize_with_real_object_spy()
DMocksSerializationTest.java281 .defaultAnswer(CALLS_REAL_METHODS) in should_serialize_with_real_object_spy()