/external/mockito/src/test/java/org/mockito/internal/ |
D | InvalidStateDetectionTest.java | 77 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/ |
D | CompilationWarningsTest.java | 30 doAnswer(ignore()).doReturn(null).when(mock(IMethods.class)).objectReturningMethodNoArgs(); in no_warnings_for_most_common_api() 31 … doAnswer(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() 33 …doAnswer(ignore()).doThrow(new NullPointerException()).when(mock(IMethods.class)).objectReturningM… in no_warnings_for_most_common_api() 34 …doAnswer(ignore()).doThrow(new NullPointerException(), new IllegalArgumentException()).when(mock(I… in no_warnings_for_most_common_api() 35 …doAnswer(ignore()).doThrow(NullPointerException.class).when(mock(IMethods.class)).objectReturningM… in no_warnings_for_most_common_api() 85 …doAnswer(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() 95 …doAnswer(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/ |
D | TestUtils.java | 20 import static org.mockito.Mockito.doAnswer; 74 doAnswer(new Answer<ConnectionClientTransport>() { in captureTransports() 83 doAnswer(new Answer<Runnable>() { in captureTransports()
|
D | ChannelExecutorTest.java | 22 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()
|
D | CallCredentials2ApplyingTest.java | 24 import static org.mockito.Mockito.doAnswer; 199 doAnswer(new Answer<Void>() { in applyMetadata_inline() 223 doAnswer(new Answer<Void>() { in fail_inline()
|
D | CallCredentialsApplyingTest.java | 24 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/ |
D | StubbingWithCustomAnswerTest.java | 72 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/ |
D | HttpStackConformanceTest.java | 7 import static org.mockito.Mockito.doAnswer; 60 doAnswer( 72 doAnswer( 103 doAnswer(
|
/external/mockito/src/main/java/org/mockito/internal/stubbing/ |
D | DefaultLenientStubber.java | 34 public Stubber doAnswer(Answer answer) { in doAnswer() method in DefaultLenientStubber 35 return stubber().doAnswer(answer); in doAnswer()
|
/external/mockito/src/main/java/org/mockito/ |
D | BDDMockito.java | 413 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()
|
D | Mockito.java | 2387 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/ |
D | AsynchronousMediaCodecBufferEnqueuerTest.java | 21 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/ |
D | CronetDataSourceTest.java | 23 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/ |
D | StaticCapableStubber.java | 176 public StaticCapableStubber doAnswer(Answer answer) { in doAnswer() method in StaticCapableStubber 177 instanceStubber = instanceStubber.doAnswer(answer); in doAnswer()
|
D | ExtendedMockito.java | 77 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/ |
D | SpyOn.java | 19 import static com.android.dx.mockito.inline.extended.ExtendedMockito.doAnswer; 97 doAnswer((inv) -> { in spyOnActivity() method
|
/external/dokka/core/src/test/kotlin/format/ |
D | PackageDocsTest.kt | 6 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/ |
D | MavenDependencyResolverTest.java | 6 import static org.mockito.Mockito.doAnswer; 43 doAnswer(new Answer() { in setUp()
|
/external/libchrome/base/android/junit/src/org/chromium/base/process_launcher/ |
D | ChildConnectionAllocatorTest.java | 16 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/ |
D | CachedSubchannelPoolTest.java | 24 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/ |
D | BaseStubber.java | 80 Stubber doAnswer(Answer answer); in doAnswer() method
|
/external/grpc-grpc-java/netty/src/test/java/io/grpc/netty/ |
D | WriteQueueTest.java | 23 import static org.mockito.Mockito.doAnswer; 73 doAnswer(new Answer<Void>() { in setUp()
|
D | NettyStreamTestBase.java | 27 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/ |
D | OkHttpDataSourceTest.java | 95 Mockito.doAnswer( in open_setsCorrectHeaders()
|
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/upstream/ |
D | DefaultHttpDataSourceTest.java | 126 Mockito.doAnswer( in makeMockHttpUrlConnection()
|