HomeSort by relevance Sort by last modified time
    Searched refs:Answer (Results 51 - 75 of 142) sorted by null

1 23 4 5 6

  /packages/apps/TV/tests/unit/src/com/android/tv/recommendation/
RecommendationUtils.java 27 import org.mockito.stubbing.Answer;
46 Mockito.doAnswer(new Answer<Integer>() {
48 public Integer answer(InvocationOnMock invocation) throws Throwable {
52 Mockito.doAnswer(new Answer<Collection<ChannelRecord>>() {
54 public Collection<ChannelRecord> answer(InvocationOnMock invocation) throws Throwable {
58 Mockito.doAnswer(new Answer<ChannelRecord>() {
60 public ChannelRecord answer(InvocationOnMock invocation) throws Throwable {
  /external/mockito/src/main/java/org/mockito/internal/handler/
InvocationNotifierHandler.java 16 import org.mockito.stubbing.Answer;
70 public void setAnswersForStubbing(List<Answer<?>> answers) {
MockHandlerImpl.java 22 import org.mockito.stubbing.Answer;
89 // look for existing answer for this invocation
95 return stubbedInvocation.answer(invocation);
97 Object ret = mockSettings.getDefaultAnswer().answer(invocation);
114 public void setAnswersForStubbing(List<Answer<?>> answers) {
  /external/mockito/src/test/java/org/mockitousage/bugs/
ShouldNotDeadlockAnswerExecutionTest.java 11 import org.mockito.stubbing.Answer;
27 // registed answer on verySlowMethod
53 // registed answer on verySlowMethod
73 static class LockingAnswer implements Answer<String> {
84 public String answer(InvocationOnMock invocation) throws Throwable { method in class:ShouldNotDeadlockAnswerExecutionTest.LockingAnswer
  /frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
MockKeyStore.java 13 import org.mockito.stubbing.Answer;
40 .thenAnswer(new Answer<Boolean>() {
43 public Boolean answer(InvocationOnMock invocation) throws Throwable {
51 .thenAnswer(new Answer<Boolean>() {
54 public Boolean answer(InvocationOnMock invocation) throws Throwable {
61 when(mock.delete(anyString(), anyInt())).thenAnswer(new Answer<Boolean>() {
64 public Boolean answer(InvocationOnMock invocation) throws Throwable {
70 when(mock.contains(anyString(), anyInt())).thenAnswer(new Answer<Boolean>() {
73 public Boolean answer(InvocationOnMock invocation) throws Throwable {
80 .thenAnswer(new Answer<Boolean>()
    [all...]
  /frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/app/
GuidedStepFragmentTest.java 42 import org.mockito.stubbing.Answer;
58 doAnswer(new Answer<Void>() {
60 public Void answer(InvocationOnMock invocation) {
66 doAnswer(new Answer<Void>() {
68 public Void answer(InvocationOnMock invocation) {
135 doAnswer(new Answer<Void>() {
137 public Void answer(InvocationOnMock invocation) {
147 doAnswer(new Answer<Void>() {
149 public Void answer(InvocationOnMock invocation) {
203 doAnswer(new Answer<Void>()
    [all...]
GuidedStepSupportFragmentTest.java 45 import org.mockito.stubbing.Answer;
61 doAnswer(new Answer<Void>() {
63 public Void answer(InvocationOnMock invocation) {
69 doAnswer(new Answer<Void>() {
71 public Void answer(InvocationOnMock invocation) {
138 doAnswer(new Answer<Void>() {
140 public Void answer(InvocationOnMock invocation) {
150 doAnswer(new Answer<Void>() {
152 public Void answer(InvocationOnMock invocation) {
206 doAnswer(new Answer<Void>()
    [all...]
  /external/mockito/src/main/java/org/mockito/internal/creation/
MockSettingsImpl.java 18 import org.mockito.stubbing.Answer;
81 public MockSettings defaultAnswer(Answer defaultAnswer) {
89 public Answer<Object> getDefaultAnswer() {
  /external/mockito/src/main/java/org/mockito/internal/stubbing/defaultanswers/
ReturnsDeepStubs.java 18 import org.mockito.stubbing.Answer;
30 * <p>Supports nested generic information, with this answer you can write code like this :
43 public class ReturnsDeepStubs implements Answer<Object>, Serializable {
47 public Object answer(InvocationOnMock invocation) throws Throwable { method in class:ReturnsDeepStubs
66 return stubbedInvocationMatcher.answer(invocation);
70 // record deep stub answer
80 return stubbing.answer(invocation);
88 * {@link ReturnsDeepStubs} answer in which we will store the returned type generic metadata.
120 DeeplyStubbedAnswer answer = new DeeplyStubbedAnswer(mock); local
121 return container.addAnswer(answer, false)
155 public Object answer(InvocationOnMock invocation) throws Throwable { method in class:ReturnsDeepStubs.DeeplyStubbedAnswer
    [all...]
ReturnsEmptyValues.java 13 import org.mockito.stubbing.Answer;
22 * Default answer of every Mockito mock.
50 public class ReturnsEmptyValues implements Answer<Object>, Serializable {
56 * @see org.mockito.stubbing.Answer#answer(org.mockito.invocation.InvocationOnMock)
58 public Object answer(InvocationOnMock invocation) { method in class:ReturnsEmptyValues
  /external/mockito/src/test/java/org/mockitousage/
PlaygroundWithDemoOfUnclonedParametersProblemTest.java 12 import org.mockito.stubbing.Answer;
75 private Answer<Object> byCheckingLogEquals(final ImportLogBean status) {
76 return new Answer<Object>() {
77 public Object answer(InvocationOnMock invocation) throws Throwable {
  /libcore/luni/src/test/java/libcore/java/nio/channels/
ChannelsTest.java 34 import org.mockito.stubbing.Answer;
82 new Answer<Integer>() {
83 public Integer answer(InvocationOnMock invocation) {
110 new Answer<Integer>() {
111 public Integer answer(InvocationOnMock invocation) {
  /external/mockito/src/main/java/org/mockito/internal/stubbing/answers/
ReturnsArgumentAt.java 12 import org.mockito.stubbing.Answer;
24 public class ReturnsArgumentAt implements Answer<Object>, ValidableAnswer, Serializable {
33 * Build the identity answer to return the argument at the given position in the argument array.
46 public Object answer(InvocationOnMock invocation) throws Throwable { method in class:ReturnsArgumentAt
51 // answer raw vararg array argument
54 // answer expanded argument at wanted position
  /packages/apps/DocumentsUI/tests/common/com/android/documentsui/services/
TestNotificationManager.java 29 import org.mockito.stubbing.Answer;
37 private final Answer<Void> mAnswer = this::invoke;
  /packages/apps/Messaging/tests/src/com/android/messaging/
FakeFactory.java 47 import org.mockito.stubbing.Answer;
89 .thenAnswer(new Answer<String>() {
91 public String answer(final InvocationOnMock invocation) throws Throwable {
98 new Answer<String>() {
100 public String answer(final InvocationOnMock invocation) throws Throwable {
107 new Answer<String>() {
109 public String answer(final InvocationOnMock invocation) throws Throwable {
  /cts/tests/tests/print/src/android/print/cts/
BasePrintTest.java 82 import org.mockito.stubbing.Answer;
755 PrintDocumentAdapter createMockPrintDocumentAdapter(Answer<Void> layoutAnswer,
756 Answer<Void> writeAnswer, Answer<Void> finishAnswer) {
820 Answer<Void> onStartPrinterDiscovery, Answer<Void> onStopPrinterDiscovery,
821 Answer<Void> onValidatePrinters, Answer<Void> onStartPrinterStateTracking,
822 Answer<Void> onRequestCustomPrinterIcon, Answer<Void> onStopPrinterStateTracking
    [all...]
  /cts/tests/tests/appwidget/src/android/appwidget/cts/
AppWidgetTest.java 59 import org.mockito.stubbing.Answer;
797 doAnswer(new Answer<Void>() {
799 public Void answer(InvocationOnMock invocation) throws Throwable {
    [all...]
  /external/mockito/src/test/java/org/mockitousage/spies/
SpyingOnInterfacesTest.java 18 import org.mockito.stubbing.Answer;
50 new Answer<Object>() {
51 public Object answer(InvocationOnMock invocation) throws Throwable {
  /frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/imsphone/
ImsPhoneCallTrackerTest.java 70 import org.mockito.stubbing.Answer;
105 doAnswer(new Answer<Void>() {
107 public Void answer(InvocationOnMock invocation) throws Throwable {
116 doAnswer(new Answer<Void>() {
118 public Void answer(InvocationOnMock invocation) throws Throwable {
129 doAnswer(new Answer<Void>() {
131 public Void answer(InvocationOnMock invocation) throws Throwable {
141 doAnswer(new Answer<Void>() {
143 public Void answer(InvocationOnMock invocation) throws Throwable {
169 doAnswer(new Answer<Integer>()
    [all...]
  /frameworks/support/emoji/core/tests/java/android/support/text/emoji/
EmojiSpanTest.java 41 import org.mockito.stubbing.Answer;
63 when(paint.getFontMetricsInt(any(FontMetricsInt.class))).thenAnswer(new Answer<Object>() {
65 public Object answer(InvocationOnMock invocation) throws Throwable {
  /packages/apps/Settings/tests/robotests/src/com/android/settings/enterprise/
AdminGrantedPermissionsPreferenceControllerTestBase.java 33 import org.mockito.stubbing.Answer;
52 @Mock(answer = Answers.RETURNS_DEEP_STUBS)
81 doAnswer(new Answer() {
82 public Object answer(InvocationOnMock invocation) {
EnterpriseInstalledPackagesPreferenceControllerTest.java 37 import org.mockito.stubbing.Answer;
59 @Mock(answer = Answers.RETURNS_DEEP_STUBS)
82 doAnswer(new Answer() {
83 public Object answer(InvocationOnMock invocation) {
  /packages/apps/StorageManager/robotests/src/com/android/storagemanager/automatic/
JobPreconditionsTest.java 31 import org.mockito.stubbing.Answer;
116 new Answer<NetworkInfo>() {
118 public NetworkInfo answer(InvocationOnMock invocation) {
  /packages/apps/TV/tests/unit/src/com/android/tv/menu/
MenuTest.java 26 import org.mockito.stubbing.Answer;
131 Mockito.when(mMenuView.isVisible()).thenAnswer(new Answer<Boolean>() {
133 public Boolean answer(InvocationOnMock invocation) throws Throwable {
  /packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
FakeSystemFacade.java 16 import org.mockito.stubbing.Answer;
73 when(network.openConnection(any())).then(new Answer<URLConnection>() {
75 public URLConnection answer(InvocationOnMock invocation) throws Throwable {

Completed in 1461 milliseconds

1 23 4 5 6