Package | Description |
---|---|
org.mockito.internal.invocation |
Invocation machinery and related classes.
|
org.mockito.internal.reporting |
Deals with nicely printing verification errors.
|
org.mockito.internal.stubbing |
Stubbing logic.
|
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 |
InvocationMatcher
In addition to all content of the invocation, the invocation matcher contains the argument matchers.
|
Modifier and Type | Field and Description |
---|---|
private MatchableInvocation |
InvocationsFinder.RemoveNotMatching.wanted |
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 java.util.List<Invocation> |
InvocationsFinder.findInvocations(java.util.List<Invocation> invocations,
MatchableInvocation wanted) |
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.findSimilarInvocation(java.util.List<Invocation> invocations,
MatchableInvocation wanted) |
private static java.util.List<Invocation> |
InvocationsFinder.getFirstMatchingChunk(MatchableInvocation wanted,
java.util.List<Invocation> unverified) |
static void |
InvocationMarker.markVerified(Invocation invocation,
MatchableInvocation wanted) |
static void |
InvocationMarker.markVerified(java.util.List<Invocation> invocations,
MatchableInvocation wanted) |
static void |
InvocationMarker.markVerifiedInOrder(java.util.List<Invocation> chunk,
MatchableInvocation wanted,
InOrderContext context) |
Constructor and Description |
---|
RemoveNotMatching(MatchableInvocation wanted) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
PrintSettings.print(MatchableInvocation invocation) |
Constructor and Description |
---|
SmartPrinter(MatchableInvocation wanted,
Invocation actual,
java.lang.Integer... indexesOfMatchersToBeDescribedWithExtraTypeInfo) |
Modifier and Type | Class and Description |
---|---|
class |
StubbedInvocationMatcher |
Modifier and Type | Field and Description |
---|---|
private MatchableInvocation |
InvocationContainerImpl.invocationForStubbing |
Modifier and Type | Method and Description |
---|---|
MatchableInvocation |
InvocationContainerImpl.getInvocationForStubbing() |
Modifier and Type | Method and Description |
---|---|
void |
InvocationContainerImpl.resetInvocationForPotentialStubbing(MatchableInvocation invocationMatcher) |
void |
InvocationContainerImpl.setInvocationForPotentialStubbing(MatchableInvocation invocation) |
void |
InvocationContainerImpl.setMethodForStubbing(MatchableInvocation invocation) |
Constructor and Description |
---|
StubbedInvocationMatcher(Answer answer,
MatchableInvocation invocation,
Strictness strictness) |
Modifier and Type | Method and Description |
---|---|
MatchableInvocation |
VerificationDataImpl.getTarget() |
Modifier and Type | Field and Description |
---|---|
private MatchableInvocation |
VerificationDataInOrderImpl.wanted |
Modifier and Type | Method and Description |
---|---|
MatchableInvocation |
VerificationData.getTarget()
The target or wanted invocation.
|
MatchableInvocation |
VerificationDataInOrder.getWanted() |
MatchableInvocation |
VerificationDataInOrderImpl.getWanted() |
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) |
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) |
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) |
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) |