/external/mockito/src/org/mockito/internal/stubbing/answers/ |
ReturnsArgumentAt.java | 8 import org.mockito.invocation.InvocationOnMock; 16 * <p>The <code>argumentIndex</code> represents the index in the argument array of the invocation.</p> 33 * @param wantedArgumentPosition The position of the argument identity to return in the invocation. 40 public Object answer(InvocationOnMock invocation) throws Throwable { 41 validateIndexWithinInvocationRange(invocation); 42 return invocation.getArguments()[actualArgumentPosition(invocation)]; 46 private int actualArgumentPosition(InvocationOnMock invocation) { 48 lastArgumentIndexOf(invocation) : 49 argumentIndexOf(invocation); [all...] |
CallsRealMethods.java | 9 import org.mockito.invocation.InvocationOnMock;
35 public Object answer(InvocationOnMock invocation) throws Throwable {
36 return invocation.callRealMethod();
|
AnswerReturnValuesAdapter.java | 10 import org.mockito.invocation.InvocationOnMock;
24 public Object answer(InvocationOnMock invocation) throws Throwable {
25 return returnValues.valueFor(invocation);
|
/external/mockito/src/org/mockito/internal/verification/ |
SingleRegisteredInvocation.java | 8 import org.mockito.invocation.Invocation; 16 private Invocation invocation; field in class:SingleRegisteredInvocation 18 public void add(Invocation invocation) { 19 this.invocation = invocation; 23 invocation = null; 26 public List<Invocation> getAll() [all...] |
InOrderContextImpl.java | 9 import org.mockito.invocation.Invocation;
15 public boolean isVerified(Invocation invocation) {
16 return verified.contains(invocation);
19 public void markVerified(Invocation i) {
|
/external/mockito/src/org/mockito/internal/invocation/ |
CapturesArgumensFromInvocation.java | 5 package org.mockito.internal.invocation;
8 import org.mockito.invocation.Invocation;
12 void captureArgumentsFrom(Invocation i);
|
StubInfoImpl.java | 5 package org.mockito.internal.invocation;
7 import org.mockito.invocation.DescribedInvocation;
8 import org.mockito.invocation.Location;
9 import org.mockito.invocation.StubInfo;
|
InvocationMarker.java | 5 package org.mockito.internal.invocation;
10 import org.mockito.invocation.Invocation;
14 public void markVerified(List<Invocation> invocations, CapturesArgumensFromInvocation wanted) {
15 for (Invocation invocation : invocations) {
16 markVerified(invocation, wanted);
20 public void markVerified(Invocation invocation, CapturesArgumensFromInvocation wanted) {
21 invocation.markVerified(); [all...] |
MatchersBinder.java | 6 package org.mockito.internal.invocation; 12 import org.mockito.invocation.Invocation; 22 public InvocationMatcher bindMatchers(ArgumentMatcherStorage argumentMatcherStorage, Invocation invocation) { 24 validateMatchers(invocation, lastMatchers); 26 InvocationMatcher invocationWithMatchers = new InvocationMatcher(invocation, (List<Matcher>)(List) lastMatchers); 30 private void validateMatchers(Invocation invocation, List<LocalizedMatcher> lastMatchers) { 33 int expectedMatchersSize = invocation.getArguments().length [all...] |
InvocationMatcher.java | 6 package org.mockito.internal.invocation; 19 import org.mockito.invocation.DescribedInvocation; 20 import org.mockito.invocation.Invocation; 21 import org.mockito.invocation.Location; 27 private final Invocation invocation; field in class:InvocationMatcher 30 public InvocationMatcher(Invocation invocation, List<Matcher> matchers) { 31 this.invocation = invocation [all...] |
/external/mockito/src/org/mockito/internal/listeners/ |
NotifiedMethodInvocationReport.java | 7 import org.mockito.invocation.DescribedInvocation;
8 import org.mockito.invocation.Invocation;
15 private final Invocation invocation;
field in class:NotifiedMethodInvocationReport 24 * @param invocation Information on the method call
25 * @param returnedValue The value returned by the method invocation
27 public NotifiedMethodInvocationReport(Invocation invocation, Object returnedValue) {
28 this.invocation = invocation; [all...] |
/external/mockito/src/org/mockito/stubbing/ |
Answer.java | 7 import org.mockito.invocation.InvocationOnMock;
17 * Object answer(InvocationOnMock invocation) {
18 * Object[] args = invocation.getArguments();
19 * Object mock = invocation.getMock();
32 * @param invocation the invocation on the mock.
38 T answer(InvocationOnMock invocation) throws Throwable;
|
/external/mockito/src/org/mockito/ |
ReturnValues.java | 8 import org.mockito.invocation.InvocationOnMock; 23 * Configures return values for an unstubbed invocation 31 * return value for an unstubbed invocation 33 * @param invocation placeholder for mock and a method 36 Object valueFor(InvocationOnMock invocation) throws Throwable;
|
/external/mockito/src/org/mockito/exceptions/ |
PrintableInvocation.java | 8 import org.mockito.invocation.DescribedInvocation; 9 import org.mockito.invocation.Location;
|
/external/mockito/src/org/mockito/internal/verification/api/ |
InOrderContext.java | 7 import org.mockito.invocation.Invocation;
11 boolean isVerified(Invocation invocation);
13 void markVerified(Invocation i);
|
/external/mockito/src/org/mockito/invocation/ |
MockHandler.java | 5 package org.mockito.invocation;
12 * Mockito handler of an invocation on a mock. This is a core part of the API, the heart of Mockito.
21 * Takes an invocation object and handles it.
27 * @param invocation The invocation to handle
32 Object handle(Invocation invocation) throws Throwable;
|
Location.java | 5 package org.mockito.invocation;
|
StubInfo.java | 5 package org.mockito.invocation; 16 * @return the location where the invocation was stubbed.
|
/external/mockito/src/org/mockito/internal/stubbing/defaultanswers/ |
GloballyConfiguredAnswer.java | 11 import org.mockito.invocation.InvocationOnMock;
23 public Object answer(InvocationOnMock invocation) throws Throwable {
24 return new GlobalConfiguration().getDefaultAnswer().answer(invocation);
|
ForwardsInvocations.java | 7 import org.mockito.invocation.InvocationOnMock; 28 public Object answer(InvocationOnMock invocation) throws Throwable { 29 Method method = invocation.getMethod() ; 31 return method.invoke(delegatedObject, invocation.getArguments());
|
/external/google-breakpad/src/client/mac/handler/testcases/ |
DynamicImagesTests.h | 45 explicit DynamicImagesTests(TestInvocation* invocation);
|
/external/mockito/src/org/mockito/internal/exceptions/ |
VerificationAwareInvocation.java | 8 import org.mockito.invocation.DescribedInvocation;
|
/external/mockito/src/org/mockito/internal/invocation/realmethod/ |
RealMethod.java | 5 package org.mockito.internal.invocation.realmethod;
|
/external/mockito/src/org/mockito/internal/debugging/ |
FindingsListener.java | 7 import org.mockito.internal.invocation.InvocationMatcher;
8 import org.mockito.invocation.Invocation;
11 void foundStubCalledWithDifferentArgs(Invocation unused, InvocationMatcher unstubbed);
13 void foundUnusedStub(Invocation unused);
|
/external/mockito/src/org/mockito/internal/stubbing/ |
StubbedInvocationMatcher.java | 11 import org.mockito.internal.invocation.InvocationMatcher;
12 import org.mockito.invocation.DescribedInvocation;
13 import org.mockito.invocation.InvocationOnMock;
23 public StubbedInvocationMatcher(InvocationMatcher invocation, Answer answer) {
24 super(invocation.getInvocation(), invocation.getMatchers());
28 public Object answer(InvocationOnMock invocation) throws Throwable {
34 return a.answer(invocation);
|