/external/mockito/src/org/mockito/stubbing/ |
Answer.java | 10 * Generic interface to be used for configuring mock's answer.
11 * Answer specifies an action that is executed and a return value that is returned when you interact with the mock.
13 * Example of stubbing a mock with custom answer:
16 * when(mock.someMethod(anyString())).thenAnswer(new Answer() {
17 * Object answer(InvocationOnMock invocation) {
30 public interface Answer<T> {
38 T answer(InvocationOnMock invocation) throws Throwable;
method in interface:Answer
|
/cts/tests/tests/print/src/android/print/cts/ |
PrinterInfoTest.java | 47 import org.mockito.stubbing.Answer; 75 new Answer<Void>() { 77 public Void answer(InvocationOnMock invocation) throws Throwable { 93 }, new Answer<Void>() { 95 public Void answer(InvocationOnMock invocation) throws Throwable { method 110 }, new Answer<Void>() { 112 public Void answer(InvocationOnMock invocation) throws Throwable { method 133 return createMockPrinterDiscoverySessionCallbacks(new Answer<Void>() { 135 public Void answer(InvocationOnMock invocation) { 361 }, null, null, new Answer<Void>() [all...] |
PrintAttributesTest.java | 41 import org.mockito.stubbing.Answer; 143 return createMockPrinterDiscoverySessionCallbacks(new Answer<Void>() { 145 public Void answer(InvocationOnMock invocation) { 198 }, null, null, new Answer<Void>() { 200 public Void answer(InvocationOnMock invocation) throws Throwable { method 203 }, null, null, new Answer<Void>() { 205 public Void answer(InvocationOnMock invocation) throws Throwable { method 232 new Answer<Void>() { 234 public Void answer(InvocationOnMock invocation) throws Throwable { 247 }, new Answer<Void>() [all...] |
PrintJobTest.java | 44 import org.mockito.stubbing.Answer; 85 new Answer<Void>() { 87 public Void answer(InvocationOnMock invocation) throws Throwable { 100 }, new Answer<Void>() { 102 public Void answer(InvocationOnMock invocation) throws Throwable { method 114 }, new Answer<Void>() { 116 public Void answer(InvocationOnMock invocation) throws Throwable { method 128 return createMockPrinterDiscoverySessionCallbacks(new Answer<Void>() { 130 public Void answer(InvocationOnMock invocation) { 156 }, null, null, new Answer<Void>() [all...] |
PrintServicesTest.java | 61 import org.mockito.stubbing.Answer; 102 new Answer<Void>() { 104 public Void answer(InvocationOnMock invocation) throws Throwable { 120 }, new Answer<Void>() { 122 public Void answer(InvocationOnMock invocation) throws Throwable { method 137 }, new Answer<Void>() { 139 public Void answer(InvocationOnMock invocation) throws Throwable { method 154 return createMockPrinterDiscoverySessionCallbacks(new Answer<Void>() { 156 public Void answer(InvocationOnMock invocation) { 194 }, null, null, new Answer<Void>() [all...] |
PrinterDiscoverySessionLifecycleTest.java | 45 import org.mockito.stubbing.Answer; 72 new Answer<PrinterDiscoverySessionCallbacks>() { 74 public PrinterDiscoverySessionCallbacks answer(InvocationOnMock invocation) { 78 new Answer<Void>() { 80 public Void answer(InvocationOnMock invocation) { 125 // Answer the dialog for the print service cloud warning 172 new Answer<PrinterDiscoverySessionCallbacks>() { 174 public PrinterDiscoverySessionCallbacks answer(InvocationOnMock invocation) { 178 new Answer<Void>() { 180 public Void answer(InvocationOnMock invocation) 435 public Void answer(InvocationOnMock invocation) throws Throwable { method 483 public Void answer(InvocationOnMock invocation) throws Throwable { method [all...] |
PrintDocumentAdapterContractTest.java | 49 import org.mockito.stubbing.Answer; 73 new Answer<Void>() { 75 public Void answer(InvocationOnMock invocation) throws Throwable { 87 }, new Answer<Void>() { 89 public Void answer(InvocationOnMock invocation) throws Throwable { 101 }, new Answer<Void>() { 103 public Void answer(InvocationOnMock invocation) throws Throwable { 125 // Answer the dialog for the print service cloud warning 197 new Answer<Void>() { 199 public Void answer(InvocationOnMock invocation) throws Throwable 1904 public Void answer(InvocationOnMock invocation) throws Throwable { method [all...] |
/external/chromium-trace/catapult/telemetry/third_party/web-page-replay/third_party/dns/ |
resolver.py | 47 """The response did not contain an answer to the question.""" 51 """No non-broken nameservers are available to answer the query.""" 65 class Answer(object): 66 """DNS stub resolver answer 71 For convenience, the answer object implements much of the sequence 72 protocol, forwarding to its rrset. E.g. "for a in answer" is 73 equivalent to "for a in answer.rrset", "answer[i]" is equivalent 74 to "answer.rrset[i]", and "answer[i:j]" is equivalent t [all...] |
/prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/include/ |
rtccore.h | [all...] |
tapi3if.h | [all...] |
/prebuilts/tools/common/m2/repository/org/mockito/mockito-core/2.2.5/ |
mockito-core-2.2.5.jar | |
/external/dexmaker/lib/ |
mockito-core-1.9.1-SNAPSHOT.jar | |
/external/robolectric/v1/lib/test/ |
mockito-core-1.8.5.jar | |
/prebuilts/tools/common/m2/repository/org/mockito/mockito-all/1.9.5/ |
mockito-all-1.9.5.jar | |
/prebuilts/tools/common/m2/repository/org/mockito/mockito-core/1.9.5/ |
mockito-core-1.9.5.jar | |