Package | Description |
---|---|
org.mockito.internal.debugging |
Whatever helps in debugging failed tests
|
org.mockito.internal.invocation |
Invocation 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 | Method | Description |
---|---|---|
void |
FindingsListener.foundStubCalledWithDifferentArgs(Invocation unused,
InvocationMatcher unstubbed) |
|
void |
LoggingListener.foundStubCalledWithDifferentArgs(Invocation unused,
InvocationMatcher unstubbed) |
|
void |
FindingsListener.foundUnstubbed(InvocationMatcher unstubbed) |
|
void |
LoggingListener.foundUnstubbed(InvocationMatcher unstubbed) |
Modifier and Type | Method | Description |
---|---|---|
InvocationMatcher |
MatchersBinder.bindMatchers(ArgumentMatcherStorage argumentMatcherStorage,
Invocation invocation) |
Modifier and Type | Method | Description |
---|---|---|
static java.util.List<InvocationMatcher> |
InvocationMatcher.createFrom(java.util.List<Invocation> invocations) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
ArgumentsComparator.argumentsMatch(InvocationMatcher invocationMatcher,
java.lang.Object[] actualArgs) |
|
boolean |
ArgumentsComparator.argumentsMatch(InvocationMatcher invocationMatcher,
Invocation actual) |
|
java.util.List<Invocation> |
InvocationsFinder.findAllMatchingUnverifiedChunks(java.util.List<Invocation> invocations,
InvocationMatcher wanted,
InOrderContext orderingContext) |
|
Invocation |
InvocationsFinder.findFirstMatchingUnverifiedInvocation(java.util.List<Invocation> invocations,
InvocationMatcher wanted,
InOrderContext context) |
|
java.util.List<Invocation> |
InvocationsFinder.findInvocations(java.util.List<Invocation> invocations,
InvocationMatcher wanted) |
|
java.util.List<Invocation> |
InvocationsFinder.findMatchingChunk(java.util.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.findSimilarInvocation(java.util.List<Invocation> invocations,
InvocationMatcher wanted) |
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
PrintSettings.print(InvocationMatcher invocationMatcher) |
Constructor | Description |
---|---|
SmartPrinter(InvocationMatcher wanted,
Invocation actual,
java.lang.Integer... indexesOfMatchersToBeDescribedWithExtraTypeInfo) |
Modifier and Type | Class | Description |
---|---|---|
class |
StubbedInvocationMatcher |
Modifier and Type | Method | Description |
---|---|---|
InvocationMatcher |
InvocationContainerImpl.getInvocationForStubbing() |
Modifier and Type | Method | Description |
---|---|---|
void |
InvocationContainerImpl.resetInvocationForPotentialStubbing(InvocationMatcher invocationMatcher) |
|
void |
InvocationContainerImpl.setInvocationForPotentialStubbing(InvocationMatcher invocation) |
|
void |
InvocationContainerImpl.setMethodForStubbing(InvocationMatcher invocation) |
Constructor | Description |
---|---|
StubbedInvocationMatcher(InvocationMatcher invocation,
Answer answer) |
Modifier and Type | Method | Description |
---|---|---|
InvocationMatcher |
VerificationDataImpl.getWanted() |
Constructor | Description |
---|---|
VerificationDataImpl(InvocationContainer invocations,
InvocationMatcher wanted) |
Modifier and Type | Method | Description |
---|---|---|
InvocationMatcher |
VerificationData.getWanted() |
|
InvocationMatcher |
VerificationDataInOrder.getWanted() |
|
InvocationMatcher |
VerificationDataInOrderImpl.getWanted() |
Constructor | Description |
---|---|
VerificationDataInOrderImpl(InOrderContext inOrder,
java.util.List<Invocation> allInvocations,
InvocationMatcher wanted) |
Modifier and Type | Method | Description |
---|---|---|
void |
AtLeastXNumberOfInvocationsChecker.check(java.util.List<Invocation> invocations,
InvocationMatcher wanted,
int wantedCount) |
|
void |
AtLeastXNumberOfInvocationsInOrderChecker.check(java.util.List<Invocation> invocations,
InvocationMatcher wanted,
int wantedCount) |
|
void |
MissingInvocationChecker.check(java.util.List<Invocation> invocations,
InvocationMatcher wanted) |
|
void |
MissingInvocationInOrderChecker.check(java.util.List<Invocation> invocations,
InvocationMatcher wanted,
VerificationMode mode,
InOrderContext context) |
|
void |
NonGreedyNumberOfInvocationsInOrderChecker.check(java.util.List<Invocation> invocations,
InvocationMatcher wanted,
int wantedCount,
InOrderContext context) |
|
void |
NumberOfInvocationsChecker.check(java.util.List<Invocation> invocations,
InvocationMatcher wanted,
int wantedCount) |
|
void |
NumberOfInvocationsInOrderChecker.check(java.util.List<Invocation> invocations,
InvocationMatcher wanted,
int wantedCount,
InOrderContext context) |