/external/mockito/src/org/mockito/mock/ |
MockName.java | 5 package org.mockito.mock; 8 * Represents the name of the mock as shown in the verification failure reports, etc. 18 * default name means generated by Mockito. non-default means the user has named the mock at creation.
|
MockCreationSettings.java | 6 package org.mockito.mock; 16 * Informs about the mock settings. An immutable view of {@link org.mockito.MockSettings}. 22 * Mocked type. An interface or class the mock should implement / extend. 27 * the extra interfaces the mock object should implement. 32 * the name of this mock, as printed on verification errors; see {@link org.mockito.MockSettings#name}. 37 * the default answer for this mock, see {@link org.mockito.MockSettings#defaultAnswer}. 47 * if the mock is serializable, see {@link org.mockito.MockSettings#serializable}. 52 * Whether the mock is only for stubbing, i.e. does not remember 59 * the invocation listeners attached to this mock, see {@link org.mockito.MockSettings#invocationListeners}.
|
/frameworks/base/test-runner/src/android/test/mock/ |
MockDialogInterface.java | 3 package android.test.mock; 8 * A mock {@link android.content.DialogInterface} class. All methods are non-functional and throw
|
MockApplication.java | 17 package android.test.mock; 23 * A mock {@link android.app.Application} class. All methods are non-functional and throw
|
MockContentResolver.java | 17 package android.test.mock;
|
/packages/apps/UnifiedEmail/src/com/android/mail/providers/protos/mock/ |
MockAttachment.java | 16 package com.android.mail.providers.protos.mock;
|
/external/apache-harmony/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/ |
MockFakeEvent.java | 18 package org.apache.harmony.beans.tests.support.mock;
|
MockPropertyChangeEvent.java | 18 package org.apache.harmony.beans.tests.support.mock; 23 * This is a mock class for EventSetDescriptor testing
|
MockPropertyChangeListener2.java | 18 package org.apache.harmony.beans.tests.support.mock; 28 org.apache.harmony.beans.tests.support.mock.MockPropertyChangeEvent e);
|
MockPropertyChangeListener.java | 18 package org.apache.harmony.beans.tests.support.mock;
|
MockPropertyChangeValidListener.java | 18 package org.apache.harmony.beans.tests.support.mock;
|
/external/mockito/src/org/mockito/internal/verification/ |
MockAwareVerificationMode.java | 12 private final Object mock;
field in class:MockAwareVerificationMode 15 public MockAwareVerificationMode(Object mock, VerificationMode mode) {
16 this.mock = mock;
25 return mock;
|
/external/guava/guava-tests/test/com/google/common/cache/ |
ForwardingCacheTest.java | 38 private Cache<String, Boolean> mock; field in class:ForwardingCacheTest 48 mock = createMock(Cache.class); 51 return mock; 57 expect(mock.getIfPresent("key")).andReturn(Boolean.TRUE); 58 replay(mock); 60 verify(mock); 64 expect(mock.getAllPresent(ImmutableList.of("key"))) 66 replay(mock); 69 verify(mock); 73 mock.invalidate("key") [all...] |
ForwardingLoadingCacheTest.java | 38 private LoadingCache<String, Boolean> mock; field in class:ForwardingLoadingCacheTest 48 mock = createMock(LoadingCache.class); 51 return mock; 57 expect(mock.get("key")).andReturn(Boolean.TRUE); 58 replay(mock); 60 verify(mock); 64 expect(mock.getUnchecked("key")).andReturn(Boolean.TRUE); 65 replay(mock); 67 verify(mock); 71 expect(mock.getAll(ImmutableList.of("key"))).andReturn(ImmutableMap.of("key", Boolean.TRUE)) [all...] |
/external/apache-harmony/beans/src/test/support/java/org/apache/harmony/beans/tests/support/beancontext/mock/ |
MockPropertyChangeListener.java | 18 package org.apache.harmony.beans.tests.support.beancontext.mock; 24 * Mock of PropertyChangeListener
|
MockPropertyChangeListenerS.java | 18 package org.apache.harmony.beans.tests.support.beancontext.mock; 25 * Mock of PropertyChangeListener
|
/external/chromium/base/ |
gmock_unittest.cc | 6 // correctly. It just instantiates a mock object and runs through a couple of 7 // the basic mock features. 22 // Simple class that we can mock out the behavior for. Everything is virtual 44 // Declare a mock for the class. 54 // more complex behavior into your mock...though if you start needing these, ask 55 // if you're asking your mock to do too much. 68 MockSampleClass mock; local 70 EXPECT_CALL(mock, ReturnSomething()) 74 EXPECT_EQ(1, mock.ReturnSomething()); 75 EXPECT_EQ(2, mock.ReturnSomething()) 85 MockSampleClass mock; local 97 MockSampleClass mock; local 112 MockSampleClass mock; local 126 MockSampleClass mock; local [all...] |
/external/chromium_org/base/ |
gmock_unittest.cc | 6 // correctly. It just instantiates a mock object and runs through a couple of 7 // the basic mock features. 22 // Simple class that we can mock out the behavior for. Everything is virtual 44 // Declare a mock for the class. 54 // more complex behavior into your mock...though if you start needing these, ask 55 // if you're asking your mock to do too much. 68 MockSampleClass mock; local 70 EXPECT_CALL(mock, ReturnSomething()) 74 EXPECT_EQ(1, mock.ReturnSomething()); 75 EXPECT_EQ(2, mock.ReturnSomething()) 85 MockSampleClass mock; local 97 MockSampleClass mock; local 112 MockSampleClass mock; local 126 MockSampleClass mock; local [all...] |
/external/chromium_org/chrome_frame/test/ |
url_request_test.cc | 64 MockUrlDelegate mock; local 75 request.Initialize(&mock, 1, // request_id 86 EXPECT_CALL(mock, OnResponseStarted(1, testing::_, testing::_, testing::_, 94 EXPECT_CALL(mock, OnReadComplete(1, testing::Property(&std::string::size, 97 .WillRepeatedly(testing::InvokeWithoutArgs(CreateFunctor(&mock, 100 EXPECT_CALL(mock, OnResponseEnd(1, testing::_)) 112 MockUrlDelegate mock; local 123 request.Initialize(&mock, 1, // request_id 134 EXPECT_CALL(mock, OnResponseStarted(1, testing::_, testing::_, testing::_, 142 EXPECT_CALL(mock, OnReadComplete(1, testing::_)).Times(0) 154 MockUrlDelegate mock; local 195 MockUrlDelegate mock; local 251 MockUrlDelegate mock; local 288 MockUrlDelegate mock; local [all...] |
/external/chromium_org/native_client_sdk/src/tools/tests/ |
create_html_test.py | 20 import mock namespace 42 with mock.patch('sys.stdout'): 43 with mock.patch('os.path.exists'): 44 with mock.patch('os.path.isfile'): 45 options = mock.MagicMock(return_value=False)
|
sel_ldr_test.py | 16 # For the mock library 21 import mock namespace 26 with mock.patch('sys.stderr'): 30 with mock.patch('subprocess.call') as call: 31 with mock.patch('os.path.exists'): 32 with mock.patch('os.path.isfile'): 33 with mock.patch('create_nmf.ParseElfHeader') as parse_header: 35 with mock.patch('getos.GetPlatform') as get_platform:
|
/external/mockito/src/org/mockito/ |
MockitoAnnotations.java | 29 * <li>Minimizes repetitive mock creation code.</li> 31 * <li>Makes the verification error easier to read because <b>field name</b> is used to identify the mock.</li> 37 * @Mock private ArticleCalculator calculator; 38 * @Mock private ArticleDatabase database; 39 * @Mock private UserProvider userProvider; 67 * Use top-level {@link org.mockito.Mock} annotation instead 69 * When @Mock annotation was implemented as an inner class then users experienced problems with autocomplete features in IDEs. 70 * Hence @Mock was made a top-level class. 73 * Typically, you can just <b>search:</b> import org.mockito.MockitoAnnotations.Mock; <b>and replace with:</b> import org.mockito.Mock; 123 Object mock = annotationEngine.createMockFor(annotation, field); local [all...] |
/external/mockito/src/org/mockito/internal/stubbing/ |
VoidMethodStubbableImpl.java | 13 private final T mock;
field in class:VoidMethodStubbableImpl 16 public VoidMethodStubbableImpl(T mock, InvocationContainerImpl invocationContainerImpl) {
17 this.mock = mock;
37 return mock;
|
/external/mockito/src/org/mockito/internal/stubbing/defaultanswers/ |
ReturnsEmptyValues.java | 12 import org.mockito.mock.MockName; 32 * Default answer of every Mockito mock. 44 * Returns description of mock for toString() method 65 Object mock = invocation.getMock(); local 66 MockName name = mockUtil.getMockName(mock); 68 return "Mock for " + mockUtil.getMockSettings(mock).getTypeToMock().getSimpleName() + ", hashCode: " + mock.hashCode();
|
/frameworks/volley/tests/src/com/android/volley/mock/ |
MockHttpClient.java | 17 package com.android.volley.mock;
|