org.mockito.internal.invocation
Class InvocationsFinder

java.lang.Object
  extended by org.mockito.internal.invocation.InvocationsFinder

public class InvocationsFinder
extends java.lang.Object


Constructor Summary
InvocationsFinder()
           
 
Method Summary
 java.util.List<Invocation> findAllMatchingUnverifiedChunks(java.util.List<Invocation> invocations, InvocationMatcher wanted)
           
 Invocation findFirstUnverified(java.util.List<Invocation> invocations)
           
 java.util.List<Invocation> findInvocations(java.util.List<Invocation> invocations, InvocationMatcher wanted, VerificationModeImpl mode)
           
 java.util.List<Invocation> findMatchingChunk(java.util.List<Invocation> invocations, InvocationMatcher wanted, VerificationModeImpl mode)
          some examples how it works: Given invocations sequence: 1,1,2,1 if wanted is 1 and mode is times(2) then returns 1,1 if wanted is 1 and mode is atLeastOnce() then returns 1,1,1 if wanted is 1 and mode is times(x), where x != 2 then returns 1,1,1
 Invocation findPreviousVerifiedInOrder(java.util.List<Invocation> invocations)
           
 Invocation findSimilarInvocation(java.util.List<Invocation> invocations, InvocationMatcher wanted, VerificationModeImpl mode)
           
 HasStackTrace getLastStackTrace(java.util.List<Invocation> invocations)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InvocationsFinder

public InvocationsFinder()
Method Detail

findInvocations

public java.util.List<Invocation> findInvocations(java.util.List<Invocation> invocations,
                                                  InvocationMatcher wanted,
                                                  VerificationModeImpl mode)

findAllMatchingUnverifiedChunks

public java.util.List<Invocation> findAllMatchingUnverifiedChunks(java.util.List<Invocation> invocations,
                                                                  InvocationMatcher wanted)

findMatchingChunk

public java.util.List<Invocation> findMatchingChunk(java.util.List<Invocation> invocations,
                                                    InvocationMatcher wanted,
                                                    VerificationModeImpl mode)
some examples how it works: Given invocations sequence: 1,1,2,1 if wanted is 1 and mode is times(2) then returns 1,1 if wanted is 1 and mode is atLeastOnce() then returns 1,1,1 if wanted is 1 and mode is times(x), where x != 2 then returns 1,1,1


findSimilarInvocation

public Invocation findSimilarInvocation(java.util.List<Invocation> invocations,
                                        InvocationMatcher wanted,
                                        VerificationModeImpl mode)

findFirstUnverified

public Invocation findFirstUnverified(java.util.List<Invocation> invocations)

getLastStackTrace

public HasStackTrace getLastStackTrace(java.util.List<Invocation> invocations)

findPreviousVerifiedInOrder

public Invocation findPreviousVerifiedInOrder(java.util.List<Invocation> invocations)