Home
last modified time | relevance | path

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

12345678910>>...12

/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
170 void detect(IMethods mock); in detect()
175 public void detect(IMethods mock) { in detect()
182 public void detect(IMethods mock) { in detect()
189 public void detect(IMethods mock) { in detect()
196 public void detect(IMethods mock) { in detect()
203 public void detect(IMethods mock) { in detect()
210 public void detect(IMethods mock) { in detect()
216 public void detect(IMethods mock) { in detect()
223 public void detect(IMethods mock) { in detect()
[all …]
/external/googletest/googlemock/test/
Dgmock_link_test.h248 Mock mock; in TEST() local
256 Mock mock; in TEST() local
265 Mock mock; in TEST() local
273 Mock mock; in TEST() local
282 Mock mock; in TEST() local
291 Mock mock; in TEST() local
300 Mock mock; in TEST() local
313 Mock mock; in TEST() local
325 Mock mock; in TEST() local
337 Mock mock; in TEST() local
[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/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 …]
/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/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/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
/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
161 @Mock IMethods mock; field in MockitoSessionTest.SessionWithTestFailureAndIncorrectMockitoUsage
177 @Mock IMethods mock; field in MockitoSessionTest.SessionWithManuallyInitializedMock
193 @Mock IMethods mock; field in MockitoSessionTest.SessionWithUpdatedStrictness
212 @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/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/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
96 MockSampleClass mock; in TEST() local
110 MockSampleClass mock; in TEST() local
124 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
/external/mockito/src/test/java/org/mockitousage/constructor/
DCreatingMocksWithConstructorTest.java47 …Message mock = mock(Message.class, withSettings().useConstructor().defaultAnswer(CALLS_REAL_METHOD… in can_create_mock_with_constructor() local
54 …AbstractMessage mock = mock(AbstractMessage.class, withSettings().useConstructor().defaultAnswer(C… in can_mock_abstract_classes() local
60 AbstractMessage mock = spy(AbstractMessage.class); in can_spy_abstract_classes() local
66 …AbstractMessage mock = mock(AbstractMessage.class, withSettings().useConstructor("hello!").default… in can_spy_abstract_classes_with_constructor_args() local
72 …AbstractMessage mock = mock(AbstractMessage.class, withSettings().useConstructor(7).defaultAnswer(… in can_spy_abstract_classes_with_constructor_primitive_args() local
78 …AbstractMessage mock = mock(AbstractMessage.class, withSettings().useConstructor(new Object[]{null… in can_spy_abstract_classes_with_constructor_array_of_nulls() local
84 …AbstractMessage mock = mock(AbstractMessage.class, withSettings().useConstructor((String) null).de… in can_spy_abstract_classes_with_casted_null() local
101 …InnerClass mock = mock(InnerClass.class, withSettings().useConstructor().outerInstance(this).defau… in can_mock_inner_classes() local
344 …AmbiguousWithPrimitive mock = mock(AmbiguousWithPrimitive.class, withSettings().useConstructor("St… in can_spy_ambiguius_constructor_with_primitive() local
/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()
/external/dexmaker/dexmaker-mockito-inline/src/main/java/com/android/dx/mockito/inline/
DMockMakerMultiplexer.java64 T mock = mockMaker.createMock(settings, handler); in createMock() local
75 public MockHandler getHandler(Object mock) { in getHandler()
88 public void resetMock(Object mock, MockHandler newHandler, MockCreationSettings settings) { in resetMock()

12345678910>>...12