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