/external/mockito/src/main/java/org/mockito/internal/stubbing/ |
D | 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.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 …]
|
D | StubberImpl.java | 5 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;
|
D | ConsecutiveStubbing.java | 5 package org.mockito.internal.stubbing; 7 import org.mockito.stubbing.Answer; 8 import org.mockito.stubbing.OngoingStubbing;
|
D | OngoingStubbingImpl.java | 5 package org.mockito.internal.stubbing; 8 import org.mockito.stubbing.Answer; 9 import org.mockito.stubbing.OngoingStubbing;
|
D | StubbedInvocationMatcher.java | 5 package org.mockito.internal.stubbing; 8 import org.mockito.stubbing.Stubbing; 11 import org.mockito.stubbing.Answer;
|
D | StubbingComparator.java | 5 package org.mockito.internal.stubbing; 8 import org.mockito.stubbing.Stubbing;
|
/external/mockito/src/main/java/org/mockito/ |
D | AdditionalAnswers.java | 8 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 …]
|
D | Answers.java | 7 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/ |
D | AnswerFunctionalInterfaces.java | 5 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 …]
|
D | DoesNothing.java | 5 package org.mockito.internal.stubbing.answers; 10 import org.mockito.stubbing.Answer; 11 import org.mockito.stubbing.ValidableAnswer;
|
D | CallsRealMethods.java | 5 package org.mockito.internal.stubbing.answers; 10 import org.mockito.stubbing.Answer; 11 import org.mockito.stubbing.ValidableAnswer;
|
D | ClonesArguments.java | 5 package org.mockito.internal.stubbing.answers; 9 import org.mockito.internal.stubbing.defaultanswers.ReturnsEmptyValues; 12 import org.mockito.stubbing.Answer;
|
D | Returns.java | 5 package org.mockito.internal.stubbing.answers; 10 import org.mockito.stubbing.Answer; 11 import org.mockito.stubbing.ValidableAnswer;
|
D | ThrowsException.java | 5 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/ |
D | ArgMismatchFinder.java | 9 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()
|
D | StubbingArgMismatches.java | 22 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/ |
D | ReturnsDeepStubs.java | 5 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/ |
D | StubbingWithAdditionalAnswersTest.java | 5 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/ |
D | MockHandlerImpl.java | 13 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/ |
D | MockitoCore.java | 35 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()
|
D | InternalMockHandler.java | 9 import org.mockito.internal.stubbing.InvocationContainer; 12 import org.mockito.stubbing.Answer;
|
/external/mockito/src/test/java/org/mockito/internal/junit/ |
D | UnusedStubbingsTest.java | 5 import org.mockito.internal.stubbing.StubbedInvocationMatcher; 6 import org.mockito.internal.stubbing.answers.DoesNothing; 14 import static org.mockito.internal.stubbing.answers.DoesNothing.doesNothing;
|
D | StubbingArgMismatchesTest.java | 46 … 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/ |
D | ThreadsRunAllTestsHalfManualTest.java | 27 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/ |
D | DefaultMockitoConfiguration.java | 8 import org.mockito.internal.stubbing.defaultanswers.ReturnsEmptyValues; 9 import org.mockito.stubbing.Answer;
|