Home
last modified time | relevance | path

Searched refs:invocations (Results 1 – 25 of 206) sorted by relevance

123456789

/external/mockito/src/org/mockito/internal/invocation/
DInvocationsFinder.java19 … public List<Invocation> findInvocations(List<Invocation> invocations, InvocationMatcher wanted) { in findInvocations() argument
20 return ListUtil.filter(invocations, new RemoveNotMatching(wanted)); in findInvocations()
23 …public List<Invocation> findAllMatchingUnverifiedChunks(List<Invocation> invocations, InvocationMa… in findAllMatchingUnverifiedChunks() argument
24 List<Invocation> unverified = removeVerifiedInOrder(invocations, orderingContext); in findAllMatchingUnverifiedChunks()
43 …public List<Invocation> findMatchingChunk(List<Invocation> invocations, InvocationMatcher wanted, … in findMatchingChunk() argument
44 List<Invocation> unverified = removeVerifiedInOrder(invocations, context); in findMatchingChunk()
48 return this.findAllMatchingUnverifiedChunks(invocations, wanted, context); in findMatchingChunk()
66 …public Invocation findFirstMatchingUnverifiedInvocation( List<Invocation> invocations, InvocationM… in findFirstMatchingUnverifiedInvocation() argument
67 for( Invocation invocation : removeVerifiedInOrder( invocations, context )){ in findFirstMatchingUnverifiedInvocation()
75 … public Invocation findSimilarInvocation(List<Invocation> invocations, InvocationMatcher wanted) { in findSimilarInvocation() argument
[all …]
/external/mockito/src/org/mockito/internal/verification/
DDefaultRegisteredInvocations.java21 private final LinkedList<Invocation> invocations = new LinkedList<Invocation>(); field in DefaultRegisteredInvocations
24 synchronized (invocations) { in add()
25 invocations.add(invocation); in add()
31 synchronized (invocations) { in removeLast()
32 if (! invocations.isEmpty()) { in removeLast()
33 invocations.removeLast(); in removeLast()
40 synchronized (invocations) { in getAll()
41 copiedList = new LinkedList<Invocation>(invocations) ; in getAll()
48 synchronized (invocations) { in isEmpty()
49 return invocations.isEmpty(); in isEmpty()
DOnly.java26 List<Invocation> invocations = data.getAllInvocations(); in verify() local
27 List<Invocation> chunk = finder.findInvocations(invocations,wantedMatcher); in verify()
28 if (invocations.size() != 1 && chunk.size() > 0) { in verify()
29 Invocation unverified = finder.findFirstUnverified(invocations); in verify()
30 reporter.noMoreInteractionsWanted(unverified, (List) invocations); in verify()
31 } else if (invocations.size() != 1 || chunk.size() == 0) { in verify()
DVerificationDataImpl.java19 private final InvocationContainer invocations; field in VerificationDataImpl
21 public VerificationDataImpl(InvocationContainer invocations, InvocationMatcher wanted) { in VerificationDataImpl() argument
22 this.invocations = invocations; in VerificationDataImpl()
28 return invocations.getInvocations(); in getAllInvocations()
/external/testng/src/test/java/test/retryAnalyzer/
DInvocationCountTest.java23 static final Multiset<String> invocations = ConcurrentHashMultiset.create(); field in InvocationCountTest
62 assertEquals(invocations.count("testAnnotationWithNoRetries"), 0); in checkInvocationCounts()
63 assertEquals(invocations.count("testAnnotationWithOneRetry"), 1); in checkInvocationCounts()
64 assertEquals(invocations.count("testAnnotationWithSevenRetries"), 7); in checkInvocationCounts()
65 assertEquals(invocations.count("failAfterThreeRetries"), 4); in checkInvocationCounts()
116 invocations.add(result.getName()); in retry()
125 invocations.add(result.getName()); in retry()
/external/mockito/src/org/mockito/internal/debugging/
DMockitoDebuggerImpl.java23 List<Invocation> invocations = allInvocationsFinder.find(asList(mocks)); in printInvocations() local
27 for(Invocation i:invocations) { in printInvocations()
35 invocations = unusedStubsFinder.find(asList(mocks)); in printInvocations()
36 if (invocations.isEmpty()) { in printInvocations()
43 for(Invocation i:invocations) { in printInvocations()
/external/mockito/src/org/mockito/internal/verification/checkers/
DMissingInvocationInOrderChecker.java33 …public void check(List<Invocation> invocations, InvocationMatcher wanted, VerificationMode mode, I… in check() argument
34 … List<Invocation> chunk = finder.findAllMatchingUnverifiedChunks(invocations, wanted, context); in check()
40 Invocation previousInOrder = finder.findPreviousVerifiedInOrder(invocations, context); in check()
49 List<Invocation> actualInvocations = finder.findInvocations(invocations, wanted); in check()
51 Invocation similar = finder.findSimilarInvocation(invocations, wanted); in check()
DMissingInvocationChecker.java31 public void check(List<Invocation> invocations, InvocationMatcher wanted) { in check() argument
32 List<Invocation> actualInvocations = finder.findInvocations(invocations, wanted); in check()
35 Invocation similar = finder.findSimilarInvocation(invocations, wanted); in check()
42 reporter.wantedButNotInvoked(wanted, invocations); in check()
/external/mockftpserver/tags/2.0-rc1/MockFtpServer/src/main/java/org/mockftpserver/core/command/
DAbstractTrackingCommandHandler.java37 private List invocations = new ArrayList(); field in AbstractTrackingCommandHandler
59 invocations.add(invocationRecord); in handleCommand()
134 return invocations.size(); in numberOfInvocations()
148 return (InvocationRecord) invocations.get(index); in getInvocation()
158 invocations.clear(); in clearInvocations()
/external/mockftpserver/MockFtpServer/src/main/java/org/mockftpserver/core/command/
DAbstractTrackingCommandHandler.java37 private List invocations = new ArrayList(); field in AbstractTrackingCommandHandler
59 invocations.add(invocationRecord); in handleCommand()
134 return invocations.size(); in numberOfInvocations()
148 return (InvocationRecord) invocations.get(index); in getInvocation()
158 invocations.clear(); in clearInvocations()
/external/mockftpserver/tags/2.0.2/src/main/java/org/mockftpserver/core/command/
DAbstractTrackingCommandHandler.java37 private List invocations = new ArrayList(); field in AbstractTrackingCommandHandler
59 invocations.add(invocationRecord); in handleCommand()
134 return invocations.size(); in numberOfInvocations()
148 return (InvocationRecord) invocations.get(index); in getInvocation()
158 invocations.clear(); in clearInvocations()
/external/mockftpserver/tags/2.2/src/main/java/org/mockftpserver/core/command/
DAbstractTrackingCommandHandler.java37 private List invocations = new ArrayList(); field in AbstractTrackingCommandHandler
59 invocations.add(invocationRecord); in handleCommand()
134 return invocations.size(); in numberOfInvocations()
148 return (InvocationRecord) invocations.get(index); in getInvocation()
158 invocations.clear(); in clearInvocations()
/external/mockftpserver/tags/2.5/src/main/java/org/mockftpserver/core/command/
DAbstractTrackingCommandHandler.java37 private List invocations = new ArrayList(); field in AbstractTrackingCommandHandler
59 invocations.add(invocationRecord); in handleCommand()
134 return invocations.size(); in numberOfInvocations()
148 return (InvocationRecord) invocations.get(index); in getInvocation()
158 invocations.clear(); in clearInvocations()
/external/mockftpserver/tags/2.4/src/main/java/org/mockftpserver/core/command/
DAbstractTrackingCommandHandler.java37 private List invocations = new ArrayList(); field in AbstractTrackingCommandHandler
59 invocations.add(invocationRecord); in handleCommand()
134 return invocations.size(); in numberOfInvocations()
148 return (InvocationRecord) invocations.get(index); in getInvocation()
158 invocations.clear(); in clearInvocations()
/external/mockftpserver/tags/2.1/src/main/java/org/mockftpserver/core/command/
DAbstractTrackingCommandHandler.java37 private List invocations = new ArrayList(); field in AbstractTrackingCommandHandler
59 invocations.add(invocationRecord); in handleCommand()
134 return invocations.size(); in numberOfInvocations()
148 return (InvocationRecord) invocations.get(index); in getInvocation()
158 invocations.clear(); in clearInvocations()
/external/mockftpserver/tags/2.0/src/main/java/org/mockftpserver/core/command/
DAbstractTrackingCommandHandler.java37 private List invocations = new ArrayList(); field in AbstractTrackingCommandHandler
59 invocations.add(invocationRecord); in handleCommand()
134 return invocations.size(); in numberOfInvocations()
148 return (InvocationRecord) invocations.get(index); in getInvocation()
158 invocations.clear(); in clearInvocations()
/external/mockftpserver/tags/2.0-rc3/MockFtpServer/src/main/java/org/mockftpserver/core/command/
DAbstractTrackingCommandHandler.java37 private List invocations = new ArrayList(); field in AbstractTrackingCommandHandler
59 invocations.add(invocationRecord); in handleCommand()
134 return invocations.size(); in numberOfInvocations()
148 return (InvocationRecord) invocations.get(index); in getInvocation()
158 invocations.clear(); in clearInvocations()
/external/mockftpserver/tags/2.0.1/src/main/java/org/mockftpserver/core/command/
DAbstractTrackingCommandHandler.java37 private List invocations = new ArrayList(); field in AbstractTrackingCommandHandler
59 invocations.add(invocationRecord); in handleCommand()
134 return invocations.size(); in numberOfInvocations()
148 return (InvocationRecord) invocations.get(index); in getInvocation()
158 invocations.clear(); in clearInvocations()
/external/mockftpserver/tags/2.3/src/main/java/org/mockftpserver/core/command/
DAbstractTrackingCommandHandler.java37 private List invocations = new ArrayList(); field in AbstractTrackingCommandHandler
59 invocations.add(invocationRecord); in handleCommand()
134 return invocations.size(); in numberOfInvocations()
148 return (InvocationRecord) invocations.get(index); in getInvocation()
158 invocations.clear(); in clearInvocations()
/external/mockftpserver/tags/1.2.1/src/main/java/org/mockftpserver/core/command/
DAbstractCommandHandler.java43 private List invocations = new ArrayList(); field in AbstractCommandHandler
67 invocations.add(invocationRecord); in handleCommand()
189 return invocations.size(); in numberOfInvocations()
205 return (InvocationRecord) invocations.get(index); in getInvocation()
215 invocations.clear(); in clearInvocations()
/external/mockftpserver/tags/1.0/src/main/java/org/mockftpserver/core/command/
DAbstractCommandHandler.java43 private List invocations = new ArrayList(); field in AbstractCommandHandler
67 invocations.add(invocationRecord); in handleCommand()
189 return invocations.size(); in numberOfInvocations()
205 return (InvocationRecord) invocations.get(index); in getInvocation()
215 invocations.clear(); in clearInvocations()
/external/mockftpserver/tags/1.2.4/src/main/java/org/mockftpserver/core/command/
DAbstractCommandHandler.java43 private List invocations = new ArrayList(); field in AbstractCommandHandler
67 invocations.add(invocationRecord); in handleCommand()
189 return invocations.size(); in numberOfInvocations()
205 return (InvocationRecord) invocations.get(index); in getInvocation()
215 invocations.clear(); in clearInvocations()
/external/mockftpserver/tags/1.2/src/main/java/org/mockftpserver/core/command/
DAbstractCommandHandler.java43 private List invocations = new ArrayList(); field in AbstractCommandHandler
67 invocations.add(invocationRecord); in handleCommand()
189 return invocations.size(); in numberOfInvocations()
205 return (InvocationRecord) invocations.get(index); in getInvocation()
215 invocations.clear(); in clearInvocations()
/external/mockftpserver/tags/2.x_Before_IDEA/src/main/java/org/mockftpserver/core/command/
DAbstractCommandHandler.java43 private List invocations = new ArrayList(); field in AbstractCommandHandler
67 invocations.add(invocationRecord); in handleCommand()
189 return invocations.size(); in numberOfInvocations()
205 return (InvocationRecord) invocations.get(index); in getInvocation()
215 invocations.clear(); in clearInvocations()
/external/mockftpserver/tags/1.1/src/main/java/org/mockftpserver/core/command/
DAbstractCommandHandler.java43 private List invocations = new ArrayList(); field in AbstractCommandHandler
67 invocations.add(invocationRecord); in handleCommand()
189 return invocations.size(); in numberOfInvocations()
205 return (InvocationRecord) invocations.get(index); in getInvocation()
215 invocations.clear(); in clearInvocations()

123456789