/external/mockito/src/main/java/org/mockito/invocation/ |
MatchableInvocation.java | 5 package org.mockito.invocation; 12 * <code>MatchableInvocation</code> wraps {@link Invocation} instance 13 * and holds argument matchers associated with that invocation. 17 * mock.foo(); // <- invocation 18 * verify(mock).bar(); // <- matchable invocation 26 * The actual invocation Mockito will match against. 30 Invocation getInvocation(); 33 * The argument matchers of this invocation. 34 * When the invocation is declared without argument matchers (e.g. using plain arguments) 47 boolean matches(Invocation candidate) [all...] |
MockHandler.java | 5 package org.mockito.invocation; 10 * Mockito handler of an invocation on a mock. This is a core part of the API, the heart of Mockito. 18 * Takes an invocation object and handles it. 24 * @param invocation The invocation to handle 28 Object handle(Invocation invocation) throws Throwable;
|
/external/mockito/src/main/java/org/mockito/internal/verification/api/ |
InOrderContext.java | 7 import org.mockito.invocation.Invocation; 11 boolean isVerified(Invocation invocation); 13 void markVerified(Invocation i);
|
VerificationDataInOrderImpl.java | 9 import org.mockito.internal.invocation.InvocationMatcher; 10 import org.mockito.invocation.Invocation; 11 import org.mockito.invocation.MatchableInvocation; 16 private final List<Invocation> allInvocations; 19 public VerificationDataInOrderImpl(InOrderContext inOrder, List<Invocation> allInvocations, MatchableInvocation wanted) { 25 public List<Invocation> getAllInvocations() {
|
VerificationData.java | 7 import org.mockito.internal.invocation.InvocationMatcher; 8 import org.mockito.invocation.Invocation; 9 import org.mockito.invocation.MatchableInvocation; 24 List<Invocation> getAllInvocations(); 27 * The target or wanted invocation. 28 * Below example illustrates what is the 'target' invocation: 30 * mock.foo(); // <- invocation 1 31 * mock.bar(); // <- invocation 2 33 * verify(mock).bar(); // <- target invocation [all...] |
VerificationDataInOrder.java | 9 import org.mockito.internal.invocation.InvocationMatcher; 10 import org.mockito.invocation.Invocation; 11 import org.mockito.invocation.MatchableInvocation; 15 List<Invocation> getAllInvocations();
|
/external/mockito/src/main/java/org/mockito/stubbing/ |
Stubbing.java | 8 import org.mockito.invocation.Invocation; 19 * Returns the method invocation that is stubbed. 21 * the invocation is <code>mock.foo()</code>. 23 * The invocation instance is mutable. 24 * It is not recommended to modify the state of invocation because it will influence mock behavior. 30 Invocation getInvocation();
|
/external/mockito/src/main/java/org/mockito/internal/invocation/ |
InvocationsFinder.java | 6 package org.mockito.internal.invocation; 14 import org.mockito.invocation.Invocation; 15 import org.mockito.invocation.Location; 16 import org.mockito.invocation.MatchableInvocation; 23 public static List<Invocation> findInvocations(List<Invocation> invocations, MatchableInvocation wanted) { 27 public static List<Invocation> findAllMatchingUnverifiedChunks(List<Invocation> invocations, MatchableInvocation wanted, InOrderContext orderingContext) { 28 List<Invocation> unverified = removeVerifiedInOrder(invocations, orderingContext) [all...] |
InvocationComparator.java | 5 package org.mockito.internal.invocation; 7 import org.mockito.invocation.Invocation; 14 public class InvocationComparator implements Comparator<Invocation> { 15 public int compare(Invocation o1, Invocation o2) {
|
InvocationMarker.java | 5 package org.mockito.internal.invocation; 8 import org.mockito.invocation.Invocation; 9 import org.mockito.invocation.MatchableInvocation; 17 public static void markVerified(List<Invocation> invocations, MatchableInvocation wanted) { 18 for (Invocation invocation : invocations) { 19 markVerified(invocation, wanted); 23 public static void markVerified(Invocation invocation, MatchableInvocation wanted) [all...] |
UnusedStubsFinder.java | 6 package org.mockito.internal.invocation; 11 import org.mockito.invocation.Invocation; 23 public List<Invocation> find(List<?> mocks) { 24 List<Invocation> unused = new LinkedList<Invocation>();
|
/external/mockito/src/main/java/org/mockito/internal/listeners/ |
StubbingLookupListener.java | 3 import org.mockito.invocation.Invocation; 4 import org.mockito.invocation.MatchableInvocation; 12 * If the answer is not found (e.g. that invocation was not stubbed on the mock), mock's default answer is used. 13 * This listener implementation is notified when Mockito looked up an answer for invocation on a mock. 24 * Called by the framework when Mockito looked up an answer for invocation on a mock. 28 * @param invocation the invocation on the mock 29 * @param stubbingFound - can be null - it indicates that the invocation was not stubbed. 31 void onStubbingLookup(Invocation invocation, MatchableInvocation stubbingFound) [all...] |
/external/mockito/src/main/java/org/mockito/internal/stubbing/ |
InvocationContainer.java | 7 import org.mockito.invocation.Invocation; 13 List<Invocation> getInvocations();
|
/external/mockito/src/main/java/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...] |
RegisteredInvocations.java | 8 import org.mockito.invocation.Invocation; 15 void add(Invocation invocation); 19 List<Invocation> getAll();
|
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) {
|
DefaultRegisteredInvocations.java | 11 import org.mockito.invocation.Invocation; 23 private final LinkedList<Invocation> invocations = new LinkedList<Invocation>(); 25 public void add(Invocation invocation) { 27 invocations.add(invocation); 40 public List<Invocation> getAll() { 41 List<Invocation> copiedList; 43 copiedList = new LinkedList<Invocation>(invocations) [all...] |
/external/mockito/src/main/java/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);
|
WarningsFinder.java | 7 import org.mockito.internal.invocation.InvocationMatcher; 8 import org.mockito.invocation.Invocation; 15 private final List<Invocation> baseUnusedStubs; 18 public WarningsFinder(List<Invocation> unusedStubs, List<InvocationMatcher> allInvocations) { 24 List<Invocation> unusedStubs = new LinkedList<Invocation>(this.baseUnusedStubs); 27 Iterator<Invocation> unusedIterator = unusedStubs.iterator(); 29 Invocation unused = unusedIterator.next(); 41 for (Invocation i : unusedStubs) [all...] |
/external/mockito/src/main/java/org/mockito/internal/junit/ |
StubbingArgMismatches.java | 8 import org.mockito.invocation.Invocation; 20 final Map<Invocation, Set<Invocation>> mismatches = new LinkedHashMap<Invocation, Set<Invocation>>(); 22 public void add(Invocation invocation, Invocation stubbing) { 23 Set<Invocation> matchingInvocations = mismatches.get(stubbing) [all...] |
DefaultStubbingLookupListener.java | 5 import org.mockito.invocation.Invocation; 6 import org.mockito.invocation.MatchableInvocation; 29 public void onStubbingLookup(Invocation invocation, MatchableInvocation stubbingFound) { 35 //If stubbing was not found for invocation it means that either the mock invocation was not stubbed or 37 List<Invocation> argMismatchStubbings = potentialArgMismatches(invocation); 40 Reporter.potentialStubbingProblem(invocation, argMismatchStubbings) [all...] |
/external/mockito/src/main/java/org/mockito/internal/invocation/finder/ |
VerifiableInvocationsFinder.java | 6 package org.mockito.internal.invocation.finder; 10 import org.mockito.invocation.Invocation; 21 public static List<Invocation> find(List<?> mocks) { 22 List<Invocation> invocations = AllInvocationsFinder.find(mocks); 26 private static class RemoveIgnoredForVerification implements Filter<Invocation>{ 27 public boolean isOut(Invocation invocation) { 28 return invocation.isIgnoredForVerification();
|
/external/clang/unittests/Frontend/ |
CodeGenActionTest.cpp | 43 CompilerInvocation *Invocation = new CompilerInvocation; 44 Invocation->getPreprocessorOpts().addRemappedFile( 47 Invocation->getFrontendOpts().Inputs.push_back( 49 Invocation->getFrontendOpts().ProgramAction = EmitLLVM; 50 Invocation->getTargetOpts().Triple = "i386-unknown-linux-gnu"; 52 Compiler.setInvocation(Invocation);
|
/external/mockito/src/test/java/org/mockito/internal/invocation/ |
InvocationMarkerTest.java | 5 package org.mockito.internal.invocation; 9 import org.mockito.invocation.Invocation; 10 import org.mockito.invocation.MatchableInvocation; 23 Invocation i = new InvocationBuilder().toInvocation(); 37 Invocation i = new InvocationBuilder().toInvocation(); 38 final AtomicReference<Invocation> box = new AtomicReference<Invocation>(); 40 public void captureArgumentsFrom(Invocation i) { 56 Invocation i = new InvocationBuilder().toInvocation() [all...] |
/external/mockito/src/test/java/org/mockito/internal/exceptions/util/ |
ScenarioPrinterTest.java | 8 import org.mockito.internal.invocation.InvocationBuilder; 9 import org.mockito.invocation.Invocation; 25 Invocation verified = new InvocationBuilder().simpleMethod().verified().toInvocation(); 26 Invocation unverified = new InvocationBuilder().differentMethod().toInvocation(); 40 Invocation unverified = new InvocationBuilder().differentMethod().toInvocation();
|