/external/pdfium/testing/resources/javascript/ |
D | bug_361_expected.txt | 1 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/ |
D | AdditionalAnswers.java | 13 import org.mockito.stubbing.Answer; 85 public static <T> Answer<T> returnsFirstArg() { in returnsFirstArg() 86 return (Answer<T>) new ReturnsArgumentAt(0); in returnsFirstArg() 133 public static <T> Answer<T> returnsSecondArg() { in returnsSecondArg() 134 return (Answer<T>) new ReturnsArgumentAt(1); in returnsSecondArg() 181 public static <T> Answer<T> returnsLastArg() { in returnsLastArg() 182 return (Answer<T>) new ReturnsArgumentAt(ReturnsArgumentAt.LAST_ARGUMENT); in returnsLastArg() 230 public static <T> Answer<T> returnsArgAt(int position) { in returnsArgAt() 231 return (Answer<T>) new ReturnsArgumentAt(position); in returnsArgAt() 296 public static <T> Answer<T> delegatesTo(Object delegate) { in delegatesTo() [all …]
|
D | BDDMockito.java | 7 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 …]
|
D | Answers.java | 14 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()
|
D | Mockito.java | 31 import org.mockito.stubbing.Answer; 1551 public static final Answer<Object> RETURNS_DEFAULTS = Answers.RETURNS_DEFAULTS; 1583 public static final Answer<Object> RETURNS_SMART_NULLS = Answers.RETURNS_SMART_NULLS; 1596 public static final Answer<Object> RETURNS_MOCKS = Answers.RETURNS_MOCKS; 1683 public static final Answer<Object> RETURNS_DEEP_STUBS = Answers.RETURNS_DEEP_STUBS; 1721 public static final Answer<Object> CALLS_REAL_METHODS = Answers.CALLS_REAL_METHODS; 1792 public static final Answer<Object> RETURNS_SELF = Answers.RETURNS_SELF; 1866 public static <T> T mock(Class<T> classToMock, Answer defaultAnswer) { in mock() 2377 public static Stubber doAnswer(Answer answer) { in doAnswer()
|
/external/e2fsprogs/resize/ |
D | test_extent.in | 22 # 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/ |
D | AnswerFunctionalInterfaces.java | 8 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 …]
|
D | AnswersWithDelay.java | 8 import org.mockito.stubbing.Answer; 23 public class AnswersWithDelay implements Answer<Object>, ValidableAnswer, Serializable { 27 private final Answer<Object> answer; 29 public AnswersWithDelay(final long sleepyTime, final Answer<Object> answer) { in AnswersWithDelay()
|
/external/mockito/src/main/java/org/mockito/internal/stubbing/ |
D | StubbedInvocationMatcher.java | 12 import org.mockito.stubbing.Answer; 23 private final Queue<Answer> answers = new ConcurrentLinkedQueue<Answer>(); 27 …public StubbedInvocationMatcher(Answer answer, MatchableInvocation invocation, Strictness strictne… in StubbedInvocationMatcher() 35 Answer a; in answer() 42 public void addAnswer(Answer answer) { in addAnswer()
|
D | DoAnswerStyleStubbing.java | 8 import org.mockito.stubbing.Answer; 19 private final List<Answer<?>> answers = new ArrayList<Answer<?>>(); 22 void setAnswers(List<Answer<?>> answers, Strictness stubbingStrictness) { in setAnswers() 36 List<Answer<?>> getAnswers() { in getAnswers()
|
D | ConsecutiveStubbing.java | 7 import org.mockito.stubbing.Answer; 17 public OngoingStubbing<T> thenAnswer(Answer<?> answer) { in thenAnswer() 22 public OngoingStubbing<T> then(Answer<?> answer) { in then()
|
D | InvocationContainerImpl.java | 16 import org.mockito.stubbing.Answer; 54 public void addAnswer(Answer answer, Strictness stubbingStrictness) { in addAnswer() 59 public void addConsecutiveAnswer(Answer answer) { in addConsecutiveAnswer() 66 …public StubbedInvocationMatcher addAnswer(Answer answer, boolean isConsecutive, Strictness stubbin… in addAnswer() 106 public void setAnswersForStubbing(List<Answer<?>> answers, Strictness strictness) { in setAnswersForStubbing()
|
D | OngoingStubbingImpl.java | 9 import org.mockito.stubbing.Answer; 26 public OngoingStubbing<T> thenAnswer(Answer<?> answer) { in thenAnswer() 36 public OngoingStubbing<T> then(Answer<?> answer) { in then()
|
D | StubberImpl.java | 12 import org.mockito.stubbing.Answer; 34 private final List<Answer<?>> answers = new LinkedList<Answer<?>>(); 123 public Stubber doAnswer(Answer answer) { in doAnswer()
|
/external/mockito/src/test/java/org/mockito/internal/handler/ |
D | InvocationNotifierHandlerTest.java | 19 import org.mockito.stubbing.Answer; 39 private static final Answer<?> SOME_ANSWER = mock(Answer.class); 47 @Mock private MockHandlerImpl<ArrayList<Answer<?>>> mockHandler; 49 private InvocationNotifierHandler<ArrayList<Answer<?>>> notifier; 53 notifier = new InvocationNotifierHandler<ArrayList<Answer<?>>>( in setUp() 55 …(MockCreationSettings<ArrayList<Answer<?>>>) new MockSettingsImpl<ArrayList<Answer<?>>>().invocati… in setUp()
|
/external/mockito/src/test/java/org/mockitousage/bugs/ |
D | MockitoStubbedCallInAnswerTest.java | 10 import org.mockito.stubbing.Answer; 28 when(foo.doInt()).thenAnswer(new Answer<Integer>() { in stubbing_the_right_mock() 49 when(foo.doString()).thenAnswer(new Answer<String>() { in return_type_validation() 64 when(foo.doInt()).thenAnswer(new Answer<Integer>() { in prevents_stack_overflow() 71 when(foo.doInt()).thenAnswer(new Answer<Integer>() { in prevents_stack_overflow() 84 when(foo.doInt()).thenAnswer(new Answer<Integer>() { in overriding_stubbing()
|
D | ClassCastExOnVerifyZeroInteractionsTest.java | 11 import org.mockito.stubbing.Answer; 23 TestMock test = mock(TestMock.class, new Answer<Object>() { in should_not_throw_ClassCastException_when_mock_verification_fails() 34 TestMock test = mock(TestMock.class, new Answer<Object>() { in should_report_bogus_default_answer()
|
/external/mockito/src/test/java/org/mockito/internal/stubbing/defaultanswers/ |
D | ReturnsSmartNullsTest.java | 11 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/ |
D | StubbingWithCustomAnswerTest.java | 10 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/ |
D | MockitoConfiguration.java | 7 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/ |
D | RequestQueueIntegrationTest.java | 38 import org.mockito.stubbing.Answer; 76 Answer<NetworkResponse> delayAnswer = in add_requestProcessedInCorrectOrder() 77 new Answer<NetworkResponse>() { in add_requestProcessedInCorrectOrder() 111 Answer<NetworkResponse> delayAnswer = in add_dedupeByCacheKey() 112 new Answer<NetworkResponse>() { in add_dedupeByCacheKey() 143 Answer<NetworkResponse> delayAnswer = in add_requestFinishedListenerCanceled() 144 new Answer<NetworkResponse>() { in add_requestFinishedListenerCanceled()
|
/external/mockito/src/main/java/org/mockito/internal/stubbing/defaultanswers/ |
D | ReturnsSmartNulls.java | 17 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 {
|
D | ReturnsMocks.java | 10 import org.mockito.stubbing.Answer; 14 public class ReturnsMocks implements Answer<Object>, Serializable { 18 private final Answer<Object> delegate = new ReturnsMoreEmptyValues();
|
D | ReturnsMoreEmptyValues.java | 12 import org.mockito.stubbing.Answer; 47 public class ReturnsMoreEmptyValues implements Answer<Object>, Serializable { 50 private final Answer<Object> delegate = new ReturnsEmptyValues();
|
/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/ |
D | TestUtils.java | 33 import org.mockito.stubbing.Answer; 74 doAnswer(new Answer<ConnectionClientTransport>() { in captureTransports() 83 doAnswer(new Answer<Runnable>() { in captureTransports()
|