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 and 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) |
Constructor and Description |
---|
WarningsFinder(java.util.List<Invocation> unusedStubs,
java.util.List<InvocationMatcher> allInvocations) |
WarningsPrinterImpl(java.util.List<Invocation> unusedStubs,
java.util.List<InvocationMatcher> unstubbedInvocations) |
WarningsPrinterImpl(java.util.List<Invocation> unusedStubs,
java.util.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 java.util.List<InvocationMatcher> |
InvocationMatcher.createFrom(java.util.List<Invocation> invocations) |
Modifier and Type | Method and Description |
---|---|
boolean |
ArgumentsComparator.argumentsMatch(InvocationMatcher invocationMatcher,
Invocation actual) |
boolean |
ArgumentsComparator.argumentsMatch(InvocationMatcher invocationMatcher,
java.lang.Object[] actualArgs) |
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 and Description |
---|---|
java.lang.String |
PrintSettings.print(InvocationMatcher invocationMatcher) |
Constructor and Description |
---|
SmartPrinter(InvocationMatcher wanted,
Invocation actual,
java.lang.Integer... indexesOfMatchersToBeDescribedWithExtraTypeInfo) |
Modifier and Type | Class and Description |
---|---|
class |
StubbedInvocationMatcher |
Modifier and Type | Method and Description |
---|---|
InvocationMatcher |
InvocationContainerImpl.getInvocationForStubbing() |
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(InvocationContainer invocations,
InvocationMatcher wanted) |
Modifier and Type | Method and Description |
---|---|
InvocationMatcher |
VerificationDataInOrder.getWanted() |
InvocationMatcher |
VerificationData.getWanted() |
InvocationMatcher |
VerificationDataInOrderImpl.getWanted() |
Constructor and Description |
---|
VerificationDataInOrderImpl(InOrderContext inOrder,
java.util.List<Invocation> allInvocations,
InvocationMatcher wanted) |
Modifier and Type | Method and Description |
---|---|
void |
MissingInvocationChecker.check(java.util.List<Invocation> invocations,
InvocationMatcher wanted) |
void |
AtLeastXNumberOfInvocationsInOrderChecker.check(java.util.List<Invocation> invocations,
InvocationMatcher wanted,
int wantedCount) |
void |
NumberOfInvocationsChecker.check(java.util.List<Invocation> invocations,
InvocationMatcher wanted,
int wantedCount) |
void |
AtLeastXNumberOfInvocationsChecker.check(java.util.List<Invocation> invocations,
InvocationMatcher wanted,
int wantedCount) |
void |
NonGreedyNumberOfInvocationsInOrderChecker.check(java.util.List<Invocation> invocations,
InvocationMatcher wanted,
int wantedCount,
InOrderContext context) |
void |
NumberOfInvocationsInOrderChecker.check(java.util.List<Invocation> invocations,
InvocationMatcher wanted,
int wantedCount,
InOrderContext context) |
void |
MissingInvocationInOrderChecker.check(java.util.List<Invocation> invocations,
InvocationMatcher wanted,
VerificationMode mode,
InOrderContext context) |