Searched defs:answer (Results 1 - 25 of 106) sorted by relevance

12345

/external/easymock/src/org/easymock/
H A DIAnswer.java19 * Used to answer expected calls.
24 * is called by EasyMock to answer an expected call.
25 * The answer may be to return a value, or to throw an exception.
26 * The arguments of the call for which the answer is generated
33 T answer() throws Throwable; method in interface:IAnswer
/external/mockito/src/org/mockito/stubbing/
H A DAnswer.java10 * Generic interface to be used for configuring mock's answer.
13 * Example of stubbing a mock with custom answer:
17 * Object answer(InvocationOnMock invocation) {
38 T answer(InvocationOnMock invocation) throws Throwable; method in interface:Answer
H A DDeprecatedOngoingStubbing.java69 * public Integer answer(InvocationOnMock invocation) throws Throwable {
75 * @param answer the custom answer to execute.
79 DeprecatedOngoingStubbing<T> toAnswer(Answer<?> answer); argument
H A DVoidMethodStubbable.java76 * public Object answer(InvocationOnMOck invocation) {
86 * @param answer the custom answer to execute.
90 VoidMethodStubbable<T> toAnswer(Answer<?> answer); argument
H A DOngoingStubbing.java151 * public Integer answer(InvocationOnMock invocation) throws Throwable {
157 * @param answer the custom answer to execute.
161 OngoingStubbing<T> thenAnswer(Answer<?> answer); argument
176 * @param answer the custom answer to execute.
182 OngoingStubbing<T> then(Answer<?> answer); argument
/external/mockito/src/org/mockito/internal/stubbing/answers/
H A DAnswerReturnValuesAdapter.java24 public Object answer(InvocationOnMock invocation) throws Throwable { method in class:AnswerReturnValuesAdapter
H A DCallsRealMethods.java35 public Object answer(InvocationOnMock invocation) throws Throwable { method in class:CallsRealMethods
H A DClonesArguments.java13 //TODO this needs documentation and further analysis - what if someone changes the answer?
16 public Object answer(InvocationOnMock invocation) throws Throwable { method in class:ClonesArguments
24 return new ReturnsEmptyValues().answer(invocation);
H A DDoesNothing.java16 public Object answer(InvocationOnMock invocation) throws Throwable { method in class:DoesNothing
H A DReturnsElementsOf.java45 public Object answer(InvocationOnMock invocation) throws Throwable { method in class:ReturnsElementsOf
H A DReturns.java21 public Object answer(InvocationOnMock invocation) throws Throwable { method in class:Returns
H A DThrowsException.java24 public Object answer(InvocationOnMock invocation) throws Throwable { method in class:ThrowsException
H A DThrowsExceptionClass.java25 public Object answer(InvocationOnMock invocation) throws Throwable { method in class:ThrowsExceptionClass
/external/mockito/src/org/mockito/internal/stubbing/defaultanswers/
H A DForwardsInvocations.java14 * Internal answer to forward invocations on a real instance.
28 public Object answer(InvocationOnMock invocation) throws Throwable { method in class:ForwardsInvocations
H A DGloballyConfiguredAnswer.java23 public Object answer(InvocationOnMock invocation) throws Throwable { method in class:GloballyConfiguredAnswer
24 return new GlobalConfiguration().getDefaultAnswer().answer(invocation);
H A DReturnsEmptyValues.java32 * Default answer of every Mockito mock.
61 * @see org.mockito.stubbing.Answer#answer(org.mockito.invocation.InvocationOnMock)
63 public Object answer(InvocationOnMock invocation) { method in class:ReturnsEmptyValues
H A DReturnsMocks.java20 public Object answer(InvocationOnMock invocation) throws Throwable { method in class:ReturnsMocks
21 Object ret = delegate.answer(invocation);
H A DReturnsMoreEmptyValues.java54 * @see org.mockito.stubbing.Answer#answer(org.mockito.invocation.InvocationOnMock)
56 public Object answer(InvocationOnMock invocation) throws Throwable { method in class:ReturnsMoreEmptyValues
57 Object ret = delegate.answer(invocation);
H A DReturnsSmartNulls.java42 public Object answer(final InvocationOnMock invocation) throws Throwable { method in class:ReturnsSmartNulls
43 Object defaultReturnValue = delegate.answer(invocation);
64 public Object answer(InvocationOnMock currentInvocation) throws Throwable { method in class:ReturnsSmartNulls.ThrowsSmartNullPointer
/external/easymock/src/org/easymock/internal/
H A DResult.java41 public Object answer() throws Throwable {
58 public Object answer() throws Throwable {
75 public Object answer() throws Throwable {
98 public static Result createAnswerResult(IAnswer<?> answer) { argument
99 return new Result(answer, false);
102 public Object answer() throws Throwable { method in class:Result
103 return value.answer();
/external/guava/guava-tests/test/com/google/common/collect/
H A DSortedListsTest.java41 void assertModelAgrees(List<Integer> list, Integer key, int answer, argument
46 assertEquals(list.indexOf(key), answer);
52 assertEquals(list.lastIndexOf(key), answer);
58 assertEquals(key, list.get(answer));
64 assertEquals(list.lastIndexOf(key) + 1, answer);
70 assertEquals(list.indexOf(key) - 1, answer);
84 assertEquals(nextHigherIndex - 1, answer);
87 assertEquals(nextHigherIndex, answer);
90 assertEquals(-1 - nextHigherIndex, answer);
/external/mockito/src/org/mockito/internal/stubbing/
H A DConsecutiveStubbing.java18 public OngoingStubbing<T> thenAnswer(Answer<?> answer) { argument
19 invocationContainerImpl.addConsecutiveAnswer(answer);
23 public OngoingStubbing<T> then(Answer<?> answer) { argument
24 return thenAnswer(answer);
27 public DeprecatedOngoingStubbing<T> toAnswer(Answer<?> answer) { argument
28 invocationContainerImpl.addConsecutiveAnswer(answer);
H A DOngoingStubbingImpl.java23 public OngoingStubbing<T> thenAnswer(Answer<?> answer) { argument
28 invocationContainerImpl.addAnswer(answer);
32 public OngoingStubbing<T> then(Answer<?> answer) { argument
33 return thenAnswer(answer);
36 public DeprecatedOngoingStubbing<T> toAnswer(Answer<?> answer) { argument
37 invocationContainerImpl.addAnswer(answer);
H A DStubbedInvocationMatcher.java23 public StubbedInvocationMatcher(InvocationMatcher invocation, Answer answer) { argument
25 this.answers.add(answer);
28 public Object answer(InvocationOnMock invocation) throws Throwable { method in class:StubbedInvocationMatcher
34 return a.answer(invocation);
37 public void addAnswer(Answer answer) { argument
38 answers.add(answer);
H A DVoidMethodStubbableImpl.java31 public VoidMethodStubbable<T> toAnswer(Answer<?> answer) { argument
32 invocationContainerImpl.addAnswerForVoidMethod(answer);

Completed in 150 milliseconds

12345