Package | Description |
---|---|
org.mockito.internal |
Internal classes, not to be used by clients.
|
org.mockito.internal.invocation |
Invocation machinery and related classes.
|
org.mockito.internal.verification |
Verification logic.
|
org.mockito.internal.verification.api |
This package should be open to public once verification API is fully finished.
|
org.mockito.internal.verification.checkers |
Verification checkers.
|
Modifier and Type | Class and Description |
---|---|
class |
InOrderImpl
Allows verifying in order.
|
Modifier and Type | Field and Description |
---|---|
private InOrderContext |
InOrderImpl.inOrderContext |
Modifier and Type | Method and Description |
---|---|
void |
MockitoCore.verifyNoMoreInteractionsInOrder(java.util.List<java.lang.Object> mocks,
InOrderContext inOrderContext) |
Modifier and Type | Field and Description |
---|---|
private InOrderContext |
InvocationsFinder.RemoveUnverifiedInOrder.orderingContext |
Modifier and Type | Method and Description |
---|---|
static java.util.List<Invocation> |
InvocationsFinder.findAllMatchingUnverifiedChunks(java.util.List<Invocation> invocations,
MatchableInvocation wanted,
InOrderContext orderingContext) |
static Invocation |
InvocationsFinder.findFirstMatchingUnverifiedInvocation(java.util.List<Invocation> invocations,
MatchableInvocation wanted,
InOrderContext context) |
static Invocation |
InvocationsFinder.findFirstUnverifiedInOrder(InOrderContext context,
java.util.List<Invocation> orderedInvocations)
i3 is unverified here:
i1, i2, i3
v
all good here:
i1, i2, i3
v v
|
static java.util.List<Invocation> |
InvocationsFinder.findMatchingChunk(java.util.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 |
InvocationsFinder.findPreviousVerifiedInOrder(java.util.List<Invocation> invocations,
InOrderContext context) |
static void |
InvocationMarker.markVerifiedInOrder(java.util.List<Invocation> chunk,
MatchableInvocation wanted,
InOrderContext context) |
private static java.util.List<Invocation> |
InvocationsFinder.removeVerifiedInOrder(java.util.List<Invocation> invocations,
InOrderContext orderingContext) |
Constructor and Description |
---|
RemoveUnverifiedInOrder(InOrderContext orderingContext) |
Modifier and Type | Class and Description |
---|---|
class |
InOrderContextImpl |
Modifier and Type | Field and Description |
---|---|
private InOrderContext |
VerificationDataInOrderImpl.inOrder |
Modifier and Type | Method and Description |
---|---|
InOrderContext |
VerificationDataInOrder.getOrderingContext() |
InOrderContext |
VerificationDataInOrderImpl.getOrderingContext() |
Constructor and Description |
---|
VerificationDataInOrderImpl(InOrderContext inOrder,
java.util.List<Invocation> allInvocations,
MatchableInvocation wanted) |
Modifier and Type | Method and Description |
---|---|
static void |
AtLeastXNumberOfInvocationsChecker.checkAtLeastNumberOfInvocations(java.util.List<Invocation> invocations,
MatchableInvocation wanted,
int wantedCount,
InOrderContext orderingContext) |
static void |
MissingInvocationChecker.checkMissingInvocation(java.util.List<Invocation> invocations,
MatchableInvocation wanted,
InOrderContext context) |
static void |
NumberOfInvocationsChecker.checkNumberOfInvocations(java.util.List<Invocation> invocations,
MatchableInvocation wanted,
int wantedCount,
InOrderContext context) |
static void |
NumberOfInvocationsChecker.checkNumberOfInvocationsNonGreedy(java.util.List<Invocation> invocations,
MatchableInvocation wanted,
int wantedCount,
InOrderContext context) |