/external/mockito/src/test/java/org/mockitousage/basicapi/ |
D | MocksSerializationTest.java | 49 Bar barMock = mock(Bar.class, withSettings().serializable()); in should_allow_method_delegation() 60 IMethods mock = mock(IMethods.class, withSettings().serializable()); in should_allow_mock_to_be_serializable() 69 IMethods mock = mock(IMethods.class, withSettings().serializable()); in should_allow_mock_and_boolean_value_to_serializable() 83 IMethods mock = mock(IMethods.class, withSettings().serializable()); in should_allow_mock_and_string_value_to_be_serializable() 98 IMethods mock = mock(IMethods.class, withSettings().serializable()); in should_all_mock_and_serializable_value_to_be_serialized() 112 IMethods mock = mock(IMethods.class, withSettings().serializable()); in should_serialize_method_call_with_parameters_that_are_serializable() 126 IMethods mock = mock(IMethods.class, withSettings().serializable()); in should_serialize_method_calls_using_any_string_matcher() 140 IMethods mock = mock(IMethods.class, withSettings().serializable()); in should_verify_called_n_times_for_serialized_mock() 156 IMethods mock = mock(IMethods.class, withSettings().serializable()); in should_verify_even_if_some_methods_called_after_serialization() 200 IMethods mock = mock(IMethods.class, withSettings().serializable()); in should_stub_even_if_some_methods_called_after_serialization() [all …]
|
D | MockingMultipleInterfacesTest.java | 15 import static org.mockito.Mockito.withSettings; 29 Foo mock = mock(Foo.class, withSettings().extraInterfaces(IFoo.class, IBar.class)); in should_allow_multiple_interfaces() 40 mock(Foo.class, withSettings().extraInterfaces(IFoo.class, null)); in should_scream_when_null_passed_instead_of_an_interface() 52 mock(Foo.class, withSettings().extraInterfaces()); in should_scream_when_no_args_passed() 64 mock(Foo.class, withSettings().extraInterfaces((Class[]) null)); in should_scream_when_null_passed_instead_of_an_array() 76 mock(Foo.class, withSettings().extraInterfaces(Foo.class)); in should_scream_when_non_interface_passed() 88 mock(IMethods.class, withSettings().extraInterfaces(IMethods.class)); in should_scream_when_the_same_interfaces_passed() 109 Object mocked = mock(interface1, withSettings().extraInterfaces(interface2)); in should_mock_class_with_interfaces_of_different_class_loader_AND_different_classpaths()
|
D | MocksCreationTest.java | 40 IMethods mock = mock(IMethods.class, withSettings() in shouldCombineMockNameAndSmartNulls() 60 IMethods mock = mock(IMethods.class, withSettings() in shouldCombineMockNameAndExtraInterfaces() 76 IMethods mock = mock(IMethods.class, withSettings().name("great mockie")); in shouldSpecifyMockNameViaSettings() 91 mock(List.class, withSettings().spiedInstance(list)); in shouldScreamWhenSpyCreatedWithWrongType() 100 mock(LinkedList.class, withSettings().spiedInstance(list)); in shouldAllowCreatingSpiesWithCorrectType()
|
/external/mockito/src/test/java/org/mockitousage/constructor/ |
D | CreatingMocksWithConstructorTest.java | 18 import static org.mockito.Mockito.withSettings; 37 …Message mock = mock(Message.class, withSettings().useConstructor().defaultAnswer(CALLS_REAL_METHOD… in can_create_mock_with_constructor() 44 …AbstractMessage mock = mock(AbstractMessage.class, withSettings().useConstructor().defaultAnswer(C… in can_mock_abstract_classes() 56 …InnerClass mock = mock(InnerClass.class, withSettings().useConstructor().outerInstance(this).defau… in can_mock_inner_classes() 81 …mock(InnerClass.class, withSettings().useConstructor().outerInstance("foo").defaultAnswer(CALLS_RE… in mocking_inner_classes_with_wrong_outer_instance() 94 mock(IMethods.class, withSettings().useConstructor()); in mocking_interfaces_with_constructor() 102 …mock(AbstractMessage.class, withSettings().useConstructor().serializable(SerializableMode.ACROSS_C… in prevents_across_jvm_serialization_with_constructor() 139 List list = mock(List.class, withSettings().defaultAnswer(CALLS_REAL_METHODS)); in calls_real_interface_method()
|
/external/mockito/src/test/java/org/mockitousage/debugging/ |
D | VerboseLoggingOfInvocationsOnMockTest.java | 55 Foo foo = mock(Foo.class, withSettings().verboseLogging()); in shouldNotPrintInvocationOnMockWithoutSetting() 71 Foo foo = mock(Foo.class, withSettings().verboseLogging()); in shouldPrintUnstubbedInvocationOnMockToStdOut() 87 Foo foo = mock(Foo.class, withSettings().verboseLogging()); in shouldPrintStubbedInvocationOnMockToStdOut() 105 Foo foo = mock(Foo.class, withSettings().verboseLogging()); in shouldPrintThrowingInvocationOnMockToStdOut() 127 withSettings().spiedInstance(new FooImpl()).verboseLogging()); in shouldPrintRealInvocationOnSpyToStdOut() 144 Foo foo = mock(Foo.class, withSettings().verboseLogging()); in usage()
|
D | InvocationListenerCallbackTest.java | 31 Foo foo = mock(Foo.class, withSettings().invocationListeners(listener)); in should_call_single_listener_when_mock_return_normally() 46 Foo foo = mock(Foo.class, withSettings().invocationListeners(listener1, listener2)); in should_call_all_listener_when_mock_return_normally() 62 Foo foo = mock(Foo.class, withSettings().invocationListeners(listener1, listener2)); in should_call_all_listener_when_mock_throws_exception()
|
/external/mockito/src/test/java/org/mockitousage/stubbing/ |
D | StubbingWithDelegateVarArgsTest.java | 8 import static org.mockito.Mockito.withSettings; 27 Foo foo = mock(Foo.class, withSettings() in should_not_fail_when_calling_varargs_method() 34 Foo foo = mock(Foo.class, withSettings() in should_not_fail_when_calling_varargs_method_without_arguments() 42 Foo foo = mock(Foo.class, withSettings() in should_not_fail_when_calling_varargs_method_with_null_argument()
|
/external/mockito/src/main/java/org/mockito/ |
D | Mockito.java | 1618 return mock(classToMock, withSettings()); in mock() 1637 return mock(classToMock, withSettings() in mock() 1678 return mock(classToMock, withSettings().defaultAnswer(defaultAnswer)); in mock() 1788 return MOCKITO_CORE.mock((Class<T>) object.getClass(), withSettings() in spy() 1822 return MOCKITO_CORE.mock(classToSpy, withSettings() in spy() 2710 public static MockSettings withSettings() { in withSettings() method in Mockito
|
/external/mockito/src/test/java/org/mockitousage/stacktrace/ |
D | ModellingDescriptiveMessagesTest.java | 172 mock(IMethods.class, withSettings().extraInterfaces(List.class, null)); in shouldScreamWhenNullPassedInsteadOfAnInterface() 177 mock(IMethods.class, withSettings().extraInterfaces(LinkedList.class)); in shouldScreamWhenNonInterfacePassed() 182 mock(IMethods.class, withSettings().extraInterfaces(IMethods.class)); in shouldScreamWhenExtraIsTheSame() 187 mock(IMethods.class, withSettings().extraInterfaces()); in shouldScreamWhenExtraInterfacesEmpty() 192 mock(IMethods.class, withSettings().extraInterfaces((Class<?>[]) null)); in shouldScreamWhenExtraInterfacesIsANullArray()
|
/external/mockito/src/test/java/org/mockitousage/serialization/ |
D | DeepStubsSerializableTest.java | 18 …SampleClass sampleClass = mock(SampleClass.class, withSettings().defaultAnswer(RETURNS_DEEP_STUBS)… in should_serialize_and_deserialize_mock_created_with_deep_stubs() 33 …ListContainer deep_stubbed = mock(ListContainer.class, withSettings().defaultAnswer(RETURNS_DEEP_S… in should_serialize_and_deserialize_parameterized_class_mocked_with_deep_stubs() 47 …ListContainer deep_stubbed = mock(ListContainer.class, withSettings().defaultAnswer(RETURNS_DEEP_S… in should_discard_generics_metadata_when_serialized_then_disabling_deep_stubs_with_generics()
|
D | ParallelSerializationTest.java | 19 import static org.mockito.Mockito.withSettings; 29 …final IMethods iMethods_that_store_invocations = mock(IMethods.class, withSettings().serializable(… in single_mock_being_serialized_in_different_classloaders_by_multiple_threads()
|
/external/mockito/src/test/java/org/mockitousage/performance/ |
D | StubOnlyAvoidMemoryConsumptionTest.java | 12 Object obj = mock(Object.class, withSettings().stubOnly()); in using_stub_only_wont_thrown_an_OutOfMemoryError() 23 Object obj = mock(Object.class, withSettings()); in without_stub_only_mocks_will_store_invocations_leading_to_an_OutOfMemoryError()
|
/external/mockito/src/main/java/org/mockito/internal/configuration/injection/ |
D | SpyOnInjectedFieldsHandler.java | 17 import static org.mockito.Mockito.withSettings; 43 Object mock = Mockito.mock(instance.getClass(), withSettings() in processInjection()
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/duration/ |
D | BasicPeriodBuilderFactory.java | 361 return withSettings(newSettings); 366 protected abstract PeriodBuilder withSettings(BasicPeriodBuilderFactory.Settings settingsToUse); 392 protected PeriodBuilder withSettings(BasicPeriodBuilderFactory.Settings settingsToUse) { 421 protected PeriodBuilder withSettings(BasicPeriodBuilderFactory.Settings settingsToUse) { 456 protected PeriodBuilder withSettings(BasicPeriodBuilderFactory.Settings settingsToUse) { 507 protected PeriodBuilder withSettings(BasicPeriodBuilderFactory.Settings settingsToUse) {
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/duration/ |
D | BasicPeriodBuilderFactory.java | 360 return withSettings(newSettings); 365 protected abstract PeriodBuilder withSettings(BasicPeriodBuilderFactory.Settings settingsToUse); 391 protected PeriodBuilder withSettings(BasicPeriodBuilderFactory.Settings settingsToUse) { 420 protected PeriodBuilder withSettings(BasicPeriodBuilderFactory.Settings settingsToUse) { 455 protected PeriodBuilder withSettings(BasicPeriodBuilderFactory.Settings settingsToUse) { 506 protected PeriodBuilder withSettings(BasicPeriodBuilderFactory.Settings settingsToUse) {
|
/external/mockito/src/main/java/org/mockito/internal/stubbing/defaultanswers/ |
D | ReturnsDeepStubs.java | 23 import static org.mockito.Mockito.withSettings; 104 withSettings().extraInterfaces(returnTypeGenericMetadata.rawExtraInterfaces()) in withSettingsUsing() 105 : withSettings(); in withSettingsUsing()
|
/external/mockito/src/main/java/org/mockito/internal/configuration/ |
D | SpyAnnotationEngine.java | 23 import static org.mockito.Mockito.withSettings; 76 withSettings().spiedInstance(instance) in spyInstance() 83 MockSettings settings = withSettings().defaultAnswer(CALLS_REAL_METHODS) in spyNewInstance()
|
D | MockAnnotationProcessor.java | 18 MockSettings mockSettings = Mockito.withSettings(); in process()
|
/external/mockito/src/test/java/org/mockito/internal/util/ |
D | MockUtilTest.java | 20 import static org.mockito.Mockito.withSettings; 61 …assertTrue(MockUtil.isSpy(Mockito.mock(ArrayList.class, withSettings().defaultAnswer(Mockito.CALLS… in should_validate_spy()
|
D | DefaultMockingDetailsTest.java | 24 import static org.mockito.Mockito.withSettings; 43 …assertTrue(mockingDetails(mock(Gork.class, withSettings().defaultAnswer(Mockito.CALLS_REAL_METHODS… in should_know_spy()
|
/external/parameter-framework/upstream/parameter/ |
D | ParameterMgr.h | 318 bool importDomainsXml(const std::string &xmlSource, bool withSettings, bool fromFile, 335 bool importSingleDomainXml(const std::string &xmlSource, bool overwrite, bool withSettings, 350 bool exportDomainsXml(std::string &xmlDest, bool withSettings, bool toFile, 367 bool withSettings, bool toFile, std::string &errorMsg) const; 748 bool wrapLegacyXmlImport(const std::string &xmlSource, bool fromFile, bool withSettings, 788 bool wrapLegacyXmlExport(std::string &xmlDest, bool toFile, bool withSettings,
|
D | XmlDomainSerializingContext.h | 45 bool withSettings() const { return _bWithSettings; } in withSettings() function
|
D | ParameterMgr.cpp | 2538 bool CParameterMgr::importDomainsXml(const string &xmlSource, bool withSettings, bool fromFile, in importDomainsXml() argument 2553 bool importSuccess = wrapLegacyXmlImport(xmlSource, fromFile, withSettings, in importDomainsXml() 2566 bool withSettings, bool fromFile, string &errorMsg) in importSingleDomainXml() argument 2580 if (!wrapLegacyXmlImport(xmlSource, fromFile, withSettings, *standaloneDomain, "", errorMsg)) { in importSingleDomainXml() 2593 bool CParameterMgr::wrapLegacyXmlImport(const string &xmlSource, bool fromFile, bool withSettings, in wrapLegacyXmlImport() argument 2597 CXmlDomainImportContext xmlDomainImportContext(errorMsg, withSettings, *getSystemClass()); in wrapLegacyXmlImport() 2636 bool CParameterMgr::exportDomainsXml(string &xmlDest, bool withSettings, bool toFile, in exportDomainsXml() argument 2644 return wrapLegacyXmlExport(xmlDest, toFile, withSettings, *configurableDomains, errorMsg); in exportDomainsXml() 2648 bool withSettings, bool toFile, string &errorMsg) const in exportSingleDomainXml() argument 2661 return wrapLegacyXmlExport(xmlDest, toFile, withSettings, *requestedDomain, errorMsg); in exportSingleDomainXml() [all …]
|
/external/mockito/src/test/java/org/mockitousage/bugs/ |
D | ListenersLostOnResetMockTest.java | 22 List mockedList = mock(List.class, withSettings().invocationListeners(invocationListener)); in listener()
|
/external/mockito/src/test/java/org/mockito/ |
D | MockitoTest.java | 56 MockSettingsImpl<?> settings = (MockSettingsImpl<?>) Mockito.withSettings(); in shouldStartingMockSettingsContainDefaultBehavior()
|