OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:Answer
(Results
76 - 100
of
142
) sorted by null
1
2
3
4
5
6
/external/mockito/src/test/java/org/mockitousage/customization/
BDDMockitoTest.java
16
import org.mockito.stubbing.
Answer
;
76
given(mock.simpleMethod(anyString())).willAnswer(new
Answer
<String>() {
77
public String
answer
(InvocationOnMock invocation) throws Throwable {
87
given(mock.simpleMethod(anyString())).will(new
Answer
<String>() {
88
public String
answer
(InvocationOnMock invocation) throws Throwable {
199
willAnswer(new
Answer
<String>() {
200
public String
answer
(InvocationOnMock invocation) throws Throwable {
/packages/apps/TV/tests/unit/src/com/android/tv/data/
ChannelTest.java
33
import org.mockito.stubbing.
Answer
;
88
Mockito.doAnswer(new
Answer
<ActivityInfo>() {
90
public ActivityInfo
answer
(InvocationOnMock invocation) {
187
new
Answer
<Boolean>() {
189
public Boolean
answer
(InvocationOnMock invocation) throws Throwable {
232
new
Answer
<Boolean>() {
234
public Boolean
answer
(InvocationOnMock invocation) throws Throwable {
/external/mockito/src/test/java/org/mockitousage/
CompilationWarningsTest.java
6
import org.mockito.stubbing.
Answer
;
100
private static
Answer
<?> ignore() {
101
return new
Answer
<Object>() {
103
public Object
answer
(InvocationOnMock invocation) throws Throwable {
/frameworks/base/core/tests/coretests/src/com/android/internal/app/
ResolverListControllerTest.java
36
import org.mockito.stubbing.
Answer
;
104
Answer
<Void>
answer
= new
Answer
<Void>() {
local
106
public Void
answer
(InvocationOnMock invocation) throws Throwable {
111
doAnswer(
answer
).when(mMockService).reportChooserSelection(
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
AdvancedPowerUsageDetailTest.java
64
import org.mockito.stubbing.
Answer
;
87
@Mock(
answer
= Answers.RETURNS_DEEP_STUBS)
89
@Mock(
answer
= Answers.RETURNS_DEEP_STUBS)
162
Answer
<Void> callable = new
Answer
<Void>() {
164
public Void
answer
(InvocationOnMock invocation) throws Exception {
285
Answer
<Void> callable = new
Answer
<Void>() {
287
public Void
answer
(InvocationOnMock invocation) throws Exception {
AppButtonsPreferenceControllerTest.java
63
import org.mockito.stubbing.
Answer
;
77
@Mock(
answer
= Answers.RETURNS_DEEP_STUBS)
137
Answer
<Void> callable = new
Answer
<Void>() {
139
public Void
answer
(InvocationOnMock invocation) throws Exception {
/frameworks/base/tests/TtsTests/src/com/android/speech/tts/
TextToSpeechTests.java
29
import org.mockito.stubbing.
Answer
;
221
return Mockito.doAnswer(new
Answer
<Void>() {
223
public Void
answer
(InvocationOnMock invocation) throws Exception {
235
return Mockito.doAnswer(new
Answer
<Object>() {
237
public Object
answer
(InvocationOnMock invocation) throws Exception {
/tools/tradefederation/core/tests/src/com/android/tradefed/build/
FileDownloadCacheFuncTest.java
29
import org.mockito.stubbing.
Answer
;
79
public Object
answer
() throws Throwable {
126
Answer
<Void> blockedAnswer =
127
new
Answer
<Void>() {
129
public Void
answer
(InvocationOnMock invocation) throws Throwable {
200
public Object
answer
() throws Throwable {
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/imsphone/
ImsExternalCallTrackerTest.java
31
import org.mockito.stubbing.
Answer
;
ImsPhoneConnectionTest.java
42
import org.mockito.stubbing.
Answer
;
194
doAnswer(new
Answer
() {
196
public Void
answer
(InvocationOnMock invocation) throws Throwable {
217
doAnswer(new
Answer
() {
219
public Void
answer
(InvocationOnMock invocation) throws Throwable {
/external/mockito/src/test/java/org/mockito/internal/creation/bytebuddy/
AbstractByteBuddyMockMakerTest.java
16
import org.mockito.stubbing.
Answer
;
189
public void setAnswersForStubbing(List<
Answer
<?>> list) { }
/external/mockito/src/test/java/org/mockitousage/stubbing/
StubbingUsingDoReturnTest.java
15
import org.mockito.stubbing.
Answer
;
194
doAnswer(new
Answer
<Object>() {
195
public Object
answer
(InvocationOnMock invocation) throws Throwable {
/frameworks/base/services/tests/servicestests/src/com/android/server/
BaseLockSettingsServiceTests.java
40
import org.mockito.stubbing.
Answer
;
106
new
Answer
<Boolean>() {
108
public Boolean
answer
(InvocationOnMock invocation) throws Throwable {
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
CarrierServicesSmsFilterTest.java
48
import org.mockito.stubbing.
Answer
;
165
doAnswer(new
Answer
<Void>() {
167
public Void
answer
(InvocationOnMock invocation) throws Throwable {
TelephonyTest.java
75
import org.mockito.stubbing.
Answer
;
392
doAnswer(new
Answer
<IccRecords>() {
393
public IccRecords
answer
(InvocationOnMock invocation) {
415
doAnswer(new
Answer
<IccRecords>() {
416
public IccRecords
answer
(InvocationOnMock invocation) {
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/provisioning/
ProfileOwnerProvisioningControllerTest.java
51
import org.mockito.stubbing.
Answer
;
150
doAnswer(new
Answer
<Void>() {
152
public Void
answer
(InvocationOnMock invocationOnMock) throws Throwable {
/packages/apps/Messaging/tests/src/com/android/messaging/ui/conversation/
ComposeMessageViewTest.java
47
import org.mockito.stubbing.
Answer
;
111
Mockito.doAnswer(new
Answer
() {
113
public Object
answer
(InvocationOnMock invocation) throws Throwable {
/packages/apps/StorageManager/robotests/src/com/android/storagemanager/utils/
PreferenceListCacheTest.java
29
import org.mockito.stubbing.
Answer
;
150
when(mGroup.getPreference(anyInt())).thenAnswer(new
Answer
<Preference>() {
152
public Preference
answer
(InvocationOnMock invocation) throws Throwable {
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
ComponentContextFixture.java
27
import org.mockito.stubbing.
Answer
;
444
doAnswer(new
Answer
<List<ResolveInfo>>() {
446
public List<ResolveInfo>
answer
(InvocationOnMock invocation) throws Throwable {
453
doAnswer(new
Answer
<List<ResolveInfo>>() {
455
public List<ResolveInfo>
answer
(InvocationOnMock invocation) throws Throwable {
466
doAnswer(new
Answer
<Void>(){
468
public Void
answer
(InvocationOnMock invocation) throws Throwable {
513
when(mResources.getString(eq(id), any())).thenAnswer(new
Answer
<String>() {
515
public String
answer
(InvocationOnMock invocation) {
CallAudioRouteStateMachineTest.java
43
import org.mockito.stubbing.
Answer
;
188
doAnswer(new
Answer
() {
190
public Object
answer
(InvocationOnMock invocation) throws Throwable {
[
all
...]
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
WakeupMessageTest.java
37
import org.mockito.stubbing.
Answer
;
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
WifiPermissionsUtilTest.java
55
import org.mockito.stubbing.
Answer
;
102
private
Answer
<Integer> mReturnPermission;
465
private
Answer
<Integer> createPermissionAnswer() {
466
return new
Answer
<Integer>() {
468
public Integer
answer
(InvocationOnMock invocation) {
/cts/tests/tests/widget/src/android/widget/cts/
MultiAutoCompleteTextViewTest.java
49
import org.mockito.stubbing.
Answer
;
143
new
Answer
<CharSequence>() {
145
public CharSequence
answer
(InvocationOnMock invocation) throws Throwable {
/external/mockito/src/test/java/org/mockitousage/basicapi/
MocksSerializationForAnnotationTest.java
16
import org.mockito.stubbing.
Answer
;
231
CustomAnswersMustImplementSerializableForSerializationToWork
answer
=
local
233
answer
.string = "return value";
234
when(imethodsMock.objectArgMethod(anyString())).thenAnswer(
answer
);
241
assertEquals(
answer
.string, readObject.objectArgMethod(""));
245
implements
Answer
<Object>, Serializable {
247
public Object
answer
(InvocationOnMock invocation) throws Throwable {
method in class:MocksSerializationForAnnotationTest.CustomAnswersMustImplementSerializableForSerializationToWork
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
WifiStateMachinePrimeTest.java
37
import org.mockito.stubbing.
Answer
;
105
new
Answer
<Object>() {
106
public SoftApManager
answer
(InvocationOnMock invocation) {
Completed in 1380 milliseconds
1
2
3
4
5
6