OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:thenReturn
(Results
1 - 9
of
9
) sorted by null
/external/mockito/src/org/mockito/stubbing/
OngoingStubbing.java
14
* <b>when</b>(mock.someMethod()).<b>
thenReturn
</b>(10);
17
* when(mock.someMethod(<b>anyString()</b>)).
thenReturn
(10);
23
* //Last stubbing (e.g:
thenReturn
("foo")) determines the behavior of further consecutive calls.
26
* .
thenReturn
("foo");
29
* when(mock.someMethod()).
thenReturn
(1,2,3);
40
* when(mock.someMethod()).
thenReturn
(10);
49
OngoingStubbing<T>
thenReturn
(T value);
54
* when(mock.someMethod()).
thenReturn
(1, 2, 3);
66
OngoingStubbing<T>
thenReturn
(T value, T... values);
/external/mockito/src/org/mockito/internal/stubbing/
BaseStubbing.java
15
public OngoingStubbing<T>
thenReturn
(T value) {
19
public OngoingStubbing<T>
thenReturn
(T value, T... values) {
20
OngoingStubbing<T> stubbing =
thenReturn
(value);
22
return stubbing.
thenReturn
(null);
25
stubbing = stubbing.
thenReturn
(v);
/packages/apps/TV/tests/unit/src/com/android/tv/dvr/
RecordingTaskTest.java
85
when(mMockSessionManager.canAcquireDvrSession(inputId, channel)).
thenReturn
(true);
87
.
thenReturn
(mMockTvRecordingClient);
88
when(mMockHandler.sendEmptyMessageDelayed(anyInt(), anyLong())).
thenReturn
(true);
115
.
thenReturn
(false);
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
NetworkControllerBaseTest.java
86
when(mMockCm.isNetworkSupported(ConnectivityManager.TYPE_MOBILE)).
thenReturn
(true);
87
when(mMockCm.getDefaultNetworkCapabilitiesForUser(0)).
thenReturn
(
111
when(mMockTm.getDataEnabled(mSubId)).
thenReturn
(true);
120
when(mMockSubDefaults.getDefaultDataSubId()).
thenReturn
(subId);
121
when(mMockSubDefaults.getDefaultVoiceSubId()).
thenReturn
(subId);
128
when(subscription.getSubscriptionId()).
thenReturn
(subId);
131
when(mMockSm.getActiveSubscriptionInfoList()).
thenReturn
(subs);
136
when(mMockCm.isNetworkSupported(ConnectivityManager.TYPE_MOBILE)).
thenReturn
(false);
188
when(mServiceState.getRoaming()).
thenReturn
(isRoaming);
193
when(mServiceState.getCdmaEriIconIndex()).
thenReturn
(isRoaming
[
all
...]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
WifiStateMachineTest.java
117
when(((IInterface) tImpl).asBinder()).
thenReturn
(binder);
119
.
thenReturn
((IInterface) tImpl);
157
.
thenReturn
(mWifiScanner);
158
when(facade.makeBaseLogger()).
thenReturn
(mock(BaseWifiLogger.class));
159
when(facade.getService(Context.NETWORKMANAGEMENT_SERVICE)).
thenReturn
(
163
when(facade.getService(Context.WIFI_P2P_SERVICE)).
thenReturn
(p2pBinder);
184
when(p2pm.getP2pStateMachineMessenger()).
thenReturn
(new Messenger(handler));
187
when(facade.getService(BatteryStats.SERVICE_NAME)).
thenReturn
(batteryStatsBinder);
199
anyInt())).
thenReturn
(PackageManager.PERMISSION_GRANTED);
217
when(pkgMgr.hasSystemFeature(PackageManager.FEATURE_WIFI_DIRECT)).
thenReturn
(true)
[
all
...]
/external/dexmaker/lib/
mockito-core-1.9.1-SNAPSHOT.jar
/external/robolectric/v1/lib/test/
mockito-core-1.8.5.jar
/prebuilts/tools/common/m2/repository/org/mockito/mockito-all/1.9.5/
mockito-all-1.9.5.jar
/prebuilts/tools/common/m2/repository/org/mockito/mockito-core/1.9.5/
mockito-core-1.9.5.jar
Completed in 2044 milliseconds