Package | Description |
---|---|
org.mockito.internal |
Internal classes, not to be used by clients.
|
org.mockito.internal.invocation |
Invocation 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 | Method and Description |
---|---|
void |
MockitoCore.verifyNoMoreInteractionsInOrder(List<Object> mocks,
InOrderContext inOrderContext) |
Modifier and Type | Method and Description |
---|---|
List<Invocation> |
InvocationsFinder.findAllMatchingUnverifiedChunks(List<Invocation> invocations,
InvocationMatcher wanted,
InOrderContext orderingContext) |
Invocation |
InvocationsFinder.findFirstUnverifiedInOrder(InOrderContext context,
List<Invocation> orderedInvocations)
i3 is unverified here:
i1, i2, i3
v
all good here:
i1, i2, i3
v v
|
List<Invocation> |
InvocationsFinder.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 |
InvocationsFinder.findPreviousVerifiedInOrder(List<Invocation> invocations,
InOrderContext context) |
void |
InvocationMarker.markVerifiedInOrder(List<Invocation> chunk,
CapturesArgumensFromInvocation wanted,
InOrderContext context) |
Modifier and Type | Class and Description |
---|---|
class |
InOrderContextImpl |
Modifier and Type | Method and Description |
---|---|
InOrderContext |
VerificationDataInOrderImpl.getOrderingContext() |
InOrderContext |
VerificationDataInOrder.getOrderingContext() |
Constructor and Description |
---|
VerificationDataInOrderImpl(InOrderContext inOrder,
List<Invocation> allInvocations,
InvocationMatcher wanted) |
Modifier and Type | Method and Description |
---|---|
void |
NumberOfInvocationsInOrderChecker.check(List<Invocation> invocations,
InvocationMatcher wanted,
int wantedCount,
InOrderContext context) |
void |
MissingInvocationInOrderChecker.check(List<Invocation> invocations,
InvocationMatcher wanted,
VerificationMode mode,
InOrderContext context) |
Constructor and Description |
---|
AtLeastXNumberOfInvocationsInOrderChecker(InOrderContext orderingContext) |
Copyright © 2018. All rights reserved.