Package | Description |
---|---|
org.mockito.internal.debugging |
Whatever helps in debugging failed tests
|
org.mockito.internal.invocation |
Invocation and related classes.
|
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 and Description |
---|---|
void |
LoggingListener.foundStubCalledWithDifferentArgs(Invocation unused,
InvocationMatcher unstubbed) |
void |
FindingsListener.foundStubCalledWithDifferentArgs(Invocation unused,
InvocationMatcher unstubbed) |
void |
LoggingListener.foundUnstubbed(InvocationMatcher unstubbed) |
void |
FindingsListener.foundUnstubbed(InvocationMatcher unstubbed) |
Constructor and Description |
---|
WarningsFinder(List<Invocation> unusedStubs,
List<InvocationMatcher> allInvocations) |
WarningsPrinterImpl(List<Invocation> unusedStubs,
List<InvocationMatcher> unstubbedInvocations) |
WarningsPrinterImpl(List<Invocation> unusedStubs,
List<InvocationMatcher> allInvocations,
boolean warnAboutUnstubbed) |
Modifier and Type | Method and Description |
---|---|
InvocationMatcher |
MatchersBinder.bindMatchers(ArgumentMatcherStorage argumentMatcherStorage,
Invocation invocation) |
Modifier and Type | Method and Description |
---|---|
static List<InvocationMatcher> |
InvocationMatcher.createFrom(List<Invocation> invocations) |
Modifier and Type | Method and Description |
---|---|
boolean |
ArgumentsComparator.argumentsMatch(InvocationMatcher invocationMatcher,
Invocation actual) |
boolean |
ArgumentsComparator.argumentsMatch(InvocationMatcher invocationMatcher,
Object[] actualArgs) |
List<Invocation> |
InvocationsFinder.findAllMatchingUnverifiedChunks(List<Invocation> invocations,
InvocationMatcher wanted,
InOrderContext orderingContext) |
List<Invocation> |
InvocationsFinder.findInvocations(List<Invocation> invocations,
InvocationMatcher wanted) |
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.findSimilarInvocation(List<Invocation> invocations,
InvocationMatcher wanted) |
Modifier and Type | Class and Description |
---|---|
class |
StubbedInvocationMatcher |
Modifier and Type | Method and Description |
---|---|
void |
InvocationContainerImpl.resetInvocationForPotentialStubbing(InvocationMatcher invocationMatcher) |
void |
InvocationContainerImpl.setInvocationForPotentialStubbing(InvocationMatcher invocation) |
void |
InvocationContainerImpl.setMethodForStubbing(InvocationMatcher invocation) |
Constructor and Description |
---|
StubbedInvocationMatcher(InvocationMatcher invocation,
Answer answer) |
Modifier and Type | Method and Description |
---|---|
InvocationMatcher |
VerificationDataImpl.getWanted() |
Constructor and Description |
---|
VerificationDataImpl(List<Invocation> allInvocations,
InvocationMatcher wanted) |
Modifier and Type | Method and Description |
---|---|
InvocationMatcher |
VerificationDataInOrderImpl.getWanted() |
InvocationMatcher |
VerificationDataInOrder.getWanted() |
InvocationMatcher |
VerificationData.getWanted() |
Constructor and Description |
---|
VerificationDataInOrderImpl(InOrderContext inOrder,
List<Invocation> allInvocations,
InvocationMatcher wanted) |
Modifier and Type | Method and Description |
---|---|
void |
MissingInvocationChecker.check(List<Invocation> invocations,
InvocationMatcher wanted) |
void |
NumberOfInvocationsChecker.check(List<Invocation> invocations,
InvocationMatcher wanted,
int wantedCount) |
void |
AtLeastXNumberOfInvocationsInOrderChecker.check(List<Invocation> invocations,
InvocationMatcher wanted,
int wantedCount) |
void |
AtLeastXNumberOfInvocationsChecker.check(List<Invocation> invocations,
InvocationMatcher wanted,
int wantedCount) |
void |
NumberOfInvocationsInOrderChecker.check(List<Invocation> invocations,
InvocationMatcher wanted,
int wantedCount,
InOrderContext context) |
void |
MissingInvocationInOrderChecker.check(List<Invocation> invocations,
InvocationMatcher wanted,
VerificationMode mode,
InOrderContext context) |
Copyright © 2018. All rights reserved.