OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:andReturn
(Results
1 - 25
of
26
) sorted by null
1
2
/external/android-mock/tests/com/google/android/testing/mocking/
AndroidMockTest.java
176
AndroidMock.expect(mockVector.get(0)).
andReturn
("Hello World");
188
AndroidMock.expect(mockTimeZone.getRawOffset()).
andReturn
(42);
200
AndroidMock.expect(mockCalendar.getGreatestMinimum(1)).
andReturn
(42);
216
AndroidMock.expect(mockTimeZone.getRawOffset()).
andReturn
(42);
253
AndroidMock.expect(mockMap.get("key")).
andReturn
("Hello World");
265
AndroidMock.expect(mockVector.get(0)).
andReturn
("Hello World");
277
AndroidMock.expect(mockVector.get(0)).
andReturn
("Hello World");
316
AndroidMock.expect(mockTimeZone.getRawOffset()).
andReturn
(42);
329
AndroidMock.expect(mockTimeZone.getRawOffset()).
andReturn
(42);
342
AndroidMock.expect(mockMap.get("key")).
andReturn
("Hello World")
[
all
...]
UsesMocksProcessorTest.java
65
EasyMock.expect(mockElement.getAnnotationMirrors()).
andReturn
(getMockAnnotationMirrors(clazz))
75
EasyMock.expect(mockMirror.getAnnotationType()).
andReturn
(getMockAnnotationType()).anyTimes();
76
EasyMock.expect(mockMirror.getElementValues()).
andReturn
(getMockElementValuesMap(clazz))
92
EasyMock.expect(mockValue.getValue()).
andReturn
(
152
EasyMock.expect(mockEnvironment.getMessager()).
andReturn
(getMockMessager()).anyTimes();
153
EasyMock.expect(mockEnvironment.getFiler()).
andReturn
(mockFiler).anyTimes();
154
EasyMock.expect(mockEnvironment.getOptions()).
andReturn
(getMockOptions()).anyTimes();
188
EasyMock.expect(mockFiler.createClassFile((CharSequence) EasyMock.anyObject())).
andReturn
(
204
EasyMock.expect(mockFileObject.openOutputStream()).
andReturn
(outStream).anyTimes();
217
EasyMock.expect(mockEnv.getElementsAnnotatedWith(UsesMocks.class)).
andReturn
(
[
all
...]
/external/guava/guava-tests/test/com/google/common/cache/
ForwardingLoadingCacheTest.java
57
expect(mock.get("key")).
andReturn
(Boolean.TRUE);
64
expect(mock.getUnchecked("key")).
andReturn
(Boolean.TRUE);
71
expect(mock.getAll(ImmutableList.of("key"))).
andReturn
(ImmutableMap.of("key", Boolean.TRUE));
78
expect(mock.apply("key")).
andReturn
(Boolean.TRUE);
106
expect(mock.size()).
andReturn
(0L);
113
expect(mock.stats()).
andReturn
(null);
120
expect(mock.asMap()).
andReturn
(null);
ForwardingCacheTest.java
57
expect(mock.getIfPresent("key")).
andReturn
(Boolean.TRUE);
65
.
andReturn
(ImmutableMap.of("key", Boolean.TRUE));
94
expect(mock.size()).
andReturn
(0L);
101
expect(mock.stats()).
andReturn
(null);
108
expect(mock.asMap()).
andReturn
(null);
/external/guava/guava-tests/test/com/google/common/collect/
ForwardingMapTest.java
252
expect(map.containsKey(anyObject())).
andReturn
(false).anyTimes();
253
expect(map.get(anyObject())).
andReturn
(null).anyTimes();
254
expect(map.isEmpty()).
andReturn
(true).anyTimes();
255
expect(map.remove(anyObject())).
andReturn
(null).anyTimes();
256
expect(map.size()).
andReturn
(0).anyTimes();
258
.
andReturn
(Iterators.<Entry<String, Boolean>>emptyIterator())
287
expect(entrySet.iterator()).
andReturn
(
292
expect(map.containsKey(anyObject())).
andReturn
(false).anyTimes();
293
expect(map.isEmpty()).
andReturn
(true).anyTimes();
294
expect(map.remove(anyObject())).
andReturn
(null).anyTimes()
[
all
...]
ConcurrentHashMultisetTest.java
60
expect(backingMap.isEmpty()).
andReturn
(true);
70
expect(backingMap.get(KEY)).
andReturn
(new AtomicInteger(COUNT));
78
expect(backingMap.get(KEY)).
andReturn
(null);
88
expect(backingMap.get(KEY)).
andReturn
(new AtomicInteger(INITIAL_COUNT));
97
expect(backingMap.get(KEY)).
andReturn
(null);
98
expect(backingMap.putIfAbsent(eq(KEY), isA(AtomicInteger.class))).
andReturn
(null);
110
expect(backingMap.get(KEY)).
andReturn
(initial);
122
expect(backingMap.get(KEY)).
andReturn
(new AtomicInteger(INITIAL_COUNT));
145
expect(backingMap.get(KEY)).
andReturn
(null);
147
expect(backingMap.putIfAbsent(eq(KEY), isA(AtomicInteger.class))).
andReturn
(existingZero)
[
all
...]
BstOperationsTest.java
108
expect(modifier.modify(eq('c'), (SimpleNode) isNull())).
andReturn
(
113
.
andReturn
(c)
120
.
andReturn
(bWithC);
126
.
andReturn
(dWithBWithC);
164
expect(modifier.modify(eq('a'), withKey('a'))).
andReturn
(
201
expect(modifier.modify(eq('a'), withKey('a'))).
andReturn
(
207
expect(nodeFactory.createNode(same(b), withKey('a'), (SimpleNode) isNull())).
andReturn
(
211
expect(nodeFactory.createNode(same(d), same(bWithA2), same(f))).
andReturn
(
247
expect(modifier.modify(eq('a'), withKey('a'))).
andReturn
(
251
.
andReturn
(null)
[
all
...]
/cts/tools/tradefed-host/tests/src/com/android/cts/tradefed/testtype/
CtsTestTest.java
141
EasyMock.expect(mMockPackageDef.getName()).
andReturn
(PACKAGE_NAME);
142
EasyMock.expect(mMockPackageDef.getDigest()).
andReturn
("digest");
166
EasyMock.expect(mMockRepo.findPackageForTest(className)).
andReturn
(PACKAGE_NAME);
184
EasyMock.expect(mMockPlan.getTestUris()).
andReturn
(uris);
201
EasyMock.expect(mMockPlan.getTestUris()).
andReturn
(uris);
203
EasyMock.expect(mMockPlan.getExcludedTestFilter(PACKAGE_NAME)).
andReturn
(
222
EasyMock.expect(mMockPlan.getTestUris()).
andReturn
(uris);
224
EasyMock.expect(mMockPlan.getExcludedTestFilter(PACKAGE_NAME)).
andReturn
(
233
EasyMock.expect(mMockRepo.getTestPackage(PACKAGE_NAME)).
andReturn
(mMockPackageDef);
234
EasyMock.expect(mMockPackageDef.createTest((File)EasyMock.anyObject())).
andReturn
(
[
all
...]
/external/easymock/src/org/easymock/internal/
IMocksControlState.java
26
void
andReturn
(Object value);
ReplayState.java
95
public void
andReturn
(Object value) {
MocksControl.java
141
public IExpectationSetters<Object>
andReturn
(Object value) {
143
state.
andReturn
(value);
RecordState.java
93
public void
andReturn
(Object value) {
/external/android-mock/livetests/com/google/android/testing/mocking/test/
MockingTest.java
52
AndroidMock.expect(myMockClass.getString()).
andReturn
(
54
AndroidMock.expect(myMockClass.getInt()).
andReturn
(42);
/external/easymock/src/org/easymock/
MockControl.java
186
.
andReturn
(value).once();
245
.
andReturn
(value).times(times);
264
.
andReturn
(value);
408
.
andReturn
(value).times(minCount, maxCount);
468
EasyMock.expectLastCall().
andReturn
(value).once();
490
.
andReturn
(value);
512
EasyMock.expectLastCall().
andReturn
(value).times(count);
534
EasyMock.expectLastCall().
andReturn
(value).times(min, max);
IExpectationSetters.java
34
IExpectationSetters<T>
andReturn
(T value);
/external/guava/guava-tests/test/com/google/common/hash/
FunnelsTest.java
23
.
andReturn
(byteSink).once();
39
EasyMock.expect(byteSink.putString("test")).
andReturn
(byteSink).once();
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
MediaInserterTest.java
148
(Uri) EasyMock.anyObject(), (ContentValues[]) EasyMock.anyObject())).
andReturn
(1);
163
(Uri) EasyMock.anyObject(), (ContentValues[]) EasyMock.anyObject())).
andReturn
(1);
187
(Uri) EasyMock.anyObject(), (ContentValues[]) EasyMock.anyObject())).
andReturn
(1);
203
(Uri) EasyMock.anyObject(), (ContentValues[]) EasyMock.anyObject())).
andReturn
(1);
224
(ContentValues[]) EasyMock.anyObject())).
andReturn
(1);
227
(ContentValues[]) EasyMock.anyObject())).
andReturn
(1);
230
(ContentValues[]) EasyMock.anyObject())).
andReturn
(1);
233
(ContentValues[]) EasyMock.anyObject())).
andReturn
(1);
/frameworks/base/services/tests/servicestests/src/com/android/server/
AccessibilityManagerTest.java
73
expect(mockServiceInterface.addClient(anyIAccessibilityManagerClient())).
andReturn
(
75
expect(mockServiceInterface.getInstalledAccessibilityServiceList()).
andReturn
(
95
expect(mockServiceInterface.addClient(anyIAccessibilityManagerClient())).
andReturn
(
112
expect(mockServiceInterface.addClient(anyIAccessibilityManagerClient())).
andReturn
(
147
expect(mockServiceInterface.addClient(anyIAccessibilityManagerClient())).
andReturn
(
150
.
andReturn
(true);
152
.
andReturn
(false);
183
expect(mockServiceInterface.addClient(anyIAccessibilityManagerClient())).
andReturn
(0);
NetworkStatsServiceTest.java
[
all
...]
ThrottleServiceTest.java
273
expect(mMockTime.forceRefresh()).
andReturn
(false).anyTimes();
274
expect(mMockTime.hasCache()).
andReturn
(true).anyTimes();
275
expect(mMockTime.currentTimeMillis()).
andReturn
(currentTime).anyTimes();
276
expect(mMockTime.getCacheAge()).
andReturn
(0L).anyTimes();
277
expect(mMockTime.getCacheCertainty()).
andReturn
(0L).anyTimes();
298
expect(mMockNMService.getNetworkStatsSummaryDev()).
andReturn
(stats).atLeastOnce();
NetworkPolicyManagerServiceTest.java
215
expect(mPolicyListener.asBinder()).
andReturn
(mStubBinder).atLeastOnce();
232
expect(mPowerManager.isScreenOn()).
andReturn
(true).atLeastOnce();
233
expect(mNetworkManager.isBandwidthControlEnabled()).
andReturn
(true).atLeastOnce();
352
expect(mPowerManager.isScreenOn()).
andReturn
(false).atLeastOnce();
362
expect(mPowerManager.isScreenOn()).
andReturn
(true).atLeastOnce();
615
expect(mConnManager.getAllNetworkState()).
andReturn
(state).atLeastOnce();
628
expect(mConnManager.getAllNetworkState()).
andReturn
(state).atLeastOnce();
635
.
andReturn
(stats.getTotalBytes()).atLeastOnce();
705
expect(mConnManager.getAllNetworkState()).
andReturn
(state).atLeastOnce();
707
.
andReturn
(stats.getTotalBytes()).atLeastOnce()
[
all
...]
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/mock/
Mocks.java
54
expect(javaProject.getProject()).
andReturn
(project).anyTimes();
55
expect(javaProject.getOutputLocation()).
andReturn
(capturedOutput.getValue()).anyTimes();
124
expect(file.getName()).
andReturn
(fileName).anyTimes();
125
expect(file.getLocation()).
andReturn
(new Path(fileName)).anyTimes();
141
expect(file.getName()).
andReturn
(name).anyTimes();
142
// expect(file.getLocation()).
andReturn
(new Path(name)).anyTimes();
143
expect(file.members()).
andReturn
(members).anyTimes();
171
expect(entry.getEntryKind()).
andReturn
(kind).anyTimes();
172
expect(entry.getPath()).
andReturn
(path).anyTimes();
/external/guava/guava-tests/test/com/google/common/util/concurrent/
ForwardingCheckedFutureTest.java
49
expect(delegate.checkedGet()).
andReturn
(VALUE).times(2);
57
expect(delegate.checkedGet(100, TIME_UNIT)).
andReturn
(VALUE).times(2);
/external/protobuf/java/src/test/java/com/google/protobuf/
ServiceTest.java
156
EasyMock.same(FooResponse.getDefaultInstance()))).
andReturn
(fooResponse);
161
EasyMock.same(BarResponse.getDefaultInstance()))).
andReturn
(barResponse);
217
.
andReturn
(expectedResponse);
/frameworks/base/tests/TtsTests/src/com/android/speech/tts/
TextToSpeechTests.java
191
Behaviour
andReturn
(Object result);
208
public Behaviour
andReturn
(final Object result) {
Completed in 2779 milliseconds
1
2