OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
full:stubbing
(Results
26 - 50
of
180
) sorted by null
1
2
3
4
5
6
7
8
/external/mockito/src/org/mockito/stubbing/
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
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:
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
...]
Answer.java
5
package org.mockito.
stubbing
;
13
* Example of
stubbing
a mock with custom answer:
/external/mockito/src/org/mockito/internal/handler/
MockHandlerImpl.java
13
import org.mockito.internal.
stubbing
.*;
18
import org.mockito.
stubbing
.Answer;
19
import org.mockito.
stubbing
.VoidMethodStubbable;
49
//
stubbing
voids with stubVoid() or doAnswer() style
81
// prepare invocation for
stubbing
95
// redo setting invocation for potential
stubbing
in case of partial
InvocationNotifierHandler.java
10
import org.mockito.internal.
stubbing
.InvocationContainer;
15
import org.mockito.
stubbing
.Answer;
16
import org.mockito.
stubbing
.VoidMethodStubbable;
NullResultGuardian.java
9
import org.mockito.internal.
stubbing
.InvocationContainer;
12
import org.mockito.
stubbing
.VoidMethodStubbable;
/external/mockito/src/org/mockito/
AdditionalAnswers.java
7
import org.mockito.internal.
stubbing
.answers.ReturnsArgumentAt;
8
import org.mockito.internal.
stubbing
.answers.ReturnsElementsOf;
9
import org.mockito.internal.
stubbing
.defaultanswers.ForwardsInvocations;
10
import org.mockito.
stubbing
.Answer;
35
* <code>then|do|will{@link org.mockito.
stubbing
.Answer}</code> methods. For example :
55
* <code>then|do|will{@link org.mockito.
stubbing
.Answer}</code> methods. For example :
75
* <code>then|do|will{@link org.mockito.
stubbing
.Answer}</code> methods. For example :
95
* <code>then|do|will{@link org.mockito.
stubbing
.Answer}</code> methods. For example :
135
* those calls are <strong>not</strong> remembered for verifications,
stubbing
does not have effect on them, too.
151
* The mock will call the delegate if you use regular when().then()
stubbing
style
[
all
...]
Mockito.java
10
import org.mockito.internal.
stubbing
.answers.*;
11
import org.mockito.internal.
stubbing
.defaultanswers.ReturnsEmptyValues;
12
import org.mockito.internal.
stubbing
.defaultanswers.ReturnsMoreEmptyValues;
15
import org.mockito.
stubbing
.*;
22
* Mockito library enables mocks creation, verification and
stubbing
.
32
* <a href="#2">2. How about some
stubbing
? </a><br/>
35
* <a href="#5">5.
Stubbing
void methods with exceptions </a><br/>
40
* <a href="#10">10.
Stubbing
consecutive calls (iterator-style
stubbing
) </a><br/>
41
* <a href="#11">11.
Stubbing
with callbacks </a><br/>
[
all
...]
/external/mockito/src/org/mockito/internal/stubbing/defaultanswers/
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)
ReturnsDeepStubs.java
5
package org.mockito.internal.
stubbing
.defaultanswers;
11
import org.mockito.internal.
stubbing
.InvocationContainerImpl;
12
import org.mockito.internal.
stubbing
.StubbedInvocationMatcher;
16
import org.mockito.
stubbing
.Answer;
/prebuilts/tools/common/m2/repository/org/mockito/mockito-all/1.9.5/
mockito-all-1.9.5-sources.jar
/prebuilts/tools/common/m2/repository/org/mockito/mockito-core/1.9.5/
mockito-core-1.9.5-sources.jar
/external/mockito/src/org/mockito/configuration/
DefaultMockitoConfiguration.java
9
import org.mockito.internal.
stubbing
.defaultanswers.ReturnsEmptyValues;
10
import org.mockito.
stubbing
.Answer;
/external/mockito/src/org/mockito/internal/debugging/
LoggingListener.java
24
" ***
Stubbing
warnings from Mockito: *** ",
32
logger.log("This
stubbing
was never used " + unused.getLocation() + "\n");
/external/mockito/src/org/mockito/internal/stubbing/
StubbedInvocationMatcher.java
5
package org.mockito.internal.
stubbing
;
14
import org.mockito.
stubbing
.Answer;
InvocationContainerImpl.java
5
package org.mockito.internal.
stubbing
;
10
import org.mockito.internal.
stubbing
.answers.AnswersValidator;
16
import org.mockito.
stubbing
.Answer;
/external/mockito/src/org/mockito/internal/stubbing/answers/
ReturnsElementsOf.java
5
package org.mockito.internal.
stubbing
.answers;
9
import org.mockito.
stubbing
.Answer;
AnswersValidator.java
5
package org.mockito.internal.
stubbing
.answers;
9
import org.mockito.
stubbing
.Answer;
CallsRealMethods.java
5
package org.mockito.internal.
stubbing
.answers;
10
import org.mockito.
stubbing
.Answer;
/external/mockito/src/org/mockito/mock/
MockCreationSettings.java
10
import org.mockito.
stubbing
.Answer;
52
* Whether the mock is only for
stubbing
, i.e. does not remember
/external/mockito/src/org/mockito/internal/
MockitoCore.java
17
import org.mockito.internal.
stubbing
.InvocationContainer;
18
import org.mockito.internal.
stubbing
.OngoingStubbingImpl;
19
import org.mockito.internal.
stubbing
.StubberImpl;
30
import org.mockito.
stubbing
.*;
61
IOngoingStubbing
stubbing
= mockingProgress.pullOngoingStubbing();
local
62
if (
stubbing
== null) {
66
return
stubbing
;
/external/mockito/src/org/mockito/internal/invocation/
UnusedStubsFinder.java
9
import org.mockito.internal.
stubbing
.StubbedInvocationMatcher;
/external/mockito/src/org/mockito/internal/progress/
MockingProgress.java
33
* Removes ongoing
stubbing
so that in case the framework is misused
/external/mockito/src/org/mockito/internal/verification/
VerificationDataImpl.java
11
import org.mockito.internal.
stubbing
.InvocationContainer;
Completed in 777 milliseconds
1
2
3
4
5
6
7
8