Home
last modified time | relevance | path

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

12345678910

/external/mockito/src/test/java/org/mockitousage/jls/
DJLS_15_12_2_5Test.java51 SingleOverload mock = mock(SingleOverload.class); in with_single_arg() local
63 SingleOverload mock = mock(SingleOverload.class); in with_single_arg_and_matcher_cast() local
72 SingleOverload mock = mock(SingleOverload.class); in with_single_arg_and_null_Object_reference() local
82 SingleOverload mock = mock(SingleOverload.class); in with_variable_arg() local
94 SingleOverload mock = mock(SingleOverload.class); in with_variable_arg_and_matcher_String_cast() local
103 SingleOverload mock = mock(SingleOverload.class); in with_variable_arg_and_matcher_String_array_cast() local
112 SingleOverload mock = mock(SingleOverload.class); in with_variable_arg_and_null_Object_array() local
122 SingleOverload mock = mock(SingleOverload.class); in with_variable_arg_and_null_Object_arg() local
185 SingleOverload mock = mock(SingleOverload.class); in with_single_arg() local
194 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> InternalMockHandler<T> getMockHandler(T mock) { in getMockHandler()
66 public static boolean isSpy(Object mock) { in isSpy()
70 public static boolean isMock(Object mock) { in isMock()
74 public static MockName getMockName(Object mock) { in getMockName()
78 public static void maybeRedefineMockName(Object mock, String newName) { in maybeRedefineMockName()
87 public static MockCreationSettings getMockSettings(Object mock) { in getMockSettings()
/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/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/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/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.java40 IMethods mock = mock(IMethods.class, withSettings() in shouldCombineMockNameAndSmartNulls() local
60 IMethods mock = mock(IMethods.class, withSettings() in shouldCombineMockNameAndExtraInterfaces() local
76 IMethods mock = mock(IMethods.class, withSettings().name("great mockie")); in shouldSpecifyMockNameViaSettings() local
/external/mockito/src/test/java/org/mockitousage/junitrunner/
DStubbingWarningsJUnitRunnerTest.java62 IMethods mock = mock(IMethods.class); field in StubbingWarningsJUnitRunnerTest.PassingArgMismatch
71 @Mock IMethods mock; field in StubbingWarningsJUnitRunnerTest.FailingWithArgMismatch
81 @Mock IMethods mock; field in StubbingWarningsJUnitRunnerTest.FailingWithMatchingArgs
91 @Mock IMethods mock; field in StubbingWarningsJUnitRunnerTest.FailingWithSomeStubMismatches
105 @Mock IMethods mock; field in StubbingWarningsJUnitRunnerTest.MismatchButStubAlreadyUsed
117 @Mock IMethods mock; field in StubbingWarningsJUnitRunnerTest.InvalidMockitoUsage
DStrictRunnerTest.java86 IMethods mock = when(mock(IMethods.class).simpleMethod(1)).thenReturn("1").getMock(); field in StrictRunnerTest.StubbingInConstructorUnused
99 @Mock IMethods mock; field in StrictRunnerTest.StubbingInBeforeUnused
109 IMethods mock = mock(IMethods.class); in test() local
118 IMethods mock = mock(IMethods.class); in test() local
129 IMethods mock = mock(IMethods.class); field in StrictRunnerTest.WithUnrelatedAssertionFailure
150 IMethods mock = mock(IMethods.class); field in StrictRunnerTest.RunnerAndRule
161 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.java78 @Mock IMethods mock; field in StrictStubbingEndToEndTest.UnnecessaryStubbing
92 @Mock IMethods mock; field in StrictStubbingEndToEndTest.ReportMismatchButNotUnusedStubbing
106 @Mock IMethods mock; field in StrictStubbingEndToEndTest.StrictStubsPassing
120 @Mock IMethods mock = Mockito.mock(IMethods.class); field in StrictStubbingEndToEndTest.LenientStrictness1
133 @Mock IMethods mock = Mockito.mock(IMethods.class); field in StrictStubbingEndToEndTest.LenientStrictness2
146 @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.java18 TestedObject mock; field in CallingRealMethodTest
63 TestedObject mock = mock(TestedObject.class, CALLS_REAL_METHODS); in shouldCallRealMethodByDefault() local
70 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/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.java21 @Mock IMethods mock; field in StubbingWarningsJUnitRuleTest
192 private static void declareStubbingWithArg(IMethods mock, String arg) { in declareStubbingWithArg()
196 private static void declareStubbing(IMethods mock) { in declareStubbing()
200 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/mockito/src/test/java/org/mockitousage/session/
DMockitoSessionTest.java67 @Mock IMethods mock; field in MockitoSessionTest.SessionWithoutAnyConfiguration
83 @Mock IMethods mock; field in MockitoSessionTest.SessionWithoutInitMocksConfigured
97 @Mock IMethods mock; field in MockitoSessionTest.SessionWithoutStrictnessConfigured
111 @Mock IMethods mock; field in MockitoSessionTest.SessionWithIncorrectMockitoUsage
125 @Mock IMethods mock; field in MockitoSessionTest.SessionWithTestFailureAndIncorrectMockitoUsage
/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/mockftpserver/tags/1.0/src/test/java/org/mockftpserver/test/
DAbstractTest.java75 Object mock = control.getMock(); in createMock() local
86 protected void replay(Object mock) { in replay()
95 Object mock = iter.next(); in replayAll() local
105 protected void verify(Object mock) { in verify()
114 Object mock = iter.next(); in verifyAll() local
126 protected MockControl control(Object mock) { in control()

12345678910