HomeSort by relevance Sort by last modified time
    Searched defs:stubbing (Results 1 - 25 of 38) sorted by null

1 2

  /external/mockito/src/org/mockito/stubbing/
Answer.java 5 package org.mockito.stubbing;
13 * Example of stubbing a mock with custom answer:
DeprecatedOngoingStubbing.java 5 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
OngoingStubbing.java 5 package org.mockito.stubbing;
23 * //Last stubbing (e.g: thenReturn("foo")) determines the behavior of further consecutive calls.
28 * //There is a shorter way of consecutive stubbing:
47 * @return iOngoingStubbing object that allows stubbing consecutive calls
64 * @return iOngoingStubbing object that allows stubbing consecutive calls
86 * @return iOngoingStubbing object that allows stubbing consecutive calls
111 * @return iOngoingStubbing object that allows stubbing consecutive calls
130 * // if it isn't safe then you will have trouble stubbing it using this api. Use Mockito.doCallRealMethod() instead.
143 * @return iOngoingStubbing object that allows stubbing consecutive calls
159 * @return iOngoingStubbing object that allows stubbing consecutive calls
    [all...]
Stubber.java 5 package org.mockito.stubbing;
10 * Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style
20 * Also useful when stubbing consecutive calls:
45 * Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style
70 * @return select method for stubbing
75 * Use it for stubbing consecutive calls in {@link Mockito#doThrow(Throwable)} style:
84 * @return stubber - to select a method for stubbing
89 * Use it for stubbing consecutive calls in {@link Mockito#doThrow(Class)} style:
98 * @return stubber - to select a method for stubbing
103 * Use it for stubbing consecutive calls in {@link Mockito#doAnswer(Answer)} style:
    [all...]
VoidMethodStubbable.java 5 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/
ReturnsElementsOf.java 5 package org.mockito.stubbing.answers;
23 public class ReturnsElementsOf extends org.mockito.internal.stubbing.answers.ReturnsElementsOf {
  /external/mockito/src/org/mockito/internal/stubbing/
InvocationContainer.java 5 package org.mockito.internal.stubbing;
BaseStubbing.java 5 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); local
22 return stubbing.thenReturn(null);
25 stubbing = stubbing.thenReturn(v);
38 OngoingStubbing<T> stubbing = null; local
57 OngoingStubbing<T> stubbing = null; local
    [all...]
ConsecutiveStubbing.java 5 package org.mockito.internal.stubbing;
7 import org.mockito.stubbing.Answer;
8 import org.mockito.stubbing.DeprecatedOngoingStubbing;
9 import org.mockito.stubbing.OngoingStubbing;
OngoingStubbingImpl.java 5 package org.mockito.internal.stubbing;
9 import org.mockito.stubbing.Answer;
10 import org.mockito.stubbing.DeprecatedOngoingStubbing;
11 import org.mockito.stubbing.OngoingStubbing;
VoidMethodStubbableImpl.java 5 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/internal/stubbing/answers/
AnswerReturnValuesAdapter.java 5 package org.mockito.internal.stubbing.answers;
11 import org.mockito.stubbing.Answer;
CallsRealMethods.java 5 package org.mockito.internal.stubbing.answers;
10 import org.mockito.stubbing.Answer;
ClonesArguments.java 5 package org.mockito.internal.stubbing.answers;
7 import org.mockito.internal.stubbing.defaultanswers.ReturnsEmptyValues;
10 import org.mockito.stubbing.Answer;
DoesNothing.java 5 package org.mockito.internal.stubbing.answers;
10 import org.mockito.stubbing.Answer;
ReturnsElementsOf.java 5 package org.mockito.internal.stubbing.answers;
9 import org.mockito.stubbing.Answer;
Returns.java 5 package org.mockito.internal.stubbing.answers;
10 import org.mockito.stubbing.Answer;
ThrowsException.java 5 package org.mockito.internal.stubbing.answers;
10 import org.mockito.stubbing.Answer;
ThrowsExceptionClass.java 6 package org.mockito.internal.stubbing.answers;
10 import org.mockito.stubbing.Answer;
  /external/mockito/src/org/mockito/internal/stubbing/defaultanswers/
ForwardsInvocations.java 5 package org.mockito.internal.stubbing.defaultanswers;
8 import org.mockito.stubbing.Answer;
GloballyConfiguredAnswer.java 5 package org.mockito.internal.stubbing.defaultanswers;
12 import org.mockito.stubbing.Answer;
Answers.java 5 package org.mockito.internal.stubbing.defaultanswers;
8 import org.mockito.internal.stubbing.answers.CallsRealMethods;
9 import org.mockito.stubbing.Answer;
ReturnsEmptyValues.java 6 package org.mockito.internal.stubbing.defaultanswers;
13 import org.mockito.stubbing.Answer;
61 * @see org.mockito.stubbing.Answer#answer(org.mockito.invocation.InvocationOnMock)
ReturnsMocks.java 5 package org.mockito.internal.stubbing.defaultanswers;
12 import org.mockito.stubbing.Answer;
ReturnsMoreEmptyValues.java 6 package org.mockito.internal.stubbing.defaultanswers;
13 import org.mockito.stubbing.Answer;
54 * @see org.mockito.stubbing.Answer#answer(org.mockito.invocation.InvocationOnMock)

Completed in 7927 milliseconds

1 2