public class InvocationsFinder extends Object
Constructor and Description |
---|
InvocationsFinder() |
Modifier and Type | Method and Description |
---|---|
List<Invocation> |
findAllMatchingUnverifiedChunks(List<Invocation> invocations,
InvocationMatcher wanted,
InOrderContext orderingContext) |
Invocation |
findFirstUnverified(List<Invocation> invocations) |
Invocation |
findFirstUnverifiedInOrder(InOrderContext context,
List<Invocation> orderedInvocations)
i3 is unverified here:
i1, i2, i3
v
all good here:
i1, i2, i3
v v
|
List<Invocation> |
findInvocations(List<Invocation> invocations,
InvocationMatcher wanted) |
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
|
Invocation |
findPreviousVerifiedInOrder(List<Invocation> invocations,
InOrderContext context) |
Invocation |
findSimilarInvocation(List<Invocation> invocations,
InvocationMatcher wanted) |
Location |
getLastLocation(List<Invocation> invocations) |
public List<Invocation> findInvocations(List<Invocation> invocations, InvocationMatcher wanted)
public List<Invocation> findAllMatchingUnverifiedChunks(List<Invocation> invocations, InvocationMatcher wanted, InOrderContext orderingContext)
public List<Invocation> findMatchingChunk(List<Invocation> invocations, InvocationMatcher wanted, int wantedCount, InOrderContext context)
data
- public Invocation findSimilarInvocation(List<Invocation> invocations, InvocationMatcher wanted)
public Invocation findFirstUnverified(List<Invocation> invocations)
public Location getLastLocation(List<Invocation> invocations)
public Invocation findPreviousVerifiedInOrder(List<Invocation> invocations, InOrderContext context)
public Invocation findFirstUnverifiedInOrder(InOrderContext context, List<Invocation> orderedInvocations)
context
- orderedInvocations
- Copyright © 2018. All rights reserved.