Searched refs:CALLS_REAL_METHODS (Results 1 – 14 of 14) sorted by relevance
/external/mockito/src/test/java/org/mockitousage/constructor/ |
D | CreatingMocksWithConstructorTest.java | 14 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/ |
D | Mockito.java | 1536 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()
|
D | Answers.java | 72 CALLS_REAL_METHODS(new CallsRealMethods()), enumConstant
|
/external/mockito/src/main/java/org/mockito/internal/configuration/ |
D | SpyAnnotationEngine.java | 22 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/ |
D | SpyOnInjectedFieldsHandler.java | 45 .defaultAnswer(Mockito.CALLS_REAL_METHODS) in processInjection()
|
/external/mockito/src/test/java/org/mockitousage/stubbing/ |
D | CallingRealMethodTest.java | 63 TestedObject mock = mock(TestedObject.class, CALLS_REAL_METHODS); in shouldCallRealMethodByDefault()
|
/external/mockito/src/test/java/org/mockito/internal/util/ |
D | MockUtilTest.java | 61 …il.isSpy(Mockito.mock(ArrayList.class, withSettings().defaultAnswer(Mockito.CALLS_REAL_METHODS)))); in should_validate_spy()
|
D | DefaultMockingDetailsTest.java | 43 …ckingDetails(mock(Gork.class, withSettings().defaultAnswer(Mockito.CALLS_REAL_METHODS))).isMock()); in should_know_spy()
|
/external/mockito/src/main/java/org/mockito/internal/util/ |
D | MockUtil.java | 67 … return isMock(mock) && getMockSettings(mock).getDefaultAnswer() == Mockito.CALLS_REAL_METHODS; in isSpy()
|
/external/nanohttpd/websocket/src/test/java/fi/iki/elonen/ |
D | WebSocketResponseHandlerTest.java | 106 this.nanoWebSocketServer = Mockito.mock(MockedWSD.class, Mockito.CALLS_REAL_METHODS); in setUp()
|
/external/dagger2/producers/src/test/java/dagger/producers/internal/ |
D | AbstractProducerTest.java | 54 monitor = Mockito.mock(ProducerMonitor.class, Mockito.CALLS_REAL_METHODS); in initMocks()
|
/external/dagger2/compiler/src/it/producers-functional-tests/src/test/java/producerstest/ |
D | ProducerFactoryTest.java | 51 monitor = Mockito.mock(ProducerMonitor.class, Mockito.CALLS_REAL_METHODS); in setUpMocks()
|
/external/mockito/src/test/java/org/mockitousage/basicapi/ |
D | MocksSerializationForAnnotationTest.java | 260 .defaultAnswer(CALLS_REAL_METHODS) in should_serialize_with_real_object_spy()
|
D | MocksSerializationTest.java | 281 .defaultAnswer(CALLS_REAL_METHODS) in should_serialize_with_real_object_spy()
|