Searched defs:stubbing (Results 1 - 25 of 35) sorted by relevance

12

/external/mockito/src/org/mockito/internal/stubbing/
H A DInvocationContainer.java5 package org.mockito.internal.stubbing;
H A DBaseStubbing.java5 package org.mockito.internal.stubbing;
7 import org.mockito.internal.stubbing.answers.CallsRealMethods;
8 import org.mockito.internal.stubbing.answers.Returns;
9 import org.mockito.internal.stubbing.answers.ThrowsException;
10 import org.mockito.internal.stubbing.answers.ThrowsExceptionClass;
11 import org.mockito.stubbing.DeprecatedOngoingStubbing;
12 import org.mockito.stubbing.OngoingStubbing;
20 OngoingStubbing<T> stubbing = thenReturn(value);
22 return stubbing.thenReturn(null);
25 stubbing
[all...]
H A DConsecutiveStubbing.java5 package org.mockito.internal.stubbing;
7 import org.mockito.stubbing.Answer;
8 import org.mockito.stubbing.DeprecatedOngoingStubbing;
9 import org.mockito.stubbing.OngoingStubbing;
H A DOngoingStubbingImpl.java5 package org.mockito.internal.stubbing;
9 import org.mockito.stubbing.Answer;
10 import org.mockito.stubbing.DeprecatedOngoingStubbing;
11 import org.mockito.stubbing.OngoingStubbing;
H A DStubbedInvocationMatcher.java5 package org.mockito.internal.stubbing;
14 import org.mockito.stubbing.Answer;
H A DVoidMethodStubbableImpl.java5 package org.mockito.internal.stubbing;
7 import org.mockito.internal.stubbing.answers.DoesNothing;
8 import org.mockito.internal.stubbing.answers.ThrowsException;
9 import org.mockito.stubbing.Answer;
10 import org.mockito.stubbing.VoidMethodStubbable;
/external/mockito/src/org/mockito/stubbing/
H A DAnswer.java5 package org.mockito.stubbing;
13 * Example of stubbing a mock with custom answer:
H A DDeprecatedOngoingStubbing.java5 package org.mockito.stubbing;
23 * //Last stubbing (e.g: toReturn("foo")) determines the behavior for further consecutive calls.
44 * @return iOngoingStubbing object that allows stubbing consecutive calls
61 * @return iOngoingStubbing object that allows stubbing consecutive calls
77 * @return iOngoingStubbing object that allows stubbing consecutive calls
H A DVoidMethodStubbable.java5 package org.mockito.stubbing;
16 * //Last stubbing (e.g: toReturn()) determines the behavior for further consecutive calls.
41 * @return VoidMethodStubbable - typically to choose void method and finish stubbing
48 * <b>Only use this method if you're stubbing consecutive calls.</b>
65 * @return VoidMethodStubbable - typically to choose void method and finish stubbing
88 * @return VoidMethodStubbable - typically to choose void method and finish stubbing
93 * Choose void method for stubbing. E.g:
/external/mockito/src/org/mockito/stubbing/answers/
H A DReturnsElementsOf.java5 package org.mockito.stubbing.answers;
23 public class ReturnsElementsOf extends org.mockito.internal.stubbing.answers.ReturnsElementsOf {
/external/mockito/src/org/mockito/internal/stubbing/answers/
H A DAnswerReturnValuesAdapter.java5 package org.mockito.internal.stubbing.answers;
11 import org.mockito.stubbing.Answer;
H A DCallsRealMethods.java5 package org.mockito.internal.stubbing.answers;
10 import org.mockito.stubbing.Answer;
H A DClonesArguments.java5 package org.mockito.internal.stubbing.answers;
7 import org.mockito.internal.stubbing.defaultanswers.ReturnsEmptyValues;
10 import org.mockito.stubbing.Answer;
H A DDoesNothing.java5 package org.mockito.internal.stubbing.answers;
10 import org.mockito.stubbing.Answer;
H A DReturnsElementsOf.java5 package org.mockito.internal.stubbing.answers;
9 import org.mockito.stubbing.Answer;
H A DReturns.java5 package org.mockito.internal.stubbing.answers;
10 import org.mockito.stubbing.Answer;
H A DThrowsException.java5 package org.mockito.internal.stubbing.answers;
10 import org.mockito.stubbing.Answer;
H A DThrowsExceptionClass.java6 package org.mockito.internal.stubbing.answers;
10 import org.mockito.stubbing.Answer;
/external/mockito/src/org/mockito/internal/stubbing/defaultanswers/
H A DForwardsInvocations.java5 package org.mockito.internal.stubbing.defaultanswers;
8 import org.mockito.stubbing.Answer;
H A DGloballyConfiguredAnswer.java5 package org.mockito.internal.stubbing.defaultanswers;
12 import org.mockito.stubbing.Answer;
H A DAnswers.java5 package org.mockito.internal.stubbing.defaultanswers;
8 import org.mockito.internal.stubbing.answers.CallsRealMethods;
9 import org.mockito.stubbing.Answer;
H A DReturnsEmptyValues.java6 package org.mockito.internal.stubbing.defaultanswers;
13 import org.mockito.stubbing.Answer;
61 * @see org.mockito.stubbing.Answer#answer(org.mockito.invocation.InvocationOnMock)
H A DReturnsMocks.java5 package org.mockito.internal.stubbing.defaultanswers;
12 import org.mockito.stubbing.Answer;
H A DReturnsMoreEmptyValues.java6 package org.mockito.internal.stubbing.defaultanswers;
13 import org.mockito.stubbing.Answer;
54 * @see org.mockito.stubbing.Answer#answer(org.mockito.invocation.InvocationOnMock)
H A DReturnsSmartNulls.java5 package org.mockito.internal.stubbing.defaultanswers;
16 import org.mockito.stubbing.Answer;

Completed in 442 milliseconds

12