Package org.mockito.internal.invocation
Class InvocationsFinder
java.lang.Object
org.mockito.internal.invocation.InvocationsFinder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindAllMatchingUnverifiedChunks
(List<Invocation> invocations, InvocationMatcher wanted, InOrderContext orderingContext) findFirstMatchingUnverifiedInvocation
(List<Invocation> invocations, InvocationMatcher wanted, InOrderContext context) findFirstUnverified
(List<Invocation> invocations) findFirstUnverifiedInOrder
(InOrderContext context, List<Invocation> orderedInvocations) i3 is unverified here: i1, i2, i3 v all good here: i1, i2, i3 v vfindInvocations
(List<Invocation> invocations, InvocationMatcher wanted) findMatchingChunk
(List<Invocation> invocations, InvocationMatcher wanted, int wantedCount, InOrderContext context) 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 atLeast() then returns 1,1,1 if wanted is 1 and mode is times(x), where x != 2 then returns 1,1,1findPreviousVerifiedInOrder
(List<Invocation> invocations, InOrderContext context) findSimilarInvocation
(List<Invocation> invocations, InvocationMatcher wanted) getLastLocation
(List<Invocation> invocations)
-
Constructor Details
-
InvocationsFinder
public InvocationsFinder()
-
-
Method Details
-
findInvocations
-
findAllMatchingUnverifiedChunks
public List<Invocation> findAllMatchingUnverifiedChunks(List<Invocation> invocations, InvocationMatcher wanted, InOrderContext orderingContext) -
findMatchingChunk
public List<Invocation> findMatchingChunk(List<Invocation> invocations, InvocationMatcher wanted, int wantedCount, InOrderContext context) 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 atLeast() then returns 1,1,1 if wanted is 1 and mode is times(x), where x != 2 then returns 1,1,1 -
findFirstMatchingUnverifiedInvocation
public Invocation findFirstMatchingUnverifiedInvocation(List<Invocation> invocations, InvocationMatcher wanted, InOrderContext context) -
findSimilarInvocation
-
findFirstUnverified
-
getLastLocation
-
findPreviousVerifiedInOrder
-
findFirstUnverifiedInOrder
public Invocation findFirstUnverifiedInOrder(InOrderContext context, List<Invocation> orderedInvocations) i3 is unverified here: i1, i2, i3 v all good here: i1, i2, i3 v v- Parameters:
context
-orderedInvocations
-
-