/external/mockito/src/org/mockito/internal/stubbing/answers/ |
H A D | 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 { argument 41 validateIndexWithinInvocationRange(invocation); 42 return invocation.getArguments()[actualArgumentPosition(invocation)]; 46 private int actualArgumentPosition(InvocationOnMock invocation) { argument 48 lastArgumentIndexOf(invocation) : 49 argumentIndexOf(invocation); 56 argumentIndexOf(InvocationOnMock invocation) argument 60 lastArgumentIndexOf(InvocationOnMock invocation) argument 75 validateIndexWithinInvocationRange(InvocationOnMock invocation) argument 83 argumentPositionInRange(InvocationOnMock invocation) argument 95 returnedTypeOnSignature(InvocationOnMock invocation) argument [all...] |
H A D | CallsRealMethods.java | 9 import org.mockito.invocation.InvocationOnMock;
35 public Object answer(InvocationOnMock invocation) throws Throwable {
argument 36 return invocation.callRealMethod();
|
H A D | AnswerReturnValuesAdapter.java | 10 import org.mockito.invocation.InvocationOnMock;
24 public Object answer(InvocationOnMock invocation) throws Throwable {
argument 25 return returnValues.valueFor(invocation);
|
H A D | DoesNothing.java | 9 import org.mockito.invocation.InvocationOnMock;
16 public Object answer(InvocationOnMock invocation) throws Throwable {
argument
|
/external/mockito/src/org/mockito/internal/verification/ |
H A D | SingleRegisteredInvocation.java | 8 import org.mockito.invocation.Invocation; 16 private Invocation invocation; field in class:SingleRegisteredInvocation 18 public void add(Invocation invocation) { argument 19 this.invocation = invocation; 23 invocation = null; 31 return invocation == null;
|
H A D | InOrderContextImpl.java | 9 import org.mockito.invocation.Invocation;
15 public boolean isVerified(Invocation invocation) {
argument 16 return verified.contains(invocation);
|
/external/mockito/src/org/mockito/internal/invocation/ |
H A D | CapturesArgumensFromInvocation.java | 5 package org.mockito.internal.invocation;
8 import org.mockito.invocation.Invocation;
|
H A D | 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;
|
H A D | InvocationMarker.java | 5 package org.mockito.internal.invocation;
10 import org.mockito.invocation.Invocation;
15 for (Invocation invocation : invocations) {
16 markVerified(invocation, wanted);
20 public void markVerified(Invocation invocation, CapturesArgumensFromInvocation wanted) {
argument 21 invocation.markVerified();
22 wanted.captureArgumentsFrom(invocation);
|
H A D | MatchersBinder.java | 6 package org.mockito.internal.invocation; 12 import org.mockito.invocation.Invocation; 22 public InvocationMatcher bindMatchers(ArgumentMatcherStorage argumentMatcherStorage, Invocation invocation) { argument 24 validateMatchers(invocation, lastMatchers); 26 InvocationMatcher invocationWithMatchers = new InvocationMatcher(invocation, (List<Matcher>)(List) lastMatchers); 30 private void validateMatchers(Invocation invocation, List<LocalizedMatcher> lastMatchers) { argument 33 int expectedMatchersSize = invocation.getArguments().length;
|
H A D | 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) { argument 31 this.invocation = invocation; 33 this.matchers = ArgumentsProcessor.argumentsToMatchers(invocation.getArguments()); 39 public InvocationMatcher(Invocation invocation) { argument 120 captureArgumentsFrom(Invocation invocation) argument 141 isVariableArgument(Invocation invocation, int position) argument [all...] |
/external/mockito/src/org/mockito/internal/listeners/ |
H A D | 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) {
argument 28 this.invocation = invocation;
36 * @param invocation Information on the method call
37 * @param throwable Tha throwable raised by the method invocation
39 NotifiedMethodInvocationReport(Invocation invocation, Throwable throwable) argument [all...] |
/external/mockito/src/org/mockito/stubbing/ |
H A D | 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;
argument
|
/external/mockito/src/org/mockito/ |
H A D | 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; argument
|
/external/mockito/src/org/mockito/exceptions/ |
H A D | PrintableInvocation.java | 8 import org.mockito.invocation.DescribedInvocation; 9 import org.mockito.invocation.Location;
|
/external/mockito/src/org/mockito/internal/verification/api/ |
H A D | InOrderContext.java | 7 import org.mockito.invocation.Invocation;
11 boolean isVerified(Invocation invocation);
argument
|
/external/mockito/src/org/mockito/invocation/ |
H A D | 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;
argument
|
H A D | Location.java | 5 package org.mockito.invocation;
|
H A D | StubInfo.java | 5 package org.mockito.invocation; 16 * @return the location where the invocation was stubbed.
|
/external/mockito/src/org/mockito/internal/stubbing/defaultanswers/ |
H A D | GloballyConfiguredAnswer.java | 11 import org.mockito.invocation.InvocationOnMock;
23 public Object answer(InvocationOnMock invocation) throws Throwable {
argument 24 return new GlobalConfiguration().getDefaultAnswer().answer(invocation);
|
H A D | ForwardsInvocations.java | 7 import org.mockito.invocation.InvocationOnMock; 28 public Object answer(InvocationOnMock invocation) throws Throwable { argument 29 Method method = invocation.getMethod() ; 31 return method.invoke(delegatedObject, invocation.getArguments());
|
/external/mockito/src/org/mockito/internal/exceptions/ |
H A D | VerificationAwareInvocation.java | 8 import org.mockito.invocation.DescribedInvocation;
|
/external/mockito/src/org/mockito/internal/invocation/realmethod/ |
H A D | RealMethod.java | 5 package org.mockito.internal.invocation.realmethod;
|
/external/mockito/src/org/mockito/internal/debugging/ |
H A D | FindingsListener.java | 7 import org.mockito.internal.invocation.InvocationMatcher;
8 import org.mockito.invocation.Invocation;
|
/external/mockito/src/org/mockito/internal/stubbing/ |
H A D | 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) {
argument 24 super(invocation.getInvocation(), invocation.getMatchers());
28 public Object answer(InvocationOnMock invocation) throws Throwable {
argument 34 return a.answer(invocation);
|