/external/mockito/src/test/java/org/mockitousage/constructor/ |
D | CreatingMocksWithConstructorTest.java | 47 …Message mock = mock(Message.class, withSettings().useConstructor().defaultAnswer(CALLS_REAL_METHOD… in can_create_mock_with_constructor() 54 …ge mock = mock(AbstractMessage.class, withSettings().useConstructor().defaultAnswer(CALLS_REAL_MET… in can_mock_abstract_classes() 66 …= mock(AbstractMessage.class, withSettings().useConstructor("hello!").defaultAnswer(CALLS_REAL_MET… in can_spy_abstract_classes_with_constructor_args() 72 …e mock = mock(AbstractMessage.class, withSettings().useConstructor(7).defaultAnswer(CALLS_REAL_MET… in can_spy_abstract_classes_with_constructor_primitive_args() 78 …tractMessage.class, withSettings().useConstructor(new Object[]{null}).defaultAnswer(CALLS_REAL_MET… in can_spy_abstract_classes_with_constructor_array_of_nulls() 84 …k(AbstractMessage.class, withSettings().useConstructor((String) null).defaultAnswer(CALLS_REAL_MET… in can_spy_abstract_classes_with_casted_null() 91 …mock(AbstractMessage.class, withSettings().useConstructor(null).defaultAnswer(CALLS_REAL_METHODS)); in can_spy_abstract_classes_with_null_varargs() 101 …InnerClass.class, withSettings().useConstructor().outerInstance(this).defaultAnswer(CALLS_REAL_MET… in can_mock_inner_classes() 114 …mock(ThrowingConstructorClass.class, withSettings().useConstructor().defaultAnswer(CALLS_REAL_METH… in explains_constructor_exceptions() 159 …UsesBase u = mock(UsesBase.class, withSettings().useConstructor(new Base()).defaultAnswer(CALLS_RE… in can_mock_unambigous_constructor_with_inheritance_base_class_exact_match() [all …]
|
/external/mockito/src/main/java/org/mockito/ |
D | Mockito.java | 1836 .defaultAnswer(RETURNS_DEFAULTS)); in mock() 1876 public static <T> T mock(Class<T> classToMock, Answer defaultAnswer) { in mock() argument 1877 return mock(classToMock, withSettings().defaultAnswer(defaultAnswer)); in mock() 1991 .defaultAnswer(CALLS_REAL_METHODS)); in spy() 2026 .defaultAnswer(CALLS_REAL_METHODS)); in spy() 2955 return new MockSettingsImpl().defaultAnswer(RETURNS_DEFAULTS); in withSettings()
|
D | MockSettings.java | 150 MockSettings defaultAnswer(Answer defaultAnswer); in defaultAnswer() method
|
/external/mockito/src/test/java/org/mockitousage/stubbing/ |
D | StubbingWithDelegateVarArgsTest.java | 32 .defaultAnswer(delegatesTo(new FooImpl()))); in should_not_fail_when_calling_varargs_method() 39 .defaultAnswer(delegatesTo(new FooImpl()))); in should_not_fail_when_calling_varargs_method_without_arguments() 47 .defaultAnswer(delegatesTo(new FooImpl()))); in should_not_fail_when_calling_varargs_method_with_null_argument()
|
/external/mockito/src/main/java/org/mockito/internal/creation/ |
D | MockSettingsImpl.java | 99 public MockSettings defaultAnswer(Answer defaultAnswer) { in defaultAnswer() argument 100 this.defaultAnswer = defaultAnswer; in defaultAnswer() 101 if (defaultAnswer == null) { in defaultAnswer() 109 return defaultAnswer; in getDefaultAnswer()
|
/external/mockito/src/main/java/org/mockito/internal/creation/settings/ |
D | CreationSettings.java | 29 protected Answer<Object> defaultAnswer; field in CreationSettings 50 this.defaultAnswer = copy.defaultAnswer; in CreationSettings() 93 return defaultAnswer; in getDefaultAnswer()
|
/external/mockito/src/test/java/org/mockitousage/serialization/ |
D | DeepStubsSerializableTest.java | 22 …SampleClass sampleClass = mock(SampleClass.class, withSettings().defaultAnswer(RETURNS_DEEP_STUBS)… in should_serialize_and_deserialize_mock_created_with_deep_stubs() 37 …ListContainer deep_stubbed = mock(ListContainer.class, withSettings().defaultAnswer(RETURNS_DEEP_S… in should_serialize_and_deserialize_parameterized_class_mocked_with_deep_stubs() 51 …ListContainer deep_stubbed = mock(ListContainer.class, withSettings().defaultAnswer(RETURNS_DEEP_S… in should_discard_generics_metadata_when_serialized_then_disabling_deep_stubs_with_generics()
|
/external/dexmaker/dexmaker-mockito-inline-extended/src/main/java/com/android/dx/mockito/inline/extended/ |
D | StaticMockitoSessionBuilder.java | 74 public <T> StaticMockitoSessionBuilder mockStatic(Class<T> clazz, Answer defaultAnswer) { in mockStatic() argument 75 staticMockings.add(new StaticMocking<>(clazz, () -> Mockito.mock(clazz, defaultAnswer))); in mockStatic() 104 .defaultAnswer(CALLS_REAL_METHODS)))); in spyStatic()
|
/external/mockito/src/test/java/org/mockito/configuration/ |
D | MockitoConfiguration.java | 21 public void overrideDefaultAnswer(Answer<Object> defaultAnswer) { in overrideDefaultAnswer() argument 22 this.overriddenDefaultAnswer = defaultAnswer; in overrideDefaultAnswer()
|
/external/mockito/src/test/java/org/mockito/internal/handler/ |
D | MockHandlerFactoryTest.java | 32 …ttings<?> settings = (MockCreationSettings<?>) new MockSettingsImpl().defaultAnswer(new Returns(nu… in handle_result_must_not_be_null_for_primitives() 50 …ttings<?> settings = (MockCreationSettings<?>) new MockSettingsImpl().defaultAnswer(new Returns(12… in valid_handle_result_is_permitted()
|
/external/mockito/src/main/java/org/mockito/internal/configuration/ |
D | SpyAnnotationEngine.java | 77 .defaultAnswer(CALLS_REAL_METHODS) in spyInstance() 83 MockSettings settings = withSettings().defaultAnswer(CALLS_REAL_METHODS) in spyNewInstance()
|
D | MockAnnotationProcessor.java | 40 mockSettings.defaultAnswer(annotation.answer()); in processAnnotationForMock()
|
/external/mockito/src/main/java/org/mockito/internal/stubbing/defaultanswers/ |
D | ReturnsMocks.java | 34 return mockitoCore.mock(clazz, new MockSettingsImpl().defaultAnswer(this)); in returnValueFor()
|
D | ReturnsDeepStubs.java | 108 .defaultAnswer(returnsDeepStubsAnswerUsing(returnTypeGenericMetadata)); in withSettingsUsing()
|
/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/mockito/internal/creation/bytebuddy/ |
D | InlineByteBuddyMockMakerTest.java | 162 mockSettings.defaultAnswer(new Returns(10)); in should_mock_interface() 172 mockSettings.defaultAnswer(new Returns("foo")); in should_mock_interface_to_string() 328 mockSettings.defaultAnswer(new Returns("bar")); in settingsFor()
|
D | AbstractByteBuddyMockMakerTest.java | 180 mockSettings.defaultAnswer(new CallsRealMethods()); in settingsWithSuperCall()
|
/external/mockito/src/test/java/org/mockitousage/basicapi/ |
D | MocksCreationTest.java | 37 .defaultAnswer(RETURNS_SMART_NULLS) in shouldCombineMockNameAndSmartNulls()
|
D | MocksSerializationTest.java | 281 .defaultAnswer(CALLS_REAL_METHODS) in should_serialize_with_real_object_spy() 388 …IMethods iMethods = mock(IMethods.class, withSettings().serializable().defaultAnswer(RETURNS_DEEP_… in BUG_ISSUE_399_try_some_mocks_with_current_answers()
|
D | MocksSerializationForAnnotationTest.java | 259 .defaultAnswer(CALLS_REAL_METHODS) in should_serialize_with_real_object_spy()
|
/external/mockito/src/test/java/org/mockito/internal/util/ |
D | MockUtilTest.java | 61 …assertTrue(MockUtil.isSpy(Mockito.mock(ArrayList.class, withSettings().defaultAnswer(Mockito.CALLS… in should_validate_spy()
|
D | DefaultMockingDetailsTest.java | 55 …assertTrue(mockingDetails(mock(Gork.class, withSettings().defaultAnswer(Mockito.CALLS_REAL_METHODS… in should_know_spy()
|
/external/pdfium/fxjs/xfa/ |
D | cjx_hostpseudomodel.cpp | 323 WideString defaultAnswer; in response() local 325 defaultAnswer = runtime->ToWideString(params[2]); in response() 332 pNotify->GetAppProvider()->Response(question, title, defaultAnswer, mark); in response()
|