Home
last modified time | relevance | path

Searched refs:stubbing (Results 1 – 25 of 133) sorted by relevance

123456

/external/mockito/src/main/java/org/mockito/internal/stubbing/
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.OngoingStubbing;
21 OngoingStubbing<T> stubbing = thenReturn(value); in thenReturn() local
24 return stubbing.thenReturn(null); in thenReturn()
27 stubbing = stubbing.thenReturn(v); in thenReturn()
29 return stubbing; in thenReturn()
[all …]
DStubberImpl.java5 package org.mockito.internal.stubbing;
9 import static org.mockito.internal.stubbing.answers.DoesNothing.doesNothing;
14 import org.mockito.internal.stubbing.answers.CallsRealMethods;
15 import org.mockito.internal.stubbing.answers.Returns;
16 import org.mockito.internal.stubbing.answers.ThrowsException;
17 import org.mockito.internal.stubbing.answers.ThrowsExceptionClass;
19 import org.mockito.stubbing.Answer;
20 import org.mockito.stubbing.Stubber;
DConsecutiveStubbing.java5 package org.mockito.internal.stubbing;
7 import org.mockito.stubbing.Answer;
8 import org.mockito.stubbing.OngoingStubbing;
DOngoingStubbingImpl.java5 package org.mockito.internal.stubbing;
8 import org.mockito.stubbing.Answer;
9 import org.mockito.stubbing.OngoingStubbing;
DStubbedInvocationMatcher.java5 package org.mockito.internal.stubbing;
8 import org.mockito.stubbing.Stubbing;
11 import org.mockito.stubbing.Answer;
DStubbingComparator.java5 package org.mockito.internal.stubbing;
8 import org.mockito.stubbing.Stubbing;
/external/mockito/src/main/java/org/mockito/
DAdditionalAnswers.java8 import org.mockito.internal.stubbing.answers.ReturnsArgumentAt;
9 import org.mockito.internal.stubbing.answers.ReturnsElementsOf;
10 import org.mockito.internal.stubbing.defaultanswers.ForwardsInvocations;
11 import org.mockito.stubbing.Answer;
12 import org.mockito.stubbing.Answer1;
13 import org.mockito.stubbing.Answer2;
14 import org.mockito.stubbing.Answer3;
15 import org.mockito.stubbing.Answer4;
16 import org.mockito.stubbing.Answer5;
17 import org.mockito.stubbing.VoidAnswer1;
[all …]
DAnswers.java7 import org.mockito.internal.stubbing.answers.CallsRealMethods;
8 import org.mockito.internal.stubbing.defaultanswers.TriesToReturnSelf;
9 import org.mockito.internal.stubbing.defaultanswers.GloballyConfiguredAnswer;
10 import org.mockito.internal.stubbing.defaultanswers.ReturnsDeepStubs;
11 import org.mockito.internal.stubbing.defaultanswers.ReturnsMocks;
12 import org.mockito.internal.stubbing.defaultanswers.ReturnsSmartNulls;
14 import org.mockito.stubbing.Answer;
/external/mockito/src/main/java/org/mockito/internal/stubbing/answers/
DAnswerFunctionalInterfaces.java5 package org.mockito.internal.stubbing.answers;
8 import org.mockito.stubbing.Answer;
9 import org.mockito.stubbing.Answer1;
10 import org.mockito.stubbing.Answer2;
11 import org.mockito.stubbing.Answer3;
12 import org.mockito.stubbing.Answer4;
13 import org.mockito.stubbing.Answer5;
14 import org.mockito.stubbing.VoidAnswer1;
15 import org.mockito.stubbing.VoidAnswer2;
16 import org.mockito.stubbing.VoidAnswer3;
[all …]
DDoesNothing.java5 package org.mockito.internal.stubbing.answers;
10 import org.mockito.stubbing.Answer;
11 import org.mockito.stubbing.ValidableAnswer;
DCallsRealMethods.java5 package org.mockito.internal.stubbing.answers;
10 import org.mockito.stubbing.Answer;
11 import org.mockito.stubbing.ValidableAnswer;
DClonesArguments.java5 package org.mockito.internal.stubbing.answers;
9 import org.mockito.internal.stubbing.defaultanswers.ReturnsEmptyValues;
12 import org.mockito.stubbing.Answer;
DReturns.java5 package org.mockito.internal.stubbing.answers;
10 import org.mockito.stubbing.Answer;
11 import org.mockito.stubbing.ValidableAnswer;
DThrowsException.java5 package org.mockito.internal.stubbing.answers;
11 import org.mockito.stubbing.Answer;
12 import org.mockito.stubbing.ValidableAnswer;
/external/mockito/src/main/java/org/mockito/internal/junit/
DArgMismatchFinder.java9 import org.mockito.stubbing.Stubbing;
22 for (Stubbing stubbing : AllInvocationsFinder.findStubbings(mocks)) { in getStubbingArgMismatches()
24 if (!stubbing.wasUsed() && stubbing.getInvocation().getMock() == i.getMock() in getStubbingArgMismatches()
25 … && stubbing.getInvocation().getMethod().getName().equals(i.getMethod().getName())) { in getStubbingArgMismatches()
26 mismatches.add(i, stubbing.getInvocation()); in getStubbingArgMismatches()
DStubbingArgMismatches.java22 public void add(Invocation invocation, Invocation stubbing) { in add() argument
23 Set<Invocation> matchingInvocations = mismatches.get(stubbing); in add()
26 mismatches.put(stubbing, matchingInvocations); in add()
/external/mockito/src/main/java/org/mockito/internal/stubbing/defaultanswers/
DReturnsDeepStubs.java5 package org.mockito.internal.stubbing.defaultanswers;
12 import org.mockito.internal.stubbing.InvocationContainerImpl;
13 import org.mockito.internal.stubbing.StubbedInvocationMatcher;
18 import org.mockito.stubbing.Answer;
71 StubbedInvocationMatcher stubbing = recordDeepStubAnswer( in deepStub() local
78 stubbing.markStubUsed(stubbing.getInvocation()); in deepStub()
80 return stubbing.answer(invocation); in deepStub()
/external/mockito/src/test/java/org/mockitousage/stubbing/
DStubbingWithAdditionalAnswersTest.java5 package org.mockitousage.stubbing;
28 import org.mockito.stubbing.Answer1;
29 import org.mockito.stubbing.Answer2;
30 import org.mockito.stubbing.Answer3;
31 import org.mockito.stubbing.Answer4;
32 import org.mockito.stubbing.Answer5;
33 import org.mockito.stubbing.VoidAnswer1;
34 import org.mockito.stubbing.VoidAnswer2;
35 import org.mockito.stubbing.VoidAnswer3;
36 import org.mockito.stubbing.VoidAnswer4;
[all …]
/external/mockito/src/main/java/org/mockito/internal/handler/
DMockHandlerImpl.java13 import org.mockito.internal.stubbing.InvocationContainer;
14 import org.mockito.internal.stubbing.InvocationContainerImpl;
15 import org.mockito.internal.stubbing.OngoingStubbingImpl;
16 import org.mockito.internal.stubbing.StubbedInvocationMatcher;
17 import org.mockito.internal.stubbing.answers.DefaultAnswerValidator;
22 import org.mockito.stubbing.Answer;
/external/mockito/src/main/java/org/mockito/internal/
DMockitoCore.java35 import org.mockito.internal.stubbing.InvocationContainer;
36 import org.mockito.internal.stubbing.OngoingStubbingImpl;
37 import org.mockito.internal.stubbing.StubberImpl;
48 import org.mockito.stubbing.OngoingStubbing;
49 import org.mockito.stubbing.Stubber;
74 OngoingStubbing<T> stubbing = (OngoingStubbing<T>) mockingProgress.pullOngoingStubbing(); in when() local
75 if (stubbing == null) { in when()
79 return stubbing; in when()
DInternalMockHandler.java9 import org.mockito.internal.stubbing.InvocationContainer;
12 import org.mockito.stubbing.Answer;
/external/mockito/src/test/java/org/mockito/internal/junit/
DUnusedStubbingsTest.java5 import org.mockito.internal.stubbing.StubbedInvocationMatcher;
6 import org.mockito.internal.stubbing.answers.DoesNothing;
14 import static org.mockito.internal.stubbing.answers.DoesNothing.doesNothing;
DStubbingArgMismatchesTest.java46 … Invocation stubbing = new InvocationBuilder().args("a").location("-> at A.java").toInvocation(); in multiple_matching_invocations_per_stub_plus_some_other_invocation() local
47 …ismatches.add(new InvocationBuilder().args("x").location("-> at X.java").toInvocation(), stubbing); in multiple_matching_invocations_per_stub_plus_some_other_invocation()
48 …ismatches.add(new InvocationBuilder().args("y").location("-> at Y.java").toInvocation(), stubbing); in multiple_matching_invocations_per_stub_plus_some_other_invocation()
/external/mockito/src/test/java/org/concurrentmockito/
DThreadsRunAllTestsHalfManualTest.java27 import org.mockito.internal.stubbing.defaultanswers.ReturnsEmptyValuesTest;
28 import org.mockito.internal.stubbing.defaultanswers.ReturnsGenericDeepStubsTest;
50 import org.mockitousage.stubbing.BasicStubbingTest;
51 import org.mockitousage.stubbing.ReturningDefaultValuesTest;
52 import org.mockitousage.stubbing.StubbingWithThrowablesTest;
/external/mockito/src/main/java/org/mockito/configuration/
DDefaultMockitoConfiguration.java8 import org.mockito.internal.stubbing.defaultanswers.ReturnsEmptyValues;
9 import org.mockito.stubbing.Answer;

123456