Home
last modified time | relevance | path

Searched defs:mock (Results 1 – 25 of 260) sorted by relevance

1234567891011

/external/mockito/src/test/java/org/mockitousage/jls/
DJLS_15_12_2_5Test.java55 SingleOverload mock = mock(SingleOverload.class); in with_single_arg() local
67 SingleOverload mock = mock(SingleOverload.class); in with_single_arg_and_matcher_cast() local
76 SingleOverload mock = mock(SingleOverload.class); in with_single_arg_and_null_Object_reference() local
86 SingleOverload mock = mock(SingleOverload.class); in with_variable_arg() local
98 SingleOverload mock = mock(SingleOverload.class); in with_variable_arg_and_matcher_String_cast() local
107 SingleOverload mock = mock(SingleOverload.class); in with_variable_arg_and_matcher_String_array_cast() local
116 SingleOverload mock = mock(SingleOverload.class); in with_variable_arg_and_null_Object_array() local
126 SingleOverload mock = mock(SingleOverload.class); in with_variable_arg_and_null_Object_arg() local
189 SingleOverload mock = mock(SingleOverload.class); in with_single_arg() local
198 SingleOverload mock = mock(SingleOverload.class); in with_single_arg_and_null_Object_reference() local
[all …]
/external/mockito/src/test/java/org/mockito/internal/
DInvalidStateDetectionTest.java42 @Mock private IMethods mock; field in InvalidStateDetectionTest
166 void detect(IMethods mock); in detect()
170 public void detect(IMethods mock) { in detect()
176 public void detect(IMethods mock) { in detect()
182 public void detect(IMethods mock) { in detect()
188 public void detect(IMethods mock) { in detect()
194 public void detect(IMethods mock) { in detect()
200 public void detect(IMethods mock) { in detect()
206 public void detect(IMethods mock) { in detect()
212 public void detect(IMethods mock) { in detect()
[all …]
/external/mockito/src/main/java/org/mockito/internal/util/
DMockUtil.java35 T mock = mockMaker.createMock(settings, mockHandler); in createMock() local
45 public static <T> void resetMock(T mock) { in resetMock()
53 public static <T> MockHandler<T> getMockHandler(T mock) { in getMockHandler()
65 public static InvocationContainerImpl getInvocationContainer(Object mock) { in getInvocationContainer()
69 public static boolean isSpy(Object mock) { in isSpy()
73 public static boolean isMock(Object mock) { in isMock()
84 public static MockName getMockName(Object mock) { in getMockName()
88 public static void maybeRedefineMockName(Object mock, String newName) { in maybeRedefineMockName()
97 public static MockCreationSettings getMockSettings(Object mock) { in getMockSettings()
/external/v8/testing/gmock/test/
Dgmock_link_test.h243 Mock mock; in TEST() local
251 Mock mock; in TEST() local
260 Mock mock; in TEST() local
268 Mock mock; in TEST() local
277 Mock mock; in TEST() local
286 Mock mock; in TEST() local
295 Mock mock; in TEST() local
308 Mock mock; in TEST() local
320 Mock mock; in TEST() local
332 Mock mock; in TEST() local
[all …]
/external/googletest/googlemock/test/
Dgmock_link_test.h243 Mock mock; in TEST() local
251 Mock mock; in TEST() local
260 Mock mock; in TEST() local
268 Mock mock; in TEST() local
277 Mock mock; in TEST() local
286 Mock mock; in TEST() local
295 Mock mock; in TEST() local
308 Mock mock; in TEST() local
320 Mock mock; in TEST() local
332 Mock mock; in TEST() local
[all …]
/external/google-breakpad/src/testing/test/
Dgmock_link_test.h243 Mock mock; in TEST() local
251 Mock mock; in TEST() local
260 Mock mock; in TEST() local
268 Mock mock; in TEST() local
277 Mock mock; in TEST() local
286 Mock mock; in TEST() local
295 Mock mock; in TEST() local
308 Mock mock; in TEST() local
320 Mock mock; in TEST() local
332 Mock mock; in TEST() local
[all …]
/external/mockito/src/test/java/org/mockitousage/basicapi/
DMocksSerializationTest.java41 Bar mock = mock(Bar.class, new ThrowsException(new RuntimeException())); in should_allow_throws_exception_to_be_serializable() local
60 IMethods mock = mock(IMethods.class, withSettings().serializable()); in should_allow_mock_to_be_serializable() local
69 IMethods mock = mock(IMethods.class, withSettings().serializable()); in should_allow_mock_and_boolean_value_to_serializable() local
83 IMethods mock = mock(IMethods.class, withSettings().serializable()); in should_allow_mock_and_string_value_to_be_serializable() local
98 IMethods mock = mock(IMethods.class, withSettings().serializable()); in should_all_mock_and_serializable_value_to_be_serialized() local
112 IMethods mock = mock(IMethods.class, withSettings().serializable()); in should_serialize_method_call_with_parameters_that_are_serializable() local
126 IMethods mock = mock(IMethods.class, withSettings().serializable()); in should_serialize_method_calls_using_any_string_matcher() local
140 IMethods mock = mock(IMethods.class, withSettings().serializable()); in should_verify_called_n_times_for_serialized_mock() local
156 IMethods mock = mock(IMethods.class, withSettings().serializable()); in should_verify_even_if_some_methods_called_after_serialization() local
200 IMethods mock = mock(IMethods.class, withSettings().serializable()); in should_stub_even_if_some_methods_called_after_serialization() local
[all …]
DMocksCreationTest.java36 IMethods mock = mock(IMethods.class, withSettings() in shouldCombineMockNameAndSmartNulls() local
56 IMethods mock = mock(IMethods.class, withSettings() in shouldCombineMockNameAndExtraInterfaces() local
72 IMethods mock = mock(IMethods.class, withSettings().name("great mockie")); in shouldSpecifyMockNameViaSettings() local
/external/mockito/src/test/java/org/mockitousage/junitrunner/
DStubbingWarningsJUnitRunnerTest.java66 IMethods mock = mock(IMethods.class); field in StubbingWarningsJUnitRunnerTest.PassingArgMismatch
75 @Mock IMethods mock; field in StubbingWarningsJUnitRunnerTest.FailingWithArgMismatch
85 @Mock IMethods mock; field in StubbingWarningsJUnitRunnerTest.FailingWithMatchingArgs
95 @Mock IMethods mock; field in StubbingWarningsJUnitRunnerTest.FailingWithSomeStubMismatches
109 @Mock IMethods mock; field in StubbingWarningsJUnitRunnerTest.MismatchButStubAlreadyUsed
121 @Mock IMethods mock; field in StubbingWarningsJUnitRunnerTest.InvalidMockitoUsage
DStrictRunnerTest.java90 IMethods mock = when(mock(IMethods.class).simpleMethod(1)).thenReturn("1").getMock(); field in StrictRunnerTest.StubbingInConstructorUnused
103 @Mock IMethods mock; field in StrictRunnerTest.StubbingInBeforeUnused
113 IMethods mock = mock(IMethods.class); in test() local
122 IMethods mock = mock(IMethods.class); in test() local
133 IMethods mock = mock(IMethods.class); field in StrictRunnerTest.WithUnrelatedAssertionFailure
154 IMethods mock = mock(IMethods.class); field in StrictRunnerTest.RunnerAndRule
165 IMethods mock = mock(IMethods.class); field in StrictRunnerTest.StubUsedFromDifferentThread
DVerboseMockitoRunnerTest.java28 @Mock private IMethods mock; field in VerboseMockitoRunnerTest
35 IMethods mock = mock(IMethods.class); in test() local
53 IMethods mock = mock(IMethods.class); in _test() local
/external/mockito/src/test/java/org/mockitousage/bugs/
DCovariantOverrideTest.java30 ReturnsObject mock = mock(ReturnsObject.class); in returnFoo1() local
37 ReturnsString mock = mock(ReturnsString.class); in returnFoo2() local
44 ReturnsObject mock = mock(ReturnsString.class); in returnFoo3() local
51 ReturnsString mock = mock(ReturnsString.class); in returnFoo4() local
DStubbingMocksThatAreConfiguredToReturnMocksTest.java19 IMethods mock = mock(IMethods.class, RETURNS_MOCKS); in shouldAllowStubbingMocksConfiguredWithRETURNS_MOCKS() local
25 IMethods mock = mock(IMethods.class, RETURNS_MOCKS); in shouldAllowStubbingMocksConfiguredWithRETURNS_MOCKSWithDoApi() local
/external/mockito/src/test/java/org/mockitousage/stubbing/
DStubbingWithDelegateTest.java62 List<String> mock = mock(List.class, delegatesTo(delegatedList)); in when_not_stubbed_delegate_should_be_called() local
73 List<String> mock = mock(List.class, delegatesTo(delegatedList)); in when_stubbed_the_delegate_should_not_be_called() local
111 List<String> mock = mock(List.class, delegatesTo(new FakeList<String>())); in instance_of_different_class_can_be_called() local
119 List<String> mock = mock(List.class, delegatesTo(new FakeList<String>())); in method_with_subtype_return_can_be_called() local
127 List<String> mock = mock(List.class, delegatesTo(new FakeList<String>())); in calling_missing_method_should_throw_exception() local
139 List<String> mock = mock(List.class, delegatesTo(new FakeListWithWrongMethods<String>())); in calling_method_with_wrong_primitive_return_should_throw_exception() local
151 List<String> mock = mock(List.class, delegatesTo(new FakeListWithWrongMethods<String>())); in calling_method_with_wrong_reference_return_should_throw_exception() local
DStrictStubbingEndToEndTest.java82 @Mock IMethods mock; field in StrictStubbingEndToEndTest.UnnecessaryStubbing
96 @Mock IMethods mock; field in StrictStubbingEndToEndTest.ReportMismatchButNotUnusedStubbing
110 @Mock IMethods mock; field in StrictStubbingEndToEndTest.StrictStubsPassing
124 @Mock IMethods mock = Mockito.mock(IMethods.class); field in StrictStubbingEndToEndTest.LenientStrictness1
137 @Mock IMethods mock = Mockito.mock(IMethods.class); field in StrictStubbingEndToEndTest.LenientStrictness2
150 @Mock IMethods mock; field in StrictStubbingEndToEndTest.UnfinishedMocking
DSmartNullsStubbingTest.java23 private IMethods mock; field in SmartNullsStubbingTest
30 public IMethods unstubbedMethodInvokedHere(IMethods mock) { in unstubbedMethodInvokedHere()
67 Foo mock = mock(Foo.class, RETURNS_SMART_NULLS); in shouldThrowSmartNPEWhenMethodReturnsClass() local
77 Foo mock = mock(Foo.class, RETURNS_SMART_NULLS); in shouldThrowSmartNPEWhenMethodReturnsInterface() local
88 IMethods mock = mock(IMethods.class, RETURNS_SMART_NULLS); in shouldReturnOrdinaryEmptyValuesForOrdinaryTypes() local
DReturningDefaultValuesTest.java25 @Mock private IMethods mock; field in ReturningDefaultValuesTest
54 CollectionsServer mock = Mockito.mock(CollectionsServer.class); in shouldReturnEmptyCollections() local
64 CollectionsServer mock = Mockito.mock(CollectionsServer.class); in shouldReturnMutableEmptyCollection() local
DCallingRealMethodTest.java17 TestedObject mock; field in CallingRealMethodTest
62 TestedObject mock = mock(TestedObject.class, CALLS_REAL_METHODS); in shouldCallRealMethodByDefault() local
69 TestedObject mock = mock(TestedObject.class); in shouldNotCallRealMethodWhenStubbedLater() local
/external/mockito/src/test/java/org/mockito/internal/util/
DMockUtilTest.java27 List<?> mock = Mockito.mock(List.class); in should_get_handler() local
43 List<?> mock = Mockito.mock(List.class); in should_get_mock_settings() local
66 List<?> mock = Mockito.mock(List.class); in should_redefine_MockName_if_default() local
74 List<?> mock = Mockito.mock(List.class, "original"); in should_not_redefine_MockName_if_default() local
/external/mockito/src/test/java/org/mockitousage/session/
DMockitoSessionTest.java102 @Mock IMethods mock; field in MockitoSessionTest.SessionWithoutAnyConfiguration
118 @Mock IMethods mock; field in MockitoSessionTest.SessionWithoutInitMocksConfigured
132 @Mock IMethods mock; field in MockitoSessionTest.SessionWithoutStrictnessConfigured
146 @Mock IMethods mock; field in MockitoSessionTest.SessionWithIncorrectMockitoUsage
160 @Mock IMethods mock; field in MockitoSessionTest.SessionWithTestFailureAndIncorrectMockitoUsage
175 @Mock IMethods mock; field in MockitoSessionTest.SessionWithManuallyInitializedMock
191 @Mock IMethods mock; field in MockitoSessionTest.SessionWithUpdatedStrictness
210 @Mock IMethods mock; field in MockitoSessionTest.SessionWithOverriddenFailure
/external/mockito/src/test/java/org/mockito/internal/stubbing/defaultanswers/
DReturnsGenericDeepStubsTest.java37 GenericsNest<?> mock = mock(GenericsNest.class, RETURNS_DEEP_STUBS); in generic_deep_mock_frenzy__look_at_these_chained_calls() local
53 GenericsNest<?> mock = mock(GenericsNest.class, RETURNS_DEEP_STUBS); in can_create_mock_from_multiple_type_variable_bounds_when_return_type_of_parameterized_method_is_a_parameterizedtype_that_is_referencing_a_typevar_on_class() local
63 GenericsNest<?> mock = mock(GenericsNest.class, RETURNS_DEEP_STUBS); in can_create_mock_from_multiple_type_variable_bounds_when_method_return_type_is_referencing_a_typevar_on_class() local
71 GenericsNest<?> mock = mock(GenericsNest.class, RETURNS_DEEP_STUBS); in can_create_mock_from_multiple_type_variable_bounds_when_return_type_of_parameterized_method_is_a_typevar_that_is_referencing_a_typevar_on_class() local
79 GenericsNest<?> mock = mock(GenericsNest.class, RETURNS_DEEP_STUBS); in can_create_mock_from_return_types_declared_with_a_bounded_wildcard() local
88 GenericsNest<?> mock = mock(GenericsNest.class, RETURNS_DEEP_STUBS); in can_still_work_with_raw_type_in_the_return_type() local
107 GenericsNest<?> mock = mock(GenericsNest.class, RETURNS_DEEP_STUBS); in as_expected_fail_with_a_CCE_on_callsite_when_erasure_takes_place_for_example___StringBuilder_is_subject_to_erasure() local
/external/mockito/src/test/java/org/mockitousage/junitrule/
DStubbingWarningsJUnitRuleTest.java25 @Mock IMethods mock; field in StubbingWarningsJUnitRuleTest
196 private static void declareStubbingWithArg(IMethods mock, String arg) { in declareStubbingWithArg()
200 private static void declareStubbing(IMethods mock) { in declareStubbing()
204 private void useStubbingWithArg(IMethods mock, String arg) { in useStubbingWithArg()
/external/libchrome/base/
Dgmock_unittest.cc68 MockSampleClass mock; in TEST() local
85 MockSampleClass mock; in TEST() local
97 MockSampleClass mock; in TEST() local
112 MockSampleClass mock; in TEST() local
126 MockSampleClass mock; in TEST() local
/external/guava/guava-tests/test/com/google/common/util/concurrent/
DWrappingExecutorServiceTest.java48 MockExecutor mock = new MockExecutor(); in testDelegations() local
64 MockExecutor mock = new MockExecutor(); in testExecute() local
72 MockExecutor mock = new MockExecutor(); in testSubmit() local
79 MockExecutor mock = new MockExecutor(); in testSubmit() local
86 MockExecutor mock = new MockExecutor(); in testSubmit() local
98 MockExecutor mock = new MockExecutor(); in testInvokeAll() local
105 MockExecutor mock = new MockExecutor(); in testInvokeAll() local
118 MockExecutor mock = new MockExecutor(); in testInvokeAny() local
125 MockExecutor mock = new MockExecutor(); in testInvokeAny() local
177 public TestExecutor(MockExecutor mock) { in TestExecutor()
/external/pdfium/core/fxcrt/xml/
Dcfx_saxreader_unittest.cpp79 MockHandler mock; in TEST_F() local
88 MockHandler mock; in TEST_F() local
99 MockHandler mock; in TEST_F() local
112 MockHandler mock; in TEST_F() local
124 MockHandler mock; in TEST_F() local

1234567891011