Home
last modified time | relevance | path

Searched refs:Answer (Results 1 – 25 of 80) sorted by relevance

1234

/external/pdfium/testing/resources/javascript/
Dbug_361_expected.txt1 Alert: Answer for "" is: string
2 Alert: Answer for "goats" is: string goats
3 Alert: Answer for "b4" is: string b4
4 Alert: Answer for "b4.5" is: string b4.5
5 Alert: Answer for "4x" is: string 4x
6 Alert: Answer for "4.5x" is: string 4.5x
7 Alert: Answer for "4" is: number 4
8 Alert: Answer for "4" is: number 4
9 Alert: Answer for " 4" is: number 4
10 Alert: Answer for "4 " is: number 4
[all …]
/external/mockito/src/main/java/org/mockito/
DAdditionalAnswers.java11 import org.mockito.stubbing.Answer;
83 public static <T> Answer<T> returnsFirstArg() { in returnsFirstArg()
84 return (Answer<T>) new ReturnsArgumentAt(0); in returnsFirstArg()
131 public static <T> Answer<T> returnsSecondArg() { in returnsSecondArg()
132 return (Answer<T>) new ReturnsArgumentAt(1); in returnsSecondArg()
179 public static <T> Answer<T> returnsLastArg() { in returnsLastArg()
180 return (Answer<T>) new ReturnsArgumentAt(ReturnsArgumentAt.LAST_ARGUMENT); in returnsLastArg()
228 public static <T> Answer<T> returnsArgAt(int position) { in returnsArgAt()
229 return (Answer<T>) new ReturnsArgumentAt(position); in returnsArgAt()
294 public static <T> Answer<T> delegatesTo(Object delegate) { in delegatesTo()
[all …]
DBDDMockito.java7 import org.mockito.stubbing.Answer;
93 BDDMyOngoingStubbing<T> willAnswer(Answer<?> answer); in willAnswer()
99 BDDMyOngoingStubbing<T> will(Answer<?> answer); in will()
155 public BDDMyOngoingStubbing<T> willAnswer(Answer<?> answer) { in willAnswer()
159 public BDDMyOngoingStubbing<T> will(Answer<?> answer) { in will()
330 BDDStubber willAnswer(Answer<?> answer); in willAnswer()
336 BDDStubber will(Answer<?> answer); in will()
412 public BDDStubber willAnswer(Answer<?> answer) { in willAnswer()
416 public BDDStubber will(Answer<?> answer) { in will()
485 public static BDDStubber willAnswer(Answer<?> answer) { in willAnswer()
[all …]
DAnswers.java14 import org.mockito.stubbing.Answer;
27 public enum Answers implements Answer<Object>{
84 private final Answer<Object> implementation;
86 Answers(Answer<Object> implementation) { in Answers()
95 public Answer<Object> get() { in get()
DMockito.java1370 public static final Answer<Object> RETURNS_DEFAULTS = Answers.RETURNS_DEFAULTS;
1402 public static final Answer<Object> RETURNS_SMART_NULLS = Answers.RETURNS_SMART_NULLS;
1415 public static final Answer<Object> RETURNS_MOCKS = Answers.RETURNS_MOCKS;
1502 public static final Answer<Object> RETURNS_DEEP_STUBS = Answers.RETURNS_DEEP_STUBS;
1536 public static final Answer<Object> CALLS_REAL_METHODS = Answers.CALLS_REAL_METHODS;
1607 public static final Answer<Object> RETURNS_SELF = Answers.RETURNS_SELF;
1677 public static <T> T mock(Class<T> classToMock, Answer defaultAnswer) { in mock()
2183 public static Stubber doAnswer(Answer answer) { in doAnswer()
/external/e2fsprogs/resize/
Dtest_extent.in22 # Answer: 20
24 # Answer: 21
26 # Answer: 22
28 # Answer: 0 (not found)
30 # Answer: 45
32 # Answer: 0 (not found)
34 # Answer: 50
36 # Answer: 0 (not found)
38 # Answer: 0 (not found)
42 # Answer: 52
[all …]
/external/mockito/src/main/java/org/mockito/internal/stubbing/answers/
DAnswerFunctionalInterfaces.java8 import org.mockito.stubbing.Answer;
39 public static <T, A> Answer<T> toAnswer(final Answer1<T, A> answer) { in toAnswer()
40 return new Answer<T>() { in toAnswer()
54 public static <A> Answer<Void> toAnswer(final VoidAnswer1<A> answer) {
55 return new Answer<Void>() {
72 public static <T, A, B> Answer<T> toAnswer(final Answer2<T, A, B> answer) {
73 return new Answer<T>() {
90 public static <A, B> Answer<Void> toAnswer(final VoidAnswer2<A, B> answer) {
91 return new Answer<Void>() {
111 public static <T, A, B, C> Answer<T> toAnswer(final Answer3<T, A, B, C> answer) {
[all …]
/external/mockito/src/main/java/org/mockito/internal/stubbing/
DStubbedInvocationMatcher.java11 import org.mockito.stubbing.Answer;
18 public class StubbedInvocationMatcher extends InvocationMatcher implements Answer, Serializable, St…
21 private final Queue<Answer> answers = new ConcurrentLinkedQueue<Answer>();
24 public StubbedInvocationMatcher(InvocationMatcher invocation, Answer answer) { in StubbedInvocationMatcher()
31 Answer a; in answer()
38 public void addAnswer(Answer answer) { in addAnswer()
DInvocationContainerImpl.java18 import org.mockito.stubbing.Answer;
28 private final List<Answer<?>> answersForStubbing = new ArrayList<Answer<?>>();
46 public void addAnswer(Answer answer) { in addAnswer()
51 public void addConsecutiveAnswer(Answer answer) { in addConsecutiveAnswer()
58 public StubbedInvocationMatcher addAnswer(Answer answer, boolean isConsecutive) { in addAnswer()
93 public void addAnswerForVoidMethod(Answer answer) { in addAnswerForVoidMethod()
97 public void setAnswersForStubbing(List<Answer<?>> answers) { in setAnswersForStubbing()
DConsecutiveStubbing.java7 import org.mockito.stubbing.Answer;
17 public OngoingStubbing<T> thenAnswer(Answer<?> answer) { in thenAnswer()
22 public OngoingStubbing<T> then(Answer<?> answer) { in then()
DOngoingStubbingImpl.java8 import org.mockito.stubbing.Answer;
23 public OngoingStubbing<T> thenAnswer(Answer<?> answer) { in thenAnswer()
32 public OngoingStubbing<T> then(Answer<?> answer) { in then()
DStubberImpl.java19 import org.mockito.stubbing.Answer;
25 private final List<Answer<?>> answers = new LinkedList<Answer<?>>();
98 public Stubber doAnswer(Answer answer) { in doAnswer()
/external/mockito/src/test/java/org/mockito/internal/handler/
DInvocationNotifierHandlerTest.java20 import org.mockito.stubbing.Answer;
40 private static final Answer<?> SOME_ANSWER = mock(Answer.class);
48 @Mock private MockHandlerImpl<ArrayList<Answer<?>>> mockHandler;
50 private InvocationNotifierHandler<ArrayList<Answer<?>>> notifier;
54 notifier = new InvocationNotifierHandler<ArrayList<Answer<?>>>( in setUp()
56 …(MockCreationSettings<ArrayList<Answer<?>>>) new MockSettingsImpl<ArrayList<Answer<?>>>().invocati… in setUp()
124 notifier.setAnswersForStubbing(new ArrayList<Answer<?>>()); in should_delegate_all_MockHandlerInterface_to_the_parameterized_MockHandler()
128 verify(mockHandler).setAnswersForStubbing(ArgumentMatchers.<Answer<?>>anyList()); in should_delegate_all_MockHandlerInterface_to_the_parameterized_MockHandler()
/external/mockito/src/test/java/org/mockito/internal/stubbing/defaultanswers/
DReturnsSmartNullsTest.java11 import org.mockito.stubbing.Answer;
21 Answer<Object> answer = new ReturnsSmartNulls(); in should_return_the_usual_default_values_for_primitives()
40 Answer<Object> answer = new ReturnsSmartNulls(); in should_return_an_object_that_fails_on_any_method_invocation_for_non_primitives()
52 Answer<Object> answer = new ReturnsSmartNulls(); in should_return_an_object_that_allows_object_methods()
63 Answer<Object> answer = new ReturnsSmartNulls(); in should_print_the_parameters_when_calling_a_method_with_args()
75 Answer<Object> answer = new ReturnsSmartNulls(); in should_print_the_parameters_on_SmartNullPointerException_message()
/external/mockito/src/test/java/org/mockitousage/stubbing/
DStubbingWithCustomAnswerTest.java10 import org.mockito.stubbing.Answer;
26 when(mock.simpleMethod(anyString())).thenAnswer(new Answer<String>() { in shouldAnswer()
50 .thenAnswer(new Answer<String>() { in shouldAnswerConsecutively()
56 .thenAnswer(new Answer<String>() { in shouldAnswerConsecutively()
104 when(mock.simpleMethod(anyString())).thenAnswer(new Answer<String>() { in shouldMakeSureTheInterfaceDoesNotChange()
116 private static class RecordCall implements Answer<Object> {
/external/mockito/src/test/java/org/mockito/configuration/
DMockitoConfiguration.java7 import org.mockito.stubbing.Answer;
12 private Answer<Object> overriddenDefaultAnswer = null;
21 public void overrideDefaultAnswer(Answer<Object> defaultAnswer) { in overrideDefaultAnswer()
41 public Answer<Object> getDefaultAnswer() { in getDefaultAnswer()
/external/volley/src/test/java/com/android/volley/
DRequestQueueIntegrationTest.java30 import org.mockito.stubbing.Answer;
73 Answer<NetworkResponse> delayAnswer = new Answer<NetworkResponse>() { in add_requestProcessedInCorrectOrder()
111 Answer<NetworkResponse> delayAnswer = new Answer<NetworkResponse>() { in add_dedupeByCacheKey()
144 Answer<NetworkResponse> delayAnswer = new Answer<NetworkResponse>() { in add_requestFinishedListenerCanceled()
/external/mockito/src/main/java/org/mockito/internal/stubbing/defaultanswers/
DReturnsSmartNulls.java17 import org.mockito.stubbing.Answer;
37 public class ReturnsSmartNulls implements Answer<Object>, Serializable {
41 private final Answer<Object> delegate = new ReturnsMoreEmptyValues();
56 private static class ThrowsSmartNullPointer implements Answer {
DReturnsMocks.java10 import org.mockito.stubbing.Answer;
14 public class ReturnsMocks implements Answer<Object>, Serializable {
18 private final Answer<Object> delegate = new ReturnsMoreEmptyValues();
DReturnsMoreEmptyValues.java12 import org.mockito.stubbing.Answer;
47 public class ReturnsMoreEmptyValues implements Answer<Object>, Serializable {
50 private final Answer<Object> delegate = new ReturnsEmptyValues();
/external/mockito/src/test/java/org/mockitousage/bugs/
DClassCastExOnVerifyZeroInteractionsTest.java7 import org.mockito.stubbing.Answer;
19 TestMock test = mock(TestMock.class, new Answer<Object>() { in should_not_throw_ClassCastException_when_mock_verification_fails()
30 TestMock test = mock(TestMock.class, new Answer<Object>() { in should_report_bogus_default_answer()
/external/mockito/src/main/java/org/mockito/configuration/
DIMockitoConfiguration.java7 import org.mockito.stubbing.Answer;
45 Answer<Object> getDefaultAnswer(); in getDefaultAnswer()
DDefaultMockitoConfiguration.java9 import org.mockito.stubbing.Answer;
20 public Answer<Object> getDefaultAnswer() { in getDefaultAnswer()
/external/mockito/src/main/java/org/mockito/internal/
DInternalMockHandler.java12 import org.mockito.stubbing.Answer;
18 void setAnswersForStubbing(List<Answer<?>> answers); in setAnswersForStubbing()
/external/mockito/src/main/java/org/mockito/internal/creation/settings/
DCreationSettings.java12 import org.mockito.stubbing.Answer;
27 protected Answer<Object> defaultAnswer;
79 public Answer<Object> getDefaultAnswer() { in getDefaultAnswer()

1234