Home
last modified time | relevance | path

Searched refs:doAnswer (Results 1 – 25 of 44) sorted by relevance

12

/external/mockito/src/test/java/org/mockito/internal/
DInvalidStateDetectionTest.java77 doAnswer(null); in shouldDetectUnfinishedDoAnswerStubbing()
80 doAnswer(null); in shouldDetectUnfinishedDoAnswerStubbing()
83 doAnswer(null); in shouldDetectUnfinishedDoAnswerStubbing()
86 doAnswer(null); in shouldDetectUnfinishedDoAnswerStubbing()
89 doAnswer(null); in shouldDetectUnfinishedDoAnswerStubbing()
92 doAnswer(null); in shouldDetectUnfinishedDoAnswerStubbing()
95 doAnswer(null); in shouldDetectUnfinishedDoAnswerStubbing()
204 doAnswer(null); in detect()
/external/mockito/src/test/java/org/mockitousage/
DCompilationWarningsTest.java30 doAnswer(ignore()).doReturn(null).when(mock(IMethods.class)).objectReturningMethodNoArgs(); in no_warnings_for_most_common_api()
31doAnswer(ignore()).doReturn("a", 12).when(mock(IMethods.class)).objectReturningMethodNoArgs(); in no_warnings_for_most_common_api()
32 doAnswer(ignore()).doReturn(1000).when(mock(IMethods.class)).objectReturningMethodNoArgs(); in no_warnings_for_most_common_api()
33doAnswer(ignore()).doThrow(new NullPointerException()).when(mock(IMethods.class)).objectReturningM… in no_warnings_for_most_common_api()
34doAnswer(ignore()).doThrow(new NullPointerException(), new IllegalArgumentException()).when(mock(I… in no_warnings_for_most_common_api()
35doAnswer(ignore()).doThrow(NullPointerException.class).when(mock(IMethods.class)).objectReturningM… in no_warnings_for_most_common_api()
85doAnswer(ignore()).doThrow(NullPointerException.class, IllegalArgumentException.class).when(mock(I… in heap_pollution_JDK7plus_warning_avoided_BUT_now_unchecked_generic_array_creation_warnings_ON_JDK5plus_environment()
95doAnswer(ignore()).doReturn(null, (Object[]) null).when(mock(IMethods.class)).objectReturningMetho… in unchecked_confusing_null_argument_warnings()
/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/
DTestUtils.java20 import static org.mockito.Mockito.doAnswer;
74 doAnswer(new Answer<ConnectionClientTransport>() { in captureTransports()
83 doAnswer(new Answer<Runnable>() { in captureTransports()
DChannelExecutorTest.java22 import static org.mockito.Mockito.doAnswer;
98 doAnswer(new Answer<Void>() { in multiThread()
112 doAnswer(new Answer<Void>() { in multiThread()
153 doAnswer(new Answer<Void>() { in taskThrows()
DCallCredentials2ApplyingTest.java24 import static org.mockito.Mockito.doAnswer;
199 doAnswer(new Answer<Void>() { in applyMetadata_inline()
223 doAnswer(new Answer<Void>() { in fail_inline()
DCallCredentialsApplyingTest.java24 import static org.mockito.Mockito.doAnswer;
198 doAnswer(new Answer<Void>() { in applyMetadata_inline()
223 doAnswer(new Answer<Void>() { in fail_inline()
/external/mockito/src/test/java/org/mockitousage/stubbing/
DStubbingWithCustomAnswerTest.java72 doAnswer(recordCall).when(mock).voidMethod(); in shouldAnswerVoidMethod()
83 doAnswer(call1) in shouldAnswerVoidMethodConsecutively()
85 .doAnswer(call2) in shouldAnswerVoidMethodConsecutively()
/external/volley/src/test/java/com/android/volley/toolbox/
DHttpStackConformanceTest.java7 import static org.mockito.Mockito.doAnswer;
60 doAnswer(
72 doAnswer(
103 doAnswer(
/external/mockito/src/main/java/org/mockito/internal/stubbing/
DDefaultLenientStubber.java34 public Stubber doAnswer(Answer answer) { in doAnswer() method in DefaultLenientStubber
35 return stubber().doAnswer(answer); in doAnswer()
/external/mockito/src/main/java/org/mockito/
DBDDMockito.java413 return new BDDStubberImpl(mockitoStubber.doAnswer(answer)); in willAnswer()
417 return new BDDStubberImpl(mockitoStubber.doAnswer(answer)); in will()
486 return new BDDStubberImpl(Mockito.doAnswer(answer)); in willAnswer()
494 return new BDDStubberImpl(Mockito.doAnswer(answer)); in will()
DMockito.java2387 public static Stubber doAnswer(Answer answer) { in doAnswer() method in Mockito
2388 return MOCKITO_CORE.stubber().doAnswer(answer); in doAnswer()
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/mediacodec/
DAsynchronousMediaCodecBufferEnqueuerTest.java21 import static org.mockito.Mockito.doAnswer;
189 doAnswer( in flush_onInterruptedException_throwsIllegalStateException()
226 doAnswer( in shutdown_onInterruptedException_throwsIllegalStateException()
/external/exoplayer/tree/extensions/cronet/src/test/java/com/google/android/exoplayer2/ext/cronet/
DCronetDataSourceTest.java23 import static org.mockito.Mockito.doAnswer;
181 doAnswer( in callbackFromPreviousRequest()
218 doAnswer( in requestHeadersSet() method
1291 doAnswer( in mockStatusResponse()
1303 doAnswer( in mockResponseStartSuccess()
1314 doAnswer( in mockResponseStartRedirect()
1327 doAnswer( in mockSingleRedirectSuccess()
1346 doAnswer( in mockFollowRedirectSuccess()
1357 doAnswer( in mockResponseStartFailure()
1371 doAnswer( in mockReadSuccess()
[all …]
/external/dexmaker/dexmaker-mockito-inline-extended/src/main/java/com/android/dx/mockito/inline/extended/
DStaticCapableStubber.java176 public StaticCapableStubber doAnswer(Answer answer) { in doAnswer() method in StaticCapableStubber
177 instanceStubber = instanceStubber.doAnswer(answer); in doAnswer()
DExtendedMockito.java77 public static StaticCapableStubber doAnswer(Answer answer) { in doAnswer() method in ExtendedMockito
78 return new StaticCapableStubber(Mockito.doAnswer(answer)); in doAnswer()
/external/dexmaker/dexmaker-mockito-inline-extended-tests/src/main/java/com/android/dx/mockito/inline/extended/tests/
DSpyOn.java19 import static com.android.dx.mockito.inline.extended.ExtendedMockito.doAnswer;
97 doAnswer((inv) -> { in spyOnActivity() method
/external/dokka/core/src/test/kotlin/format/
DPackageDocsTest.kt6 import com.nhaarman.mockito_kotlin.doAnswer in <lambda>()
53 … on { tryResolveContentLink(any(), eq(exampleCom)) } doAnswer { ContentExternalLink(exampleCom) } in <lambda>()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/internal/dependency/
DMavenDependencyResolverTest.java6 import static org.mockito.Mockito.doAnswer;
43 doAnswer(new Answer() { in setUp()
/external/libchrome/base/android/junit/src/org/chromium/base/process_launcher/
DChildConnectionAllocatorTest.java16 import static org.mockito.Mockito.doAnswer;
71 doAnswer(new Answer() { in createConnection()
97 doAnswer(new Answer() { in invokeCallbackOnConnectionStart()
/external/grpc-grpc-java/grpclb/src/test/java/io/grpc/grpclb/
DCachedSubchannelPoolTest.java24 import static org.mockito.Mockito.doAnswer;
77 doAnswer(new Answer<Subchannel>() { in setUp()
89 doAnswer(new Answer<Void>() { in setUp()
/external/mockito/src/main/java/org/mockito/stubbing/
DBaseStubber.java80 Stubber doAnswer(Answer answer); in doAnswer() method
/external/grpc-grpc-java/netty/src/test/java/io/grpc/netty/
DWriteQueueTest.java23 import static org.mockito.Mockito.doAnswer;
73 doAnswer(new Answer<Void>() { in setUp()
DNettyStreamTestBase.java27 import static org.mockito.Mockito.doAnswer;
105 doAnswer(new Answer<Void>() { in setUp()
/external/exoplayer/tree/extensions/okhttp/src/test/java/com/google/android/exoplayer2/ext/okhttp/
DOkHttpDataSourceTest.java95 Mockito.doAnswer( in open_setsCorrectHeaders()
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/upstream/
DDefaultHttpDataSourceTest.java126 Mockito.doAnswer( in makeMockHttpUrlConnection()

12