HomeSort by relevance Sort by last modified time
    Searched refs:createMock (Results 1 - 25 of 35) sorted by null

1 2

  /external/easymock/src/org/easymock/
IMocksControl.java 29 <T> T createMock(Class<T> toMock);
39 <T> T createMock(String name, Class<T> toMock);
EasyMockSupport.java 43 return createStrictControl().createMock(toMock);
62 return createStrictControl().createMock(name, toMock);
76 public <T> T createMock(Class<T> toMock) {
77 return createControl().createMock(toMock);
96 public <T> T createMock(String name, Class<T> toMock) {
97 return createControl().createMock(name, toMock);
113 return createNiceControl().createMock(toMock);
134 return createNiceControl().createMock(name, toMock);
EasyMock.java 55 return createStrictControl().createMock(toMock);
71 return createStrictControl().createMock(name, toMock);
85 public static <T> T createMock(Class<T> toMock) {
86 return createControl().createMock(toMock);
102 public static <T> T createMock(String name, Class<T> toMock) {
103 return createControl().createMock(name, toMock);
119 return createNiceControl().createMock(toMock);
137 return createNiceControl().createMock(name, toMock);
    [all...]
  /external/guava/guava-tests/test/com/google/common/util/concurrent/
UncaughtExceptionHandlersTest.java 19 import static org.easymock.EasyMock.createMock;
38 runtimeMock = createMock(Runtime.class);
ForwardingCheckedFutureTest.java 19 import static org.easymock.EasyMock.createMock;
43 createMock(CheckedFuture.class);
  /external/mockito/src/org/mockito/plugins/
MockMaker.java 61 <T> T createMock(
69 * Use the instance provided to you by Mockito at {@link #createMock} or {@link #resetMock}.
  /external/android-mock/tests/com/google/android/testing/mocking/
AndroidMockTest.java 64 "com.google.android.testing.mocking.AndroidMock.createMock("
66 "com.google.android.testing.mocking.AndroidMock.createMock("
175 Vector<String> mockVector = AndroidMock.createMock(Vector.class);
187 SimpleTimeZone mockTimeZone = AndroidMock.createMock(SimpleTimeZone.class, 0, "GMT");
199 Calendar mockCalendar = AndroidMock.createMock(Calendar.class);
207 AndroidMock.createMock(Calendar.class, new SimpleTimeZone(1, "GMT"), Locale.UK);
215 SimpleTimeZone mockTimeZone = AndroidMock.createMock(SimpleTimeZone.class, 'a', "GMT");
228 SimpleTimeZone mockTimeZone = AndroidMock.createMock(SimpleTimeZone.class, "GMT");
234 SimpleTimeZone mockTimeZone = AndroidMock.createMock(SimpleTimeZone.class, 0, null);
240 SimpleTimeZone mockTimeZone = AndroidMock.createMock(SimpleTimeZone.class, 0, new Object())
    [all...]
  /external/android-mock/livetests/com/google/android/testing/mocking/test/
MockingTest.java 40 Context mockContext = AndroidMock.createMock(Context.class);
51 ClassToMock myMockClass = AndroidMock.createMock(ClassToMock.class);
  /external/guava/guava-tests/test/com/google/common/hash/
FunnelsTest.java 20 Sink byteSink = EasyMock.createMock(Sink.class);
37 Sink byteSink = EasyMock.createMock(Sink.class);
  /external/chromium_org/third_party/protobuf/java/src/test/java/com/google/protobuf/
ServiceTest.java 72 mockController = control.createMock(RpcController.class);
83 TestService mockService = control.createMock(TestService.class);
100 TestService mockService = control.createMock(TestService.class);
118 RpcChannel mockChannel = control.createMock(RpcChannel.class);
145 control.createMock(BlockingRpcChannel.class);
171 control.createMock(ServiceWithNoOuter.Interface.class);
172 RpcController controller = control.createMock(RpcController.class);
200 control.createMock(ServiceWithNoOuter.BlockingInterface.class);
201 RpcController controller = control.createMock(RpcController.class);
  /external/protobuf/java/src/test/java/com/google/protobuf/
ServiceTest.java 72 mockController = control.createMock(RpcController.class);
83 TestService mockService = control.createMock(TestService.class);
100 TestService mockService = control.createMock(TestService.class);
118 RpcChannel mockChannel = control.createMock(RpcChannel.class);
145 control.createMock(BlockingRpcChannel.class);
171 control.createMock(ServiceWithNoOuter.Interface.class);
172 RpcController controller = control.createMock(RpcController.class);
200 control.createMock(ServiceWithNoOuter.BlockingInterface.class);
201 RpcController controller = control.createMock(RpcController.class);
  /cts/tools/tradefed-host/tests/src/com/android/cts/tradefed/testtype/
JarHostTestTest.java 76 ITestInvocationListener listener = EasyMock.createMock(ITestInvocationListener.class);
86 mJarTest.setDevice(EasyMock.createMock(ITestDevice.class));
CtsTestTest.java 62 mMockRepo = EasyMock.createMock(ITestPackageRepo.class);
63 mMockPlan = EasyMock.createMock(ITestPlan.class);
64 mMockDevice = EasyMock.createMock(ITestDevice.class);
67 mMockPackageDef = EasyMock.createMock(ITestPackageDef.class);
68 mMockTest = EasyMock.createMock(IRemoteTest.class);
  /external/guava/guava-tests/test/com/google/common/collect/
ForwardingMapTest.java 19 import static org.easymock.EasyMock.createMock;
249 final Map<String, Boolean> map = createMock(Map.class);
251 final Set<Map.Entry<String, Boolean>> entrySet = createMock(Set.class);
286 Set<Entry<String, Boolean>> entrySet = createMock(Set.class);
291 final Map<String, Boolean> map = createMock(Map.class);
318 Set<Entry<String, Boolean>> entrySet = createMock(Set.class);
323 final Map<String, Boolean> map = createMock(Map.class);
  /external/guava/guava-tests/test/com/google/common/cache/
ForwardingCacheTest.java 19 import static org.easymock.EasyMock.createMock;
40 @SuppressWarnings("unchecked") // createMock
48 mock = createMock(Cache.class);
ForwardingLoadingCacheTest.java 19 import static org.easymock.EasyMock.createMock;
40 @SuppressWarnings("unchecked") // createMock
48 mock = createMock(LoadingCache.class);
  /external/mockito/src/org/mockito/internal/util/
MockUtil.java 29 public <T> T createMock(MockCreationSettings<T> settings) {
32 T mock = mockMaker.createMock(settings, mockHandler);
  /prebuilts/tools/common/easymock-tools/
easymock-3.1.jar 
  /prebuilts/tools/common/m2/internal/org/easymock/easymock/3.1/
easymock-3.1.jar 
  /frameworks/base/services/tests/servicestests/src/com/android/server/
NetworkPolicyManagerServiceTest.java 43 import static org.easymock.EasyMock.createMock;
187 mActivityManager = createMock(IActivityManager.class);
188 mPowerManager = createMock(IPowerManager.class);
189 mStatsService = createMock(INetworkStatsService.class);
190 mNetworkManager = createMock(INetworkManagementService.class);
191 mPolicyListener = createMock(INetworkPolicyListener.class);
192 mTime = createMock(TrustedTime.class);
193 mConnManager = createMock(IConnectivityManager.class);
194 mNotifManager = createMock(INotificationManager.class);
    [all...]
NetworkStatsServiceTest.java 44 import static org.easymock.EasyMock.createMock;
131 mNetManager = createMock(INetworkManagementService.class);
132 mAlarmManager = createMock(IAlarmManager.class);
133 mTime = createMock(TrustedTime.class);
134 mSettings = createMock(NetworkStatsSettings.class);
135 mConnManager = createMock(IConnectivityManager.class);
    [all...]
  /external/easymock/src/org/easymock/internal/
MocksControl.java 47 public <T> T createMock(Class<T> toMock) {
58 public <T> T createMock(String name, Class<T> toMock) {
  /sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/mock/
Mocks.java 20 import static org.easymock.EasyMock.createMock;
50 IJavaProject javaProject = createMock(IJavaProject.class);
  /external/dexmaker/src/mockito/java/com/google/dexmaker/mockito/
DexmakerMockMaker.java 37 public <T> T createMock(MockCreationSettings<T> settings, MockHandler handler) {
  /external/android-mock/src/com/google/android/testing/mocking/
AndroidMock.java 50 * mockObject = AndroidMock.createMock(MyClass.class);
147 * {@literal createMock(MyObject.class, 42, "hello!")},
156 public static <T> T createMock(Class<T> toMock, Object... args) {
157 return createMock(null, toMock, args);
170 * {@literal createMock("NameMyMock", MyObject.class, 42, "hello!")},
183 public static <T> T createMock(String name, Class<T> toMock, Object... args) {
185 return EasyMock.createMock(name, toMock);
187 Object mockedInterface = EasyMock.createMock(name, getInterfaceFor(toMock));
    [all...]

Completed in 867 milliseconds

1 2