OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:doReturn
(Results
1 - 14
of
14
) sorted by null
/external/mockito/src/org/mockito/stubbing/
Stubber.java
10
* Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|
doReturn
() style
36
* {@link Mockito#
doReturn
(Object)}
45
* Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|
doReturn
() style
64
* {@link Mockito#
doReturn
(Object)}
130
* Use it for stubbing consecutive calls in {@link Mockito#
doReturn
(Object)} style.
132
* See javadoc for {@link Mockito#
doReturn
(Object)}
137
Stubber
doReturn
(Object toBeReturned);
/external/littlemock/tests/com/google/testing/littlemock/
LittleMockTest.java
37
import static com.google.testing.littlemock.LittleMock.
doReturn
;
411
doReturn
("first").when(mFoo).get(0);
416
doReturn
("first").when(mFoo).get(0);
417
doReturn
("second").when(mFoo).get(0);
422
doReturn
("one").when(mFoo).get(1);
423
doReturn
("two").when(mFoo).get(2);
429
doReturn
("one").when(mFoo).get(1);
435
doReturn
("first").when("hello").contains("something");
442
doReturn
("first").when(createNotARealMock()).get(0);
450
doReturn
("one").when(mFoo).get(8)
[
all
...]
/frameworks/base/services/tests/servicestests/src/com/android/server/
ConnectivityServiceTest.java
28
import static org.mockito.Mockito.
doReturn
;
103
doReturn
(new NetworkInfo(info)).when(tracker).getNetworkInfo();
104
doReturn
(new LinkProperties(link)).when(tracker).getLinkProperties();
107
doReturn
("").when(tracker).getTcpBufferSizesPropName();
129
doReturn
(mMobile.tracker)
131
doReturn
(mWifi.tracker)
196
doReturn
(true).when(mMobile.tracker).teardown();
NetworkManagementServiceTest.java
27
import static org.mockito.Mockito.
doReturn
;
89
doReturn
(new Binder()).when(observer).asBinder(); // Used by registerObserver.
/packages/apps/Camera/tests/src/com/android/camera/activity/
CameraActivityTest.java
26
import static com.google.testing.littlemock.LittleMock.
doReturn
;
CameraTestCase.java
39
import static com.google.testing.littlemock.LittleMock.
doReturn
;
130
doReturn
(getParameters()).when(mMockCamera[0]).getParameters();
131
doReturn
(getParameters()).when(mMockCamera[1]).getParameters();
138
doReturn
(getParameters()).when(mOneMockCamera[0]).getParameters();
/frameworks/base/tests/TtsTests/src/com/android/speech/tts/
TextToSpeechTests.java
87
LittleMock.
doReturn
(TextToSpeech.LANG_COUNTRY_AVAILABLE).when(delegate).onIsLanguageAvailable(
89
LittleMock.
doReturn
(TextToSpeech.LANG_COUNTRY_AVAILABLE).when(delegate).onLoadLanguage(
109
LittleMock.
doReturn
(TextToSpeech.LANG_NOT_SUPPORTED).when(
111
LittleMock.
doReturn
(TextToSpeech.LANG_NOT_SUPPORTED).when(
130
LittleMock.
doReturn
(TextToSpeech.LANG_COUNTRY_AVAILABLE).when(
/external/mockito/src/org/mockito/internal/stubbing/
StubberImpl.java
37
public Stubber
doReturn
(Object toBeReturned) {
/external/mockito/src/org/mockito/
BDDMockito.java
199
* See original {@link Stubber#
doReturn
(Object)}
262
return new BDDStubberImpl(mockitoStubber.
doReturn
(toBeReturned));
320
* see original {@link Mockito#
doReturn
(Object)}
324
return new BDDStubberImpl(Mockito.
doReturn
(toBeReturned));
Mockito.java
42
* <a href="#12">12. <code>
doReturn
()</code>|<code>doThrow()</code>|<code>doAnswer()</code>|<code>doNothing()</code>|<code>doCallRealMethod()</code> family of methods</a><br/>
441
* <h3 id="12">12. <a class="meaningful_link" href="#do_family_methods_stubs"><code>
doReturn
()</code>|<code>doThrow()</code>|
459
* You can use <code>doThrow()</code>, <code>doAnswer()</code>, <code>doNothing()</code>, <code>
doReturn
()</code>
471
* {@link Mockito#
doReturn
(Object)}
528
* Therefore when using spies please consider <code>
doReturn
</code>|<code>Answer</code>|<code>Throw()</code> family of
538
* //You have to use
doReturn
() for stubbing
539
*
doReturn
("foo").when(spy).get(0);
[
all
...]
/external/littlemock/src/com/google/testing/littlemock/
LittleMock.java
60
*
doReturn
("hello").when(mockFoo).aString(anyInt()); // Stub the mock to return "hello".
114
public static Behaviour doNothing() { return
doReturn
(null); }
117
public static <T> Behaviour
doReturn
(final T result) {
[
all
...]
/external/robolectric/lib/test/
mockito-core-1.8.5.jar
/external/dexmaker/lib/
mockito-core-1.9.1-SNAPSHOT.jar
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.jdt.debug_3.6.1.v20100715_r361/
jdimodel.jar
Completed in 314 milliseconds