/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...] |
MockControl.java | 44 this.mock = ctrl.createMock(toMock);
|
/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...] |
UsesMocksProcessorTest.java | 91 AnnotationValue mockValue = EasyMock.createMock(AnnotationValue.class);
|
/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/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);
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
ThrottleServiceTest.java | 22 import static org.easymock.EasyMock.createMock; 77 mMockNMService = createMock(INetworkManagementService.class); 78 mMockTime = createMock(TrustedTime.class);
|
NetworkPolicyManagerServiceTest.java | 40 import static org.easymock.EasyMock.createMock; 175 mActivityManager = createMock(IActivityManager.class); 176 mPowerManager = createMock(IPowerManager.class); 177 mStatsService = createMock(INetworkStatsService.class); 178 mNetworkManager = createMock(INetworkManagementService.class); 179 mPolicyListener = createMock(INetworkPolicyListener.class); 180 mTime = createMock(TrustedTime.class); 181 mConnManager = createMock(IConnectivityManager.class); 182 mNotifManager = createMock(INotificationManager.class); [all...] |
NetworkStatsServiceTest.java | 43 import static org.easymock.EasyMock.createMock; 123 mNetManager = createMock(INetworkManagementService.class); 124 mAlarmManager = createMock(IAlarmManager.class); 125 mTime = createMock(TrustedTime.class); 126 mSettings = createMock(NetworkStatsSettings.class); 127 mConnManager = createMock(IConnectivityManager.class); [all...] |
/sdk/ddms/libs/ddmlib/tests/src/com/android/ddmlib/testrunner/ |
RemoteAndroidTestRunnerTest.java | 46 mMockDevice = EasyMock.createMock(IDevice.class);
|
/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; 47 IJavaProject javaProject = createMock(IJavaProject.class);
|
/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...] |